Method: Sidtool::Voice#initialize

Defined in:
lib/sidtool/voice.rb

#initializeVoice

Returns a new instance of Voice.



12
13
14
15
16
17
18
19
# File 'lib/sidtool/voice.rb', line 12

def initialize
  @frequency_low = @frequency_high = 0
  @pulse_low = @pulse_high = 0
  @attack_decay = @sustain_release = 0
  @control_register = 0
  @current_synth = nil
  @synths = []
end