[Makenote] with values like "8n" in M4L

Questions and discussion about building and using Max for Live devices
Post Reply
chapelier fou
Posts: 4869
Joined: Mon May 15, 2006 12:15 pm

[Makenote] with values like "8n" in M4L

Post by chapelier fou » Wed Jan 30, 2019 10:35 am

Is it possible that the timing is not accurate ?
This patch sketch is aimed to transpose a single MIDI note with a sequence. The [makenote] receives the same value as the [metro] for its duration. If the same note is played twice, sometimes the second note is cut, which makes me think that the note off occurs sometime just before the [metro] tick (as I want it to be], and sometimes after.
Any better idea ?

<pre><code>
----------begin_max5_patcher----------
1533.3ocyZssbihCD8Y6uBJp8swIERHt38gs1c+MlJUJEhrix.HWfHSxN07u
uHIvCNQXZGKs09fuIT3nSqtOcql7i0qBeP7JqML32C9ZvpU+X8pU5gTCrZ32
qBqnuVTRa0SKrl8cwCOGtwbII6UodXYPz3X0cU75RlTOezvf7G0Sq+O8Fbxj
YJ5jueplgjucfYVWg75dLta3pGnxhm306uugUHMSHkjcaxlf3s3ai1DfiFeO
3N0exOWuV81lqieMA2byMMr12pKrxyHK7jbg77rjjfTzBEooZRlO3X6Bbz1d
YrcNFs3tEAEqYxVuvDVY.xJGvV3.1NGvysO8.sde3lE1uFcJS0aUwHePy+Xl
fNajLxSAcwFWwspe3Z90UefV7sfH3ZKn7KbuTQyM.XaTplsQ4J1l5EIFYPYP
IThlbg7bQ+0jsoZRkE4u8yu.OnDk5X+0jQkSjC3WI+E1sRw98krwk4KzlZZE
atKenWWkUKoRtnd5pxnpiLYtzNW3D0hBp+9B4ROPa5WTRVy8rZ5CkLn4elrZ
O81MqckDOCEZouvd7dpT1venSx902ZGLvCVXkIrriI1MN733SYQU+1fdAc6P
FlStZ6ShF4Y1EdmAoqZf3hc6TwGJtdmkYNZhvVtVonduUDMSU6WM9gixs8cd
+lf03nXKNHwtrHjgM6zHrws0KY0NqluMoBrGnHYq1SNm3shIqER1icMlXLfk
ThPNkpYXMUMgt4o++hpQtjpHThwiMyeTsEDUsHhu8xqgVG+QLjI2Gjoh9Mlh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Xb5pQBRFFrKBlPf7wcgGABh55H
wuNjfTaMwE.kBMW0UiDnrhot.IHxqDGnth.oPj4BjfjCzEx3HLT+gqUzCg.5
he0.ARIB4hcI..8QGby48oGN7BqocXxZHBqnOKZN1kpvJds4m51SD1vT8p1L
ec+5BoMEOwkrBYWiooDulZ9udIrRzWdYcGen11dx0CotEKpFXzdfZ3gtSLq+
45+EiVTq5
-----------end_max5_patcher-----------
</code></pre>
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
iMac 27" Retina i5 3,2 GHz OS 10.11.3 L10.0.1 M4L.

S4racen
Posts: 5134
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: [Makenote] with values like "8n" in M4L

Post by S4racen » Wed Jan 30, 2019 10:36 am

I think the answer to your first question is yes, it's possible that timing isn't accurate...

Cheers
D

jonbenderr
Posts: 121
Joined: Sat Feb 27, 2010 11:20 pm

Re: [Makenote] with values like "8n" in M4L

Post by jonbenderr » Wed Jan 30, 2019 12:43 pm

Look into the repeatmode attribute of makenote. Maybe try mode 1.

You can also change this in the inspector for makenote.
repeatmode 1: If a note is still playing when you retrigger it, the makenote object will send a note-off (velocity 0) message to stop the first note and then send a new note-on message.
Also, if you work with tick values instead of 4n, 8n etc., you can shorten the ticks slightly (for the makenote object only) and this can help with the issue depending on what you are doing.

chapelier fou
Posts: 4869
Joined: Mon May 15, 2006 12:15 pm

Re: [Makenote] with values like "8n" in M4L

Post by chapelier fou » Thu Jan 31, 2019 10:15 am

Thanks. I did subtract a few ms to the note duration. But it looks wonky to me.
I didn't know the repeat mode attribute, that might be the key, thanks !
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
iMac 27" Retina i5 3,2 GHz OS 10.11.3 L10.0.1 M4L.

chapelier fou
Posts: 4869
Joined: Mon May 15, 2006 12:15 pm

Re: [Makenote] with values like "8n" in M4L

Post by chapelier fou » Thu Jan 31, 2019 7:07 pm

"@repeatmode 1" seems to do the trick. Thanks !
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
iMac 27" Retina i5 3,2 GHz OS 10.11.3 L10.0.1 M4L.

jonbenderr
Posts: 121
Joined: Sat Feb 27, 2010 11:20 pm

Re: [Makenote] with values like "8n" in M4L

Post by jonbenderr » Fri Feb 01, 2019 10:39 am

Awesome! Glad I could help!

Makenote is one of my favorite objects. :)

Post Reply