macsaif

delay function

5 posts in this topic

Just one question about delay function and Sender/Receiver. 

If I call delay function in NGR, are the Sender and Receiver working in the background during delay?

It seems that during delay forwarding of midi events from Receiver to Sender are stopped. 

Is there any solution to make delay between 2 functions in NGR without stopping of other running functions in the background? 

Frank

Share this post


Link to post
Share on other sites

Not without programming a timer in RTOS. 

 

Share this post


Link to post
Share on other sites

That is a problem. No idea how to programming RTOS.

My general problem is that from NG board I am sending 2 sysex messages to KB board which are changing the status of Break_Is_Make On/Off for keyboard 1 and 2. When I am sending the first message I need to wait few milliseconds because the KB board is sending note_off messages for each tone 0-127 at changing of the status of the Break_Is_Make (I need to ignore or process these messages). If I am putting delay in NGR between 2 sysex messages the NG board will start to process these received messages after delay time and it causes random note on messages.

Share this post


Link to post
Share on other sites

Do you send single note off events?

This is not necessary. I assume that Thorsten took care of the classical MIDI implementation. 
If you send CC #123 from NG to KB, KB should interpret this as "All notes off". This should speed up the process significantly. 

Share this post


Link to post
Share on other sites

No, I am sending sysex for switching On/Off the Break Is Make function. It causes that after switching the KB board is sending Note Off messages for all notes starting from 0 to 127.

I do not need it but can do nothing with it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now