How to make live.dial output conventional note durations?

Patrick Mattingly's icon

How to make live.dial output conventional note durations?

Sébastien Gay's icon

.......................................

Stevon's icon

Like Pitch to Time ?

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

Patrick Mattingly's icon

I should have said 8n, 16n, 32n and those times.

Source Audio's icon

I guess with "conventional note durations" he means 1n, 2n and the rest.

can be displayed using custom units, but to really pass the values,
one would need another object to translate dial numbers to symbols 1n, 2n etc.

which makes not much sense.
umenu filled with
1nd 1n 1nt 2nd 2n 2nt 4nd 4n 4nt 8nd 8n 8nt 16nd 16n 16nt 32nd 32n 32nt 64nd 64n 128n
would be a better choice

tyler mazaika's icon

Please reconsider using 1n 8n etc. in any user-facing UI. Those symbols are not "conventional" in any sense other than that they are the default programmatic implementation of these time values in Max.

If you're making a Max for Live device, I'd note that Live's devices always use the formats like 1/4, 1/6, 1/8 instead of 4n, 8nt and 8n. IMO its better for end-users to be consistent with that wherever possible.

So I'd use a live.dial with the labels "1/4", "1/6", "1/8" as enum values, and then convert the index output to the Max syntax using something like the umenu (or zl.lookup) as Source Audio showed above.

(Sorry, this is a pet peeve of mine with a million M4L devices)