How to tempo sync note duration in M4L

Janaki Anderson's icon

Hey guys,

I've created a midi musical generator patch in M4L, it generates chords and an optional accompanying arpeggiated sequence. I've managed to tempo sync the arpeggiator no problem however I'd like to have an option to tempo sync the sustain/note duration for the chords as well. So you can choose to have the notes last for a full note or half note etc. Does anyone know how you would do this?

Thanks!

tyler mazaika's icon

[makenote] accepts musical time division values for durations. Open it's help file > more tab. To make it most flexible I'd probably specify using ticks rather than notevalues so that you could have something like the regular Live Arpeggiator device's length % control.

Janaki Anderson's icon

Thank you! I've tried this now following the demonstration in the help file but it doesn't seem to be working as it should. No matter the duration I select they are all playing really short notes, even 1n. Is there an @active message I need to add into the signal flow somewhere? Like for example with the arpeggiator tempo I have the object 'tempo @active 1' then different beat division messages outputting to that.

tyler mazaika's icon

"No matter the duration I select they are all playing really short notes, even 1n"

You should show your problematic code for help debugging it.

Janaki Anderson's icon

I've managed to resolve this issue through a simple restart and used your suggestion of specifying ticks instead, which worked really well! Thanks for your help.