truncate to notevalues (translate) from ms?

Jul 13, 2012 at 11:17am

truncate to notevalues (translate) from ms?

can I have everything “ending up as notevalues” from ms somehow?

thanks

#35930
Jul 13, 2012 at 11:33am

basically … [ftom]

#123082
Jul 13, 2012 at 12:31pm

i would understand “notevalues” in your question rather as 4n 16nt and so on, if you mean that instead of c,#d, etc.
the round object is coming in handy. just round to the smallest qantization unit egg. 16n in ms
use [translate ms notevalues]

#123083
Jul 13, 2012 at 1:15pm

ehhm… how?

– Pasted Max Patch, click to expand. –
#123084
Jul 13, 2012 at 4:04pm

bpm to ms per beat is [expr 1000/(BPM/60)/(SIGNATURE*0.25)]

(where SIGNATURE or $f2 would be a value of 1. for 4/4 or 8/8 and 0.75 for 3/4)

and if you realy start from ms, ms will replace the 1000./(BPM/60)) in the above expression.

#123085
Jul 13, 2012 at 4:39pm

@ flowdesigner

Here is your patch with rounding (quantization) as woyteg suggested.
Note however that it works only for durations in the range 16n-8n-8nd-4n.

– Pasted Max Patch, click to expand. –
#123086
Jul 15, 2012 at 7:32pm

thank you very much

Is this the best way to play durations into live step then?

– Pasted Max Patch, click to expand. –
#123087
Jul 15, 2012 at 10:04pm

live.step wants the durations in ticks, and rounds them up to the next higher notevalue.
So in this case you don’t need the rounding in your patch.

– Pasted Max Patch, click to expand. –
#123088

You must be logged in to reply to this topic.