20 lines
328 B
Text
20 lines
328 B
Text
|
|
#!/usr/bin/env ruby
|
||
|
|
# vim: set noet sta sw=4 ts=4 :
|
||
|
|
|
||
|
|
$LOAD_PATH << './lib'
|
||
|
|
require 'pathname'
|
||
|
|
require 'configurability'
|
||
|
|
require 'theremin'
|
||
|
|
|
||
|
|
Configurability::Config.load( 'config.yml' ).install
|
||
|
|
|
||
|
|
theremin = Theremin.new
|
||
|
|
|
||
|
|
Signal.trap( "INT" ) do
|
||
|
|
puts "\n\nShutting down..."
|
||
|
|
theremin.stop if theremin.running
|
||
|
|
end
|
||
|
|
|
||
|
|
theremin.start
|
||
|
|
|