MIDI Input/Output plugin for Fluentd
Experimental project for log audiolization.
Installation
$ gem install fluent-plugin-midi
Usage
- Output
echo '{"status":144, "note": 60, "velocity": 120}' | fluent-cat debug
sleep 3
echo '{"status":144, "note": 60, "velocity": 0}' | fluent-cat debug
or
echo '{"status":144, "note": 60, "velocity": 120, "duration": 3}' | fluent-cat debug
Configuration
- Input
<source>
type midi
tag TAG
port MIDI_PORT_INDEX
</source>
- Output
<match pattern>
type midi
port MIDI_PORT_INDEX
</match>
port
To list midi port index
require 'rtmidi'
output = RtMidi::Out.new
puts output.port_nemes.each_with_index.to_a.inspect
# => [["IAC Driver port0", 0], ["IAC Driver port1", 1], ["MIDI Monitor (midimon.mMon)", 2]]
Contributing
- Fork it ( http://github.com/meganemura/fluent-plugin-midi/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request