Page 1 of 2

Powerfull Midi manipulation Ruby library

PostPosted: Thu Apr 18, 2013 10:21 pm
by User108
Hello to all, I've found some awesome midi library MIDILIB (Google it for details) and succeeded to fully integrate it to Flowstone's Ruby - no need to carry extra files, just paste one instance of Ruby code component containing all the functions of MIDILIB - and you are ready to process midi files. Hope, this will give birth to long-awaited sequencers written in pure Ruby. Good-luck! I also attach original MIDILIB - you don't need it, but may look at its factory code examples.

And I would thank all the developers for such a perfect tool as Flowstone. I was disappointed by Synthmaker's inability to deal with binary files, but now Flowstone fixed this and brings me back as a happy user thanks to Ruby. :)

Re: Powerfull Midi manipulation Ruby library

PostPosted: Sat Apr 20, 2013 3:18 am
by Jay
Hi user108 Welcome to the forum

many thanks for you efforts and sorry this has been largely ignored! how ignorant! :oops:

is there any chance that you could show how to use this?

I am trying to pick Ruby up but myself and a lot of others here are only skimming the basics of Ruby atm!

Best Regards

Re: Powerfull Midi manipulation Ruby library

PostPosted: Sat Apr 20, 2013 3:42 am
by billv
Jay wrote:is there any chance that you could show how to use this?

+1
Just started using ruby and still have no idea.
Love the sound of what you have offered(thanks for sharing)- :o
But extremly hard to approach for a ruby learner. :?
A basic FSM showing this stuff in use would be awesome....
Cheers

Re: Powerfull Midi manipulation Ruby library

PostPosted: Sat Apr 20, 2013 11:04 pm
by User108
Hi, I'm very happy I could help someone. :D But I'm quite new to Ruby too, as well as MIDILIB and Flowstone, though I made some experiments with SM. Primarily I program in Hiasm Studio - http://www.hiasm.com , unfortunately it became abandonware now, so I try to move to Flowstone.

But here is what I could do at first approach, please see attachment.

Re: Powerfull Midi manipulation Ruby library

PostPosted: Sun Apr 21, 2013 12:32 am
by billv
User108 wrote: please see attachment.

Thanks a lot. :) Will take a while to absorb......

Re: Powerfull Midi manipulation Ruby library

PostPosted: Sun Apr 21, 2013 1:43 am
by trogluddite
Welcome, user108
That's a really neat library by the looks of it - with a couple of extra methods to translate to a from the FS built-in Midi class and timing clock it could be the beginnings of a great new toolkit - thanks for sharing it with us. :D

Re: Powerfull Midi manipulation Ruby library

PostPosted: Sun Apr 21, 2013 9:50 am
by User108
Hello, trogluddite. Where is MIDI, there's trogluddite.. (c) :) Thank you too for all your helpful posts at SM forum.
I also found that there are some Ruby video libraries out there, but it seems they have much more dependencies to integrate into Flowstone, so I'll try to explore them in future. That would enable us to create even some VJ-ing apps and plugins with FS.
My personal interest in Midilib appeared due to my plan to create the sequencer of my dream - "DreamSeq".. Which I could then use to "paint" music with sequences (being able to record and select them live from a variety of 16384 pre-recorded sequences - 128 banks x 128 programs with just 2 knobs), not just sounds.

Re: Powerfull Midi manipulation Ruby library

PostPosted: Tue Apr 23, 2013 4:34 pm
by MyCo
I'm actually working on a Midi Player, but I've started from zero (no Lib used). So far I've a Midi Reader, and some classes that allow Midi data access. It works actually really well except that I've no idea how to handle Midi Format 2 (because I've never seen such a file).
I'll start with a player today... But there are still some challenges, especially calculating the event timing...

Re: Powerfull Midi manipulation Ruby library

PostPosted: Thu Jan 23, 2014 3:05 pm
by primate
Is anyone using this? Looks like a great library but despite user108's helpful example I'm struggling to see how it is implemented. If anyone is working with midilib? I'd love to see some more examples.

Re: Powerfull Midi manipulation Ruby library

PostPosted: Fri Sep 24, 2021 8:00 pm
by aefa
I know this is an old post but, did anyone ever got anything out of this lib? All I can do is read the file make a sequence or a MIDIFile but I can't figure out how to parse events and tracks out of it! :(