Skip to content
A ruby script that converts OCTranspo bus arrival schedules for a given stop into MIDI data.
Ruby
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
midiexports
.gitignore
Gemfile
Gemfile.lock
README.md
octransmid.rb
octransposcraper.rb

README.md

OCTransmid

Description:

For a given OCTranspo bus stop, there are normally several buses that go through it during the day. What if every time a bus arrived at that stop, it played a sound? As more and more buses would pass by the stop, more and more different sounds would be played, essentially creating a pattern. This pattern can then be transformed into MIDI. Currently, OCTransmid can output a .mid file as either singletrack or multitrack.

Multitrack:

Each bus route going through the specified stop is given its own track. That is, you can assign a unique instrument or sound to specifically that track.

Singletrack:

Each bus route going through the specified stop is merged into a single track. However, each route has a different "chord" that it plays. This way, you can assign an instrument to the track, and the arrivals will trigger different notes for that instrument.

How to run:

Simply run: ruby octransmid.rb [options] stopnumber (ex: ruby octransmid.rb 7676) (ex: ruby octransmid.rb -mt 7676 2343 3000)

The current list of options are:

  • mt (export the midi with under multitrack mode)

How to use the MIDI files:

What good are .mid files if you can't play with them? Well, in order to turn them into music, you need some sort of music production software that can import MIDI. For example, GarageBand on OSX.

Important Note: MIDI editing programs normally have a limit for how many simultaneous tracks they can process. Although Ableton Live can handle well over 100, Garageband caps off at 64. That being said, don't expect a multitrack version of Hurdman station (hundreds of buses go through) to be easily importable.

GarageBand

Open up a new garageband project, and simply drag the generated .mid file into it. If you have a multitrack midi, then each bus route will have its own track & instrument associated to it. Press play to hear da beats!

TODO:

Something went wrong with that request. Please try again.