max newbie borax

Dec 13, 2011 at 8:40pm

max newbie borax

Want to store midinotes in coll. But the deltatime of borax determines the duration of the note played in before an not of the actual note! Another problem is how to get the duration of the last note when borax will not
output deltatime! Appropiate and elegant solutions? Thanks a lot!
Hermann

#60654
Dec 13, 2011 at 9:06pm

Perhaps check the velocity output instead, this will be a zero when the current note ends rather than making you wait until the next note begins.

#218300
Dec 13, 2011 at 10:41pm

As far as I know, borax measures the time between 2 noteons, so deltatime of borax only fires when a noteon is seen.

#218301
Dec 13, 2011 at 10:53pm

This has not been tested much, so there are probably bugs lurking, but it should get you started:

– Pasted Max Patch, click to expand. –

`

#218302
Dec 14, 2011 at 6:20pm

Thank You very much Chris. Try to understand Your patch, works very well and
lookes very professional. Will try to quantize the deltatimes and to solve the problem with the length of the last note, which i cannot get from borax.
Thanks once again for Your help

#218303
Dec 14, 2011 at 7:25pm

The length of the last note should be fine, it’s the delta time until the next note which is a bit dodgy. I send the delta message to borax when recording is turned off, which will report the delta time between the note and when recording is turned off. There could be improvements here for sure.

Also, if it wasn’t harder to deal with on the forum, I would have made a couple of abstractions that held most of this stuff.

#218304
Dec 14, 2011 at 9:57pm

I looked at your stuff, but i think its askink too much for me now. But I will have further looks. My problem is the last note´s length should not end when I press the record button, it should match with the end to the bar. By the way, do you know keykit?
Thanks, Hermann

#218305
Dec 14, 2011 at 11:04pm

How are you deriving bars? And do you really mean note length? The length is how long you play the note for, the delta time is the time until the next note.

I looked at Keykit _many_ years ago, but I never really used it.

#218306
Dec 15, 2011 at 10:22am

With length I don´t mean the duration but the dealtatime.
I think of something like to add up the quantized deltatimes and if a bar takes for example 2000 ms, the deltatime of the last note is 2000 minus sum of other deltatimes for this bar. What do You think?

#218307
Dec 15, 2011 at 10:56pm

Chris, just understood Your patch, the trick with the nsub message. Very fine!

#218308

You must be logged in to reply to this topic.