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.

Midiosx

236 views

Published on

松江ルビー会議07のLTで発表したMidiosXのスライドです。

Published in: Software
  • Be the first to comment

  • Be the first to like this

Midiosx

  1. 1. MidiosX Sequencing and Live-play under OS X from Ruby 進藤 元明 <motoakira@mac.com>
  2. 2. MidiosXはgemです • gem install midiosx • require midiosx
  3. 3. 何ができるの? • Mac OS X内蔵のMIDI sequencerを使った演奏 • Mac OS X内蔵のSynthesizerをライブで演奏 • 上記2機能をrubyプログラムから呼び出せる
  4. 4. • Mac OS X内蔵のMIDI sequencerを使った演奏 Jeremy Voorhis <jvoorhis@gmail.com> が、”music_player”として実装 MidiosXはそれにライブ演奏機能を書き加え たもの
  5. 5. MusicSequence tempo track MusicTrack MusicTrack MusicTrack MusicPlayer • Mac OS X内蔵のMIDI sequencerを使った演奏 • MusicTrack#add(time, message) • MusicPlayer#start
  6. 6. MusicSequence tempo track MusicTrack MusicTrack MusicTrack AUGraph DLSSynth • Mac OS X内蔵のSynthesizerをライブで演奏 • AUGraph#start • MusicTrack#play(message)
  7. 7. MIDI Messages • MIDINoteMessage • MIDINoteOnMessage • MIDINoteOffMessage • MIDIChannelMessage • MIDIKeyPressureMessage • MIDIControlChangeMessage • MIDIProgramChangeMessage • MIDIChannelPressureMessage • MIDIPitchBendMessage
  8. 8. MIDINoteMessage • :channel • :note • :duration • :velocity • :release_velocity
  9. 9. MIDINoteOnMessage • :channel • :note • :velocity
  10. 10. MIDINoteOffMessage • :channel • :note • :release_velocity
  11. 11. MIDIControlChangeMessa ge • :channel • :number • :value
  12. 12. MIDIProgramChangeMess age • :channel • :program

×