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

Capturing the pitch band message by Ruby - Is there a way?

For general discussion related FlowStone

Capturing the pitch band message by Ruby - Is there a way?

Postby kortezzzz » Sat Aug 26, 2017 10:31 pm

http://imgur.com/a/mcz20

Hi people.
Found some free time to try solving this old time problem I have:
I'm still trying to pass a manipulated midi signal (by using Ruby) to the outside world through a virtual midi cable without loosing the pitchband message that being created during playing the keyboard. The first code in the picture manipulates the message fine, but I have no idea how to make ruby pass the pitch messages as well :cry:

So I just thought maybe there is a creative way to connect both manipulated and original midi signals to a second ruby module and then isolate only the pitch messages from the original signal, while keeping the manipulated un-touched. When done, the ruby module would create a new midi array that would pass the total results (manipulated notes+pitchband messages) out to the cable.

Any chance that its possible? What would be the code then (I tried so many suggestions allready - yet no luck)? Thanks :)
User avatar
kortezzzz
 
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm

Re: Capturing the pitch band message by Ruby - Is there a wa

Postby tulamide » Thu Aug 31, 2017 9:55 am

kortezzzz wrote:When done, the ruby module would create a new midi array that would pass the total results (manipulated notes+pitchband messages) out to the cable.

That sentence doesn't make sense. MIDI is a serial protocol. All messages come in and go out one after the other. So, hitting a key and moving the pitchbend wheel simultanously creates two discrete messages.

Seperating pitch bend from the rest of the stream is simple. The status byte is 224 + midi channel (0-based). 224 = pitchbend on channel 1, 239 = pitchbend on channel 16

You just have to check for the status byte to be in that range and then output to another midi stream. Find an example attached. I'm sure you'll figure out the rest ;)
Attachments
Filter_Pitchbend.fsm
(435 Bytes) Downloaded 915 times
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Capturing the pitch band message by Ruby - Is there a wa

Postby kortezzzz » Thu Aug 31, 2017 10:40 pm

Damn yeah, tula, you did it again! :D
God, I was after a solution for so long...
Works perfectely here. THANKS MAN 8-)
User avatar
kortezzzz
 
Posts: 763
Joined: Tue Mar 19, 2013 4:21 pm


Return to General

Who is online

Users browsing this forum: No registered users and 49 guests