2023-05-09 03:32:09 +00:00
|
|
|
#!/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
|
|
|
|
|
|
2023-05-24 03:08:39 +00:00
|
|
|
$stderr.sync = true
|
|
|
|
|
$stdout.sync = true
|
2023-05-09 03:32:09 +00:00
|
|
|
theremin.start
|
|
|
|
|
|