Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Setup priority on MIDI Execution - Delay?

For general discussion related FlowStone

Setup priority on MIDI Execution - Delay?

Postby Nowhk » Wed Apr 29, 2015 9:36 am

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
Immagine.png (22.1 KiB) Viewed 14209 times

I need priority on execution here due to the application I'm making. Is there any MIDI delay?
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Setup priority on MIDI Execution - Delay?

Postby Nowhk » Wed Apr 29, 2015 3:28 pm

Well, this is what I've done with Ruby:

Immagine.png
Immagine.png (29.82 KiB) Viewed 14197 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?
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

deleted by uploader

Postby tiffy » Wed Apr 29, 2015 3:36 pm

delete
Last edited by tiffy on Mon Aug 24, 2015 7:36 pm, edited 1 time in total.
User avatar
tiffy
 
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Setup priority on MIDI Execution - Delay?

Postby Nowhk » Wed Apr 29, 2015 3:41 pm

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? :shock:
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

deleted by uploader

Postby tiffy » Wed Apr 29, 2015 3:58 pm

deleted
Last edited by tiffy on Mon Aug 24, 2015 7:36 pm, edited 2 times in total.
User avatar
tiffy
 
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Setup priority on MIDI Execution - Delay?

Postby Nowhk » Wed Apr 29, 2015 4:04 pm

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
Immagine.png (18.27 KiB) Viewed 14195 times

Nothing change. The upper part is trigger later :roll:
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

deleted by uploader

Postby tiffy » Wed Apr 29, 2015 4:07 pm

deleted
Last edited by tiffy on Mon Aug 24, 2015 7:37 pm, edited 2 times in total.
User avatar
tiffy
 
Posts: 400
Joined: Wed May 08, 2013 12:14 pm

Re: Setup priority on MIDI Execution - Delay?

Postby Nowhk » Wed Apr 29, 2015 4:09 pm

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.
Nowhk
 
Posts: 275
Joined: Mon Oct 27, 2014 6:45 pm

Re: Setup priority on MIDI Execution - Delay?

Postby nix » Wed Apr 29, 2015 7:15 pm

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.
User avatar
nix
 
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Setup priority on MIDI Execution - Delay?

Postby nix » Wed Apr 29, 2015 7:46 pm

Here is a demo of the link order setting priority->
link order.png
link order.png (75.71 KiB) Viewed 14181 times

4Nowhk_link order.fsm
(22.41 KiB) Downloaded 794 times


The links out of the button set the order.
Will be back with the delay ones soon.
User avatar
nix
 
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Next

Return to General

Who is online

Users browsing this forum: No registered users and 104 guests