truncate to notevalues (translate) from ms?

flowdesigner's icon

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

thanks

Roman Thilenius's icon

basically ... [ftom]

woyteg's icon

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]

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

ehhm... how?

Roman Thilenius's icon

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.

broc's icon

@ flowdesigner

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

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.

flowdesigner's icon

thank you very much

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

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

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

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.