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
MIDI I/O - Editing channel data
5 posts
• Page 1 of 1
MIDI I/O - Editing channel data
Hi
I was trying to read from midi split and change a certain note to another one, but when changing the notes value, it seems some notes get stuck while playing 2 or more notes.
I'm guessing note off messages get mixed up somehow?
Do we need to hold playing notes in an array manually, or something?
Any thoughts on this?
I was trying to read from midi split and change a certain note to another one, but when changing the notes value, it seems some notes get stuck while playing 2 or more notes.
I'm guessing note off messages get mixed up somehow?
Do we need to hold playing notes in an array manually, or something?
Any thoughts on this?
- Father
- Posts: 177
- Joined: Thu Jan 09, 2014 5:48 pm
Re: MIDI I/O - Editing channel data
Hi,
look at the ruby 'reading/creating Midi Objects' Part in the User Guide!
should work fine 4 ur needs!
look at the ruby 'reading/creating Midi Objects' Part in the User Guide!
should work fine 4 ur needs!
-
Walter Sommerfeld - Posts: 249
- Joined: Wed Jul 14, 2010 6:00 pm
- Location: HH - Made in Germany
Re: MIDI I/O - Editing channel data
[quote="Walter Sommerfeld"look at the ruby 'reading/creating Midi Objects' Part in the User Guide! should work fine 4 ur needs![/quote]
I'm actually doing it with ruby. Something like this:
But i was looking for more information about it how things are working, and how to handle multiple notes.
I'm actually doing it with ruby. Something like this:
- Code: Select all
midi_out = Midi.new @original_state,@original_channel,@replaced_note,@original_velo
But i was looking for more information about it how things are working, and how to handle multiple notes.
- Father
- Posts: 177
- Joined: Thu Jan 09, 2014 5:48 pm
Re: MIDI I/O - Editing channel data
There's quite a lot info here on the forums about simultanous/overlapping midi notes. Short summarize:
-You need a midi buffer, which simply is an array.
-For every note on event you store the midi note in the array, for every not off event you drop it from the array.
-In case of emergency, you can just send out a note off for each note in the array while deleting them from the array (="all notes off")
If you're completely replacing midi notes, you may want to work with two arrays, one holding the original data, the other one holding the altered midi events (and both managed exactly the same regarding adding and deleting items), so that you can send out the correct note off, and keep track of all events.
-You need a midi buffer, which simply is an array.
-For every note on event you store the midi note in the array, for every not off event you drop it from the array.
-In case of emergency, you can just send out a note off for each note in the array while deleting them from the array (="all notes off")
If you're completely replacing midi notes, you may want to work with two arrays, one holding the original data, the other one holding the altered midi events (and both managed exactly the same regarding adding and deleting items), so that you can send out the correct note off, and keep track of all events.
"There lies the dog buried" (German saying translated literally)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: MIDI I/O - Editing channel data
tulamide wrote:summarize:
-You need a midi buffer, which simply is an array.
-For every note on event you store the midi note in the array, for every not off event you drop it from the array.
-In case of emergency, you can just send out a note off for each note in the array while deleting them from the array (="all notes off")
That makes sense. I was hoping for a shortcut, but looks like we have to do it this way for a solid solution. But how about limiting the array size and number of notes we can store? I have to get back and try it first.
- Father
- Posts: 177
- Joined: Thu Jan 09, 2014 5:48 pm
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 61 guests