Help with make note duration

Dan Johnson's icon

Hi guys, I have created a basic patch which allows users to be able to play notes and chords manually or via a metronome. I am having issues with the make note object as the number that I put into the duration input does not seem to affect the note. It appears as though the note sounds for the duration of the time period in which the Kslider is interacted with as apposed to another value overwriting the notes duration.

I have my patch posted below so any advice would be really useful. I started using max about 4 weeks ago so apologies if its a bit all over the place.

New Lego .maxpat
Max Patch

Jean-Francois Charles's icon

I tried and it's working fine here.
I see you set the note duration to be the same as your metronome.
With the bagpipes sound (continuous sound to hear the duration better than with, say, harpsichord):
I set note duration to 5000, and turned the metro quickly on/off: the played notes are 5 seconds.
I set the node duration to 100, turn the metro on: I hear short notes. Turn off: sound stops "immediately" (end of 100ms).
So, I'd say good job! Or I don't understand what the problem is.

PS: for small bits of code, select part of your code, do Edit -> Copy Compressed, then paste in your forum post.

Dan Johnson's icon

Hey, thanks so much for taking time to look at my patch. Its good to know my patch is functional. I was having issues with some notes playing for the intended length and some randomly cut short but if it worked as intended when you loaded it then it may be a problem with the application itself.

Just to clarify, the main issue is the inconsistency of it all. For every 100 times on my end it may only work around 10 times or it does the opposite where there are a few short notes.

If you experienced this at all please do let me know but if not I know that if i put it on a different machine or reinstall max it should be okay. (ps the random without an output is a work in progress at the moment so please ignore that:))

Source Audio's icon

I would suggest to make note durations a bit shorter than metro time.

missed notes might be on receiver side if notes are overlapping.