https://github.com/arirusso/mvlc
Control VLC Media Player with MIDI
https://github.com/arirusso/mvlc
Last synced: over 1 year ago
JSON representation
Control VLC Media Player with MIDI
- Host: GitHub
- URL: https://github.com/arirusso/mvlc
- Owner: arirusso
- License: other
- Created: 2017-06-18T22:40:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-27T15:58:15.000Z (about 9 years ago)
- Last Synced: 2024-04-24T18:42:01.079Z (over 2 years ago)
- Language: Ruby
- Homepage:
- Size: 479 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mmplayer
Control [VLC Media Player](https://en.wikipedia.org/wiki/VLC_media_player) with MIDI
*This is a fork of [mmplayer](https://github.com/arirusso/mvlc), a gem to control MPlayer with MIDI*
Enabling VLC to be controlled by MIDI opens up a host of possibilities for live video performance, media automation and more
This project provides a Ruby DSL to define realtime interactions between MIDI input and VLC
## Install
You'll need to install VLC before using this. More information about that is available on [the VLC website](http://www.videolan.org/vlc/index.html)
This project itself can be installed as a Ruby Gem using
`gem install mvlc`
Or if you're using Bundler, add this to your Gemfile
`gem "mvlc"`
## Usage
```ruby
require "mvlc"
@input = UniMIDI::Input.gets
@player = MVLC.new(@input) do
rx_channel 0
system(:start) { play("1.mov") }
note(1) { play("2.mov") }
note("C2") { play("3.mov") }
cc(1) { |value| set_volume(value) }
cc(20) { |value| seek_percent(to_percent(value)) }
eof { puts "finished" }
end
@player.start
```
An annotated breakdown of this example can be found [here](https://github.com/arirusso/mvlc/blob/master/examples/simple.rb)
## License
Apache 2.0, See LICENSE file
Copyright (c) 2017 [Ari Russo](http://arirusso.com)