Midiator 0.4.0 Released

midiator version 0.4.0 has been released!

A nice Ruby interface to your system’s MIDI services.

MIDIator was inspired by Topher Cyll’s fantastic Practical Ruby Projects
book. In it, Topher describes how to interact with the MIDI providers
in OSX, Linux, and Windows. As I was reading the book, I noticed some
things I would do differently, which got me thinking that maybe it
would be valuable to package up my modifications to the book’s code and
release it as a gem.

Changes:

0.4.0 / 2011-01-25

  • minor tweaks to packaging
  • remove dependency on Platform gem

On Wed, Jan 26, 2011 at 10:55 AM, Ben B. [email protected]
wrote:

midiator version 0.4.0 has been released!

will this run on 1.9?

i’m asking since i get,

“uninitialized constant DL::Importable”

kind regards -botp

On Tue, Jan 25, 2011 at 9:57 PM, botp [email protected] wrote:

will this run on 1.9?

Sadly, it will not. Maintaining compatibility with both 1.8 and 1.9
pretty much requires a rewrite to use FFI… and that’s a big pain.

Patches welcome, though :slight_smile:

Ben

On Wed, Jan 26, 2011 at 5:48 AM, Quintus [email protected] wrote:

If you’re missing DL::Importable, it has been renamed to DL::Importer.

I’ll check again, but I believe there have been other changes in DL as
well that make it harder to support than just changing the name of
that constant.

Ben

On Thu, Jan 27, 2011 at 12:12 AM, Ben B. [email protected]
wrote:

that make it harder to support than just changing the name of that constant.

DL::PtrData i guess is one

kind regards -botp

…and the case of the first letter of each method in the interface. I
forked (the old) midiator and got it to at least “compile” under both
Ruby 1.8 an 1.9, but I’m not sure it’s complete because I haven’t had
time to test it — this was coded during train rides.
https://github.com/jimm/midiator

Jim

Am 26.01.2011 07:13, schrieb Ben B.:

If you’re missing DL::Importable, it has been renamed to DL::Importer.


#ruby -v: ruby 1.9.2p136 (2010-12-25 revision 30365) [x86_64-linux]
irb(main):001:0> require “dl/import”
=> true
irb(main):002:0> DL::Importer
=> DL::Importer
irb(main):003:0>

On Fri, Jan 28, 2011 at 9:46 AM, Jim M. [email protected]
wrote:

https://github.com/jimm/midiator

wow that passes all the examples.
best regards -botp

Hi Jim,

On Thu, Jan 27, 2011 at 5:46 PM, Jim M. [email protected]
wrote:

…and the case of the first letter of each method in the interface. I
forked (the old) midiator and got it to at least “compile” under both
Ruby 1.8 an 1.9, but I’m not sure it’s complete because I haven’t had
time to test it — this was coded during train rides.
https://github.com/jimm/midiator

First off, thank you for doing the legwork to get things running in 1.9.

I took a look at your fork and I’m going to try to find a way to
incorporate those changes without using large conditionals like that.

Thanks,
Ben

One more caveat on my fork: I only played with the core_midi driver
and dls_synth on the Mac.

Jim