theremin-pi/theremin/run

22 lines
368 B
Text
Raw Normal View History

#!/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
$stderr.sync = true
$stdout.sync = true
theremin.start