Class: Synthesizer::OscillatorSource::Pulse::Context

Inherits:
Base::Context
  • Object
show all
Defined in:
lib/synthesizer/oscillator_source/pulse.rb

Instance Attribute Summary collapse

Attributes inherited from Base::Context

#init_phase, #note_perform, #pos, #soundinfo

Instance Method Summary collapse

Methods inherited from Base::Context

#channels, #framerate, #samplerate, #window_size

Constructor Details

#initialize(soundinfo, note_perform, init_phase) ⇒ Context

Returns a new instance of Context.



23
24
25
26
27
# File 'lib/synthesizer/oscillator_source/pulse.rb', line 23

def initialize(soundinfo, note_perform, init_phase)
  super(soundinfo, note_perform, init_phase)

  @prev = -1.0
end

Instance Attribute Details

#prevObject

Returns the value of attribute prev.



21
22
23
# File 'lib/synthesizer/oscillator_source/pulse.rb', line 21

def prev
  @prev
end