makenote with variable note length?

jamesson's icon

How could I do this? append n would leave a space between the N and the input, no?

Thanks much in advance

Joe

Wetterberg's icon

if you're referring to the list of note-values going in from the menu, those are the only values accepted.
I'd simply control that list with integers coming in.

Roman Thilenius's icon
Chris Muir's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Unless there's some context for this question that I'm not understanding, can't you just use the duration input to makenote?

Wetterberg's icon

chris, I'm fairly certain OP is talking about the duration input - he wants to append n's to get "4n" "8n" etc. And while that might be enticing, it won't work for "7n" et al.

That's where I recommend simply controlling the menu that's already in the help file with all the properly formed durations.

jamesson's icon

I ended up using wetterberg's solution, tho sprintf will also work

Thanks

Joe