Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Midi madness


Published on

Very basic introduction to how to create MIDI files using Python. Used in a London Python Code Dojo and all the teams created different programs.

  • Be the first to comment

  • Be the first to like this

Midi madness

  1. 1. 1/16MIDI MadnessCarles Pinacarles@pina.catApril 2013, Python Code Dojo
  2. 2. 2/16Story● Hackday at Mendeley● Classic “hack”:– data -> graphic (bars, maps, animation)● My idea: play with some other sense– data -> sound● (so this time is not smelly like the “USBOlfactory Notifications”)
  3. 3. 3/16Problem● IANAM● Anagram of “mania”● Acronym of:– I Am Not A Musician● I didnt do any nice music
  4. 4. 4/16Story of that day● 10:00: Ill do the “The Music of your Library”● 11:30: Ill do “The Sound of your Library”● 13:00: Ive done “The Noise of your library”
  5. 5. 5/16What is MIDI (from Wikipedia)● MIDI (Music Instrument Digital Interface) is atechnical standard that describes a protocol,digital interface and connectors and allows awide variety of electronic musical instruments,computers and other related devices toconnect and communicate with one another.
  6. 6. 6/16What MIDI (casual definition)
  7. 7. 7/16Which data I could have used in myexperiment● Documents Readership● Each users library document has:– Number of readers– Number of different countries
  8. 8. 8/16IdeaReadersCountriesDocument 1Document 2Document 3Document 2Document 3
  9. 9. 9/16● It has two dimensions● Sounds:– pitch– duration– rythm– instruments?
  10. 10. 10/16IdeaNote pitchNotedurationDocument 1(high duration, low pitch)Document 2(low duration,low pitch)Document 3(high pitch, low duration)
  11. 11. 11/16Demo(s)
  12. 12. 12/16Prior art● Always investigate the prior art after resolvingthe problem :-)● Youtube video● Vi Art
  13. 13. 13/16Ideas... represent in music:● PI/e digits● Fractals● Fibonacci/...● Any CSV file to sound● y=f(x) and create... music (*)● Text to sound! (enter a phrase, listen themusic of it)● Play! (how different languages sound?Different functions? Different numbers?)
  14. 14. 14/16y=f(x)● (Too difficult for a Dojo?)● Enter a seed● Power/root: accelerates/deaccelerates● Add/rest: higher/lower pitch● etc.
  15. 15. 15/16Possible implementation●●● On Linux: timidity to play .mid files● On Mac: Quicktime7 (someone told me today)● On Windows: Winamp