transport

giles101's icon

Hi all, im using [transport] to trigger when a sample should start. The only problem is that transport automatically counts to 16 bars before resetting. Is there a message I can send it to make it reset its counter at 4 bars instead?

Thanks G.

Christopher Dobrian's icon

[transport] does not automatically reset itself.

Perhaps if you post a patch that exemplifies what you're describing, and/or shows what you wish would happen, someone might be able to explain how to get the results you want.

Max Patch
Copy patch and select New From Clipboard in Max.

Meanwhile, here's an example patch that loops the transport through the first four bars.

giles101's icon

Hi Christopher, thanks for the help.

Sorry for not explaining myself fully before too.
Baically, I'm creating a patch which will play samples triggered by pressing keys on a midi keyboard.
I want to use this patch to help teach children about music.
I'm trying to work out a way that I can always trigger the samples on the first beat of the first bar even if the midi key (triggering the sample) is pressed out of time.

Any pointers or ideas would be greatly welcome.

Here is what I have so far.

Thanks again for the help.

Max Patch
Copy patch and select New From Clipboard in Max.

G

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

I'm still not entirely sure I know what you mean, but... If the general task is "When someone does a certain thing, wait till the next time the beat is 1.1.0, then respond," I'd say the [onebang] object will be most helpful. Something like this maybe?

giles101's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Thanks again.
yeah, that works great.