Tag Archives: ruby
By Nate Murray | Published: November 17, 2009
Interval interval is a tiny library that provides simple musical note pitch and interval arithmetic. It is intended to do one thing: given a pitch add (or subtract) an interval and give the resulting pitch. Observe: p = Interval::Pitch.from_string("c") i = Interval::Interval.from_string("M3") p2 = p + i p2.to_short_name # => "e" i.to_s # => [...]
By Nate Murray | Published: June 10, 2009
Just released: git-style-binaries ruby gem. Checkout the README on github. Checkout the screencast.
By Nate Murray | Published: February 10, 2009
Ruby has a great method for enumerations called #each_with_index. It’s a handy way to iterate over a list of elements and and know where you’re at while doing it. Erlang has a group of highly optimized list operations in the lists module (Try erl -man lists to see them all). We’re going to be using [...]