arirusso / unimidi

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

No sound unless GarageBand is open #19

Closed trogdoro closed 10 years ago

trogdoro commented 12 years ago

When I run the example code no sound is made When I start up garage band, sound is made.

Platform: OSX Lion with ruby 1.9.3p194

Example code................ require 'unimidi'

duration = 0.5 UniMIDI::Output.open(:first).open do |output| output.puts(0x90, 36, 100) # note on message sleep(duration) # wait output.puts(0x80, 36, 100) # note off message end

trogdoro commented 12 years ago

I read through some of the other comments. Probably worth noting that Midiator used the piano sound from OS X's built-in midi by default. Is that supposed to happen with Unimidi as well, or is it intended to make no noise by default?

trogdoro commented 11 years ago

Any thoughts on this? Same situation in Mountain Lion. You can select the single device. But then it makes no sound when you play.

Then when you Start Garage band it does play sounds through Garage Band, which I sort of accidentally stumbled upon.

I was hoping it would use the built-in mac midi sounds (like Midiator did before it stopped being maintained).

arirusso commented 11 years ago

I'm not sure, I'm not very familiar with MIDIator. I assume you'll need to send a MIDI Patch Change message to select a particular sound. But that's all specific to your setup and not UniMIDI

trogdoro commented 11 years ago

My setup is pretty much the default mac OS setup, so far as MIDI goes. It would be really nice if UniMIDI played sound by default. Currently when you go through the hello world steps it does nothing (generates no sound).

I assume you'll need to send a MIDI Patch Change message to select a particular sound

Any advice for how I could track down what that would be?

arirusso commented 11 years ago

Since you're looking for a feature of MIDIator, a good place to start would be the source for that project