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
Turning a micro computer system into MIDI device
32 posts
• Page 4 of 4 • 1, 2, 3, 4
Re: Turning a micro computer system into MIDI device
Sorry... i didn't mean the code from above but the concept of passing the messages you don't want to filter or treat...
If the status is 128 or 144 then apply the filter on the event... otherwise let it pass...
"output Midi.new m[0],m[1],m[2],m[3]" is the equivlent of "MIDI.send(type,d1,d2,channel)" in the Arduino/Teensy code.
FYI - on the green side but unrelated to your issue; you only need a trigger switch on the trigger stream... the MIDI split and event primitives can have their integer values connected directly and it will only be output when the trigger is allowed through by the (single) switch.
- Code: Select all
def event i
m = @midiInput.to_array
if (m[0] == 144) || (m[0] == 128)
output Midi.new m[0],m[1],m[2],m[3] if m[2]>@thresh1
else
output Midi.new m[0],m[1],m[2],m[3]
end
end
If the status is 128 or 144 then apply the filter on the event... otherwise let it pass...
"output Midi.new m[0],m[1],m[2],m[3]" is the equivlent of "MIDI.send(type,d1,d2,channel)" in the Arduino/Teensy code.
FYI - on the green side but unrelated to your issue; you only need a trigger switch on the trigger stream... the MIDI split and event primitives can have their integer values connected directly and it will only be output when the trigger is allowed through by the (single) switch.
- strangeChild
- Posts: 47
- Joined: Sat Apr 27, 2013 8:04 pm
Re: Turning a micro computer system into MIDI device
Thanks for the info, strangeChild. Have you succeeded to pass the pitchband messages together with note messages through this rub code without issues? That's the big question
-
kortezzzz - Posts: 763
- Joined: Tue Mar 19, 2013 4:21 pm
32 posts
• Page 4 of 4 • 1, 2, 3, 4
Who is online
Users browsing this forum: No registered users and 52 guests