Method: WavTool#initialize
- Defined in:
- lib/wavtool.rb
#initialize(out: 'out.wav', channels: :mono, format_code: :pcm_16, sample_rate: 44100, src_path: '.', verbose: false, debug: false) ⇒ WavTool
Returns a new instance of WavTool.
14 15 16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/wavtool.rb', line 14 def initialize(out: 'out.wav', channels: :mono, format_code: :pcm_16, sample_rate: 44100, src_path: '.', verbose: false, debug: false) @format = Format.new(channels, format_code, sample_rate) @src_path, @out = src_path, out @verbose, @debug = verbose, debug if @verbose then puts 'WavTool'.highlight puts 'options: generate_silence, concat'.info puts end end |