Giter Site home page Giter Site logo

gitter-badger / fluent-plugin-midi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from meganemura/fluent-plugin-midi

0.0 1.0 0.0 94 KB

MIDI Input/Output plugin for Fluentd event collector

Home Page: https://rubygems.org/gems/fluent-plugin-midi

License: MIT License

fluent-plugin-midi's Introduction

MIDI Input/Output plugin for Fluentd

Gem Version Code Climate Dependency Status

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

  1. Fork it ( http://github.com/meganemura/fluent-plugin-midi/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

fluent-plugin-midi's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.