arirusso / unimidi

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

Failing to get output on Windows 7 #5

Closed tspivey closed 12 years ago

tspivey commented 12 years ago

On windows 7, with a just-installed ruby 1.9.2 and unimidi from rubygems, I get this (sample code): require "rubygems" require "unimidi" output = UniMIDI::Output.use(:first)

C:/Ruby192/lib/ruby/gems/1.9.1/gems/unimidi-0.2.5-x86-mingw32/lib/unimidi/congruous_api_adapter.rb:18:in `enabled?': undefined method `enabled' for #<MIDIWinMM::Output:0x27ecd00> (NoMethodError)
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/unimidi-0.2.5-x86-mingw32/lib/unimidi/congruous_api_adapter.rb:23:in `open'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/unimidi-0.2.5-x86-mingw32/lib/unimidi/congruous_api_adapter.rb:123:in `use_device'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/unimidi-0.2.5-x86-mingw32/lib/unimidi/congruous_api_adapter.rb:75:in `use'
    from C:/Users/tyler/test.rb:3:in `<main>'

The example from midi-winmm's git successfully plays the notes.

My gem list:

C:\Users\tyler>gem list

*** LOCAL GEMS ***

ffi (1.0.9 x86-mingw32)
micromidi (0.0.5)
midi-eye (0.1.3)
midi-message (0.2.2)
midi-nibbler (0.1.1)
midi-winmm (0.1.9)
minitest (1.6.0)
rake (0.8.7)
rdoc (2.5.8)
unimidi (0.2.5 i386-mingw32)
arirusso commented 12 years ago

Yep, I'm away from home and unfortunately wasn't able to test the latest version of unimidi in windows myself. Ill fix this tonight and ping this thread. It's a simple fix

arirusso commented 12 years ago

All set.

You'll just need to gem update midi-winmm (to version 0.1.10)

Sorry for the hassle and let me know if you run into any other problems