Forums > MaxMSP

hanging notes xnotein/out note offs question

June 8, 2014 | 9:43 am

So I’m having a little problem with hanging notes on the patch I made.

I’ve made it so you can play a scale on a midi 16 pad, and when chords are triggered in the patch the key of the scale is changed. The problem is that when the scale changes and their is a note on message it hangs as their is now a new note in place of the last same midi key.

For example, lets say the scale is C, play the 48 and it’s a C, I change the scale and now say 48 is now a D, but if the 48 was held down when the scale changes it hangs as there’s no associated note off. I’ve tried doing with midiflush and trigger it when a scale changes, but sometimes I want to hold a note down while the scale changes and not have to flush the note.

So i was wondering is there a way to pair the note on and off messages?

Here’s where I’m at:

`

– Pasted Max Patch, click to expand. –

Any help would be greatly appreciated!


June 8, 2014 | 10:22 am

I am terrible at doing this, but I think I’ve solved my problem with an int and an if statement!

Sorry I do think explaining the problem helps me think about it potentially, or just carrying on messing around until it’s fixed instead of waiting for an answer!

Anyways sorry!


June 8, 2014 | 11:18 am

Actually no I haven’t solved the problem just yet, it kind of works but not when playing lots of notes and quite fast.

Anyone wanna have a look and see if they notice something that could help pretty please?

It’s almost perfect!!

`

– Pasted Max Patch, click to expand. –

June 8, 2014 | 3:33 pm

I see no one has any love for xnote? Does everyone hate note offs as much as me right now?!

tried using makenote and is super problematic, and looked at flush too but sends note offs for everything, man this is killing me right now!

I will actually give you a medal if you could help me out here!


June 9, 2014 | 5:12 am

I’m using this approach for smooth transpose switching: the current transpose value is stored in a table for note-ons and then used for corresponding note-offs.

– Pasted Max Patch, click to expand. –

June 9, 2014 | 8:58 am

Hey @BROC that’s a great fix for transposition thank you so much for sharing, just tied it into my patch and works like a charm! I have tried with the note itself that’s output ie after the coll and the +48. If I would have used it in the same place I use to transpose in my patch it wouldn’t work, as I think it needs to affect the main stream of midi notes. It works perfectly transposing but still hangs when switching scales.

I am a bit confused now as to how I change scale without it hanging, I have the scales stored in Coll object, and that affects the interval spacings, I’ve made it so you can swap between pentatonics/bebop/major etc per chord that’s triggered, but still hangs if I select a different scale while playing.

I really don’t wanna drop that coll object as that makes my life so much easier for storing scale values. I think this is what I deserve for ever attempting to make jazz "easier"!!!

`

– Pasted Max Patch, click to expand. –

I guess I could do everything in one scale but that would be boring, and especially as I intended to write all the arpeggio notes in the coll as well, so it could be uber jazz swiggle fun!

Also are there any books on max that are medium to advanced level? I have one called max/msp/jitter for music, by VJ Manzo, and it’s great although a little basic, it gives a good general overview of some important objects but leaves a lot to be desired on the more advanced routing challenges one might face like I’m encountering now with storing, collecting and analysing streams of data. And don’t think it goes into that dark territory of ZL object!

So does anyone know any relatively decent books that can aid in my designing of interactive systems? Something that goes a little more in depth than that Manzo book!That would be really helpful, then you might not see asking silly questions here again!


June 10, 2014 | 7:42 am

Really have hit a brick wall with this project and can’t continue, just been so frustrated with max and myself. I shouldn’t say this but really not in love with max at the moment or myself for that matter. Pulling out my hair because I’m not smart enough to understand how to fix it. I hate this, feel like I’m wasting time not working on the patch.

Never hit a brick wall like this before, where’s that @Spectro dude when you need him! Superman save me please!!

EDIT:

Here’s what it sounds like so far, I think it’s great and i’m really happy with the way it sounds, apart from the hanging notes.

  • This reply was modified 1 month by  richhop.


Ch
June 10, 2014 | 9:48 am

your posts are way too long, so have not read all of it, sorry :)
but i can’t reproduce your bug i think. nothing is ‘hanging’ when i change the scale here.



Ch
June 10, 2014 | 9:56 am

or perhaps : options->audio status. uncheck "Scheduler in Overdrive"


June 10, 2014 | 9:57 am

Rightio thanks for checking it out. Try holding down one note E and changing scale from major to minor 13 to 14, then lift the note up and it still plays. It doesn’t do it on C only notes that change in the scale.


June 10, 2014 | 9:58 am

"Scheduler in Overdrive" in the audio settings is already unchecked I’ve just looked.


June 10, 2014 | 11:07 am

I’d suggest spending some time with [borax].

– Pasted Max Patch, click to expand. –

June 10, 2014 | 11:15 am

AHHHHHHHHHHHH OMG I LOVE YOU SOOOOOOO MUCH!! I LOVE YOU, I LOVE YOU, I LOVE YOU!!

I don’t know how you’ve done, but you are my hero. Seriously you’ve made my day/week/year! I seriously love you so much right now.

I wish there was some way I could show my supreme gratitude for your help, as saying I love you is not enough, but I love you SOOO MUCH!!!

Thank you*infinity! I think i’m gonna cry with happiness now!


June 10, 2014 | 11:26 am

I was just screaming there is a god and my dad shouted back "there is no god" and I shouted back yes there is and he just answered my question!


Viewing 14 posts - 1 through 14 (of 14 total)