Midi Note Priority

For general discussion related FlowStone
Post Reply
Andreas Ruland
Posts: 3
Joined: Wed Jan 25, 2017 8:00 pm

Midi Note Priority

Post by Andreas Ruland »

Hello,
I'm currently using FL Studio 12 where Flowstone is integrated and what I wanted to do is to create a plug-in which has "Low-Note" or "High-Note Priority" because I couldnt find anything in the Internet.
So if I play any note on my MIDI keyboard (i.e. C4) every higher note should be disabled as long as C4 is played. If I release C4 every note should be playable again. The notes below C4 shouldn't be affected
I'm really new to coding so I don't really know what to do :?

Hope you can help me :/
Attachments
Flowstone1.PNG
Flowstone1.PNG (37.93 KiB) Viewed 18535 times
Last edited by Andreas Ruland on Fri Feb 03, 2017 9:31 am, edited 1 time in total.
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Midi Note Priority

Post by tulamide »

You need to store the state of the last note. You only know the incoming note, so at the very start the first note will be the "priority note". Store it in a variable and compare the next note with it. If higher, don't play, if lower play. As soon as the note off signal from the "priority note" comes in (caution: can be 144 with velocity 0 OR 128), clear the content of the variable to fill it with the next note.
"There lies the dog buried" (German saying translated literally)
Andreas Ruland
Posts: 3
Joined: Wed Jan 25, 2017 8:00 pm

Re: Midi Note Priority

Post by Andreas Ruland »

Thanks for your reply!

But I dont really know how to compare values :/

Do you have any example fsm files you can show me which covers this topic?

I would appreciate it thx :)
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Midi Note Priority

Post by tulamide »

I'm sorry, but I'm too busy with my own projects currently. Maybe someone else will chime in?
"There lies the dog buried" (German saying translated literally)
User avatar
Walter Sommerfeld
Posts: 250
Joined: Wed Jul 14, 2010 6:00 pm
Location: HH - Made in Germany
Contact:

Re: Midi Note Priority

Post by Walter Sommerfeld »

Hi Andreas,

I'm too busy 2... but maybe this little gem from nubeat7 gives u a hint:

or this: http://www.dsprobotics.com/support/viewtopic.php?f=3&t=3294&p=17614#p17605
Attachments
midi note manipulation by nubeat7.png
midi note manipulation by nubeat7.png (34.36 KiB) Viewed 18416 times
Andreas Ruland
Posts: 3
Joined: Wed Jan 25, 2017 8:00 pm

Re: Midi Note Priority

Post by Andreas Ruland »

Thanks for your help!

I think this is a keyboard split right?

Ok I think some programmers here will call me crazy x) but after a few days of googling I found that "priority queue" thing and the way I did it works but is totally buggy and I think there gotta be a much easier way.^^

Hope you can help me :)
Attachments
Priority_Queue.fsm
(3.16 KiB) Downloaded 908 times
Post Reply