Class: Synthesizer::OscillatorSource::Pulse::Context
- Inherits:
-
Base::Context
- Object
- Base::Context
- Synthesizer::OscillatorSource::Pulse::Context
- Defined in:
- lib/synthesizer/oscillator_source/pulse.rb
Instance Attribute Summary collapse
-
#prev ⇒ Object
Returns the value of attribute prev.
Attributes inherited from Base::Context
#init_phase, #note_perform, #pos, #soundinfo
Instance Method Summary collapse
-
#initialize(soundinfo, note_perform, init_phase) ⇒ Context
constructor
A new instance of Context.
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
#prev ⇒ Object
Returns the value of attribute prev.
21 22 23 |
# File 'lib/synthesizer/oscillator_source/pulse.rb', line 21 def prev @prev end |