#!/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