RUBY MIDI fun

For general discussion related FlowStone
Post Reply
primate
Posts: 22
Joined: Thu Dec 19, 2013 10:42 pm

RUBY MIDI fun

Post by primate »

HI
So I finally decided that I should take ruby by the horns, dive in and try and figure out how to do things that i take for granted in green, with an especial emphasis on MIDI.

Here are some of my misadventures in ruby / midi / nrpn over the course of a couple of days. The more interesting components are;

*Notes playing and chord playing identifier. will identify fifths, majors and minors, would be easy to expand with more definitions
*a basic midi clock that outputs sysex start stop and clock data.
*ruby midi splitters using a couple of different methods to access the data
*ruby midi nrpn knobs with data presets for msb and lsb
*autochord, will turn any note into the root of a major or minor chord in ruby

There are a few other bits and bobs. none of these things are groundbreaking (very n00by ruby), most of these things are bastardised versions of things that generous forum regulars have shared.

ruby curios and monstrosities.fsm
(190.57 KiB) Downloaded 1516 times


if anyone has any suggestions about how to improve these ideas, questions about how they work or would like to have a go at working on some midi oriented ruby fun then let me know. (I'd especially like to work on the MIDI clock with someone, to add ppq to ramps etc..)

despite at first being overwhelmed by the apparent complexity of ruby, I'm staring to appreciate its simplicity a bit now, doing things in a few lines that would be taxing in green. I'm sure that the code that I've come up with could be simplified a lot, but it has been quite satisfying to make some progress. :D
Post Reply