Page 1 of 2
Setup priority on MIDI Execution - Delay?
Posted: Wed Apr 29, 2015 9:36 am
by Nowhk
Is there a way (in this case) to always output the MIDI (in the upper part) before the MIDI in the lower part?

- Immagine.png (22.1 KiB) Viewed 16433 times
I need priority on execution here due to the application I'm making. Is there any MIDI delay?
Re: Setup priority on MIDI Execution - Delay?
Posted: Wed Apr 29, 2015 3:28 pm
by Nowhk
Well, this is what I've done with Ruby:

- Immagine.png (29.82 KiB) Viewed 16421 times
not sure how much consistency this code will be, but seems to works.
How is managed the output time and @ins array? Are unique for each event handler? Or can they mess each others?
deleted by uploader
Posted: Wed Apr 29, 2015 3:36 pm
by tiffy
delete
Re: Setup priority on MIDI Execution - Delay?
Posted: Wed Apr 29, 2015 3:41 pm
by Nowhk
tiffy wrote:Did you try to change the "link Order" of the two Midi Inputs on the "setPort" primitive?
Uhm, how can I do it? Order on the links?

deleted by uploader
Posted: Wed Apr 29, 2015 3:58 pm
by tiffy
deleted
Re: Setup priority on MIDI Execution - Delay?
Posted: Wed Apr 29, 2015 4:04 pm
by Nowhk
tiffy wrote:The easiest is to connect the top link first and then the bottom link or alternatively hover mouse on the left side "M" of the setPort primitive and left click on it once only. You will see the marker flip to the lower Midi link.
In this way?

- Immagine.png (18.27 KiB) Viewed 16419 times
Nothing change. The upper part is trigger later

deleted by uploader
Posted: Wed Apr 29, 2015 4:07 pm
by tiffy
deleted
Re: Setup priority on MIDI Execution - Delay?
Posted: Wed Apr 29, 2015 4:09 pm
by Nowhk
tiffy wrote:Yes.
I want the upper part triggered before

And also if I switch the cables, nothing change: the lower part always output as first.
tiffy wrote:But if this doesn't work then I cannot help you any further as I never worked with Midi.
No matter, thank you for the help anyway

Any Flowstone/DSP master can tell me if my Ruby approch is ok? I don't know in deep how pins/events/time/arrays are processed, honestly.
Re: Setup priority on MIDI Execution - Delay?
Posted: Wed Apr 29, 2015 7:15 pm
by nix
Hey Nowhk,
How's it going? Pleased to meet you.
I can help here I think.
I am familiar with Ruby MIDI.
In the code you have written,
it doesn't actually delay the second one I think.
It allows the signal to pass through without change.
I have a problem concieving of the function you wish to create.
Do you mean that the 2 midi ins receive a message at the same time, and then the order is created?
If you'd like, you can send me the schematic in a pm and detail what you are trying to do.
Tiffy is quite right that we can use a trick here if you are happy to create the message with the 'midi event'
prims. You can do this link order thing with trigger input pins of the 'MIDI event'.
But I would like a larger picture of what you wish to accomplish.
However, I will make you MIDI delays in green and Ruby prolly.
I'll be back later today to this thread with them.
Re: Setup priority on MIDI Execution - Delay?
Posted: Wed Apr 29, 2015 7:46 pm
by nix
Here is a demo of the link order setting priority->

- link order.png (75.71 KiB) Viewed 16405 times
The links out of the button set the order.
Will be back with the delay ones soon.