Class: SFZer

Inherits:
Object
  • Object
show all
Defined in:
lib/sfzer.rb

Overview

Parses the command line options and sets the program into motion.

Constant Summary collapse

VERSION =

Version information

'0.5.0'
VERSION_DATE =
"17 Feb 2009"
URL =
"http://sfzer.rubyforge.org"
NAME =
"SFZer"
SEPARATOR =

File separator for SFZ samples

"\\"
EXITSTATUS_COMPLETE =

Exit codes

0
EXITSTATUS_NO_MULTISAMPLES_FOUND =
1
EXITSTATUS_ARG_ERROR =
2
MAX_NOTE_SHIFT =

EXITSTATUS_USER_ABORT = 3

9 * 12

Instance Method Summary collapse

Instance Method Details

#do(argv) ⇒ Object

Execute the SFZer program



46
47
48
49
50
51
52
53
54
55
# File 'lib/sfzer.rb', line 46

def do( argv )
	begin
		sfzer = process_options( argv )
		sfzer.scan_dirs
	rescue NoMultisamplesInDirectoryException => e
		STDERR.puts "ERROR: #{e.message}"
		STDERR.puts "       Quitting."
		exit SFZer::EXITSTATUS_NO_MULTISAMPLES_FOUND
	end	
end