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.
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.
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.
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!
- A better description!
- Change the scraper so that it uses this data instead http://www.gtfs-data-exchange.com/agency/oc-transpo/