arirusso / unimidi

Realtime MIDI IO for Ruby
Other
255 stars 27 forks source link

unexpected 0x00 at beginning of SysEx message #8

Closed aberant closed 12 years ago

aberant commented 12 years ago

so i've been trying to make a program so i can mess with my virus c using sysex and i'm seeing an odd issue. here's my code

require 'unimidi'

@output = UniMIDI::Output.gets

sysex_msg = [0xF0, 0x00, 0x20, 0x33, 0x01, 0x10, 0x32, 0x01, 0xF7]
@output.open{|o| o.puts(sysex_msg)}

i send that to the virus. as we all know, it's the sysex command to dump the entire A bank of the synth. i see it's sysex indicator come on.. and then nothing. I fire up midi monitor and it looks like there's an extra 0x00 on the front of the message. any ideas what could cause this?

example

arirusso commented 12 years ago

Colin, what Ruby/OS environment are you using?

arirusso commented 12 years ago

Are you sure that the 00 is really the first byte there? Notice that it says 9 bytes at the top and the actually message is 9 bytes. Maybe 00 is the index of the message in that readout. Maybe try sending a bunch of them and see if the number increments?

aberant commented 12 years ago

d'oh.. so i restarted EVERYTHING and it's working again. sorry, i should have done that before i filed a ticket. i guess my synth was in a bad state.

also, that 0x00 was some formatting that only became apparent when i looked at larger messages

i've poured myself some caffeine and hopefully you won't get any more stupid tickets from me tonight.. 8)

arirusso commented 12 years ago

no worries, this was totally worth it just to have my wild guess be correct