Class: Synthesizer::OscillatorSource::FormantVocoder::Context
- Inherits:
-
Base::Context
- Object
- Base::Context
- Synthesizer::OscillatorSource::FormantVocoder::Context
- Defined in:
- lib/synthesizer/oscillator_source/formant_vocoder.rb
Instance Attribute Summary collapse
-
#pronunciation_mod ⇒ Object
readonly
Returns the value of attribute pronunciation_mod.
-
#pulse_context ⇒ Object
readonly
Returns the value of attribute pulse_context.
-
#tmpbufs ⇒ Object
readonly
Returns the value of attribute tmpbufs.
Attributes inherited from Base::Context
#init_phase, #note_perform, #pos, #soundinfo
Instance Method Summary collapse
-
#initialize(soundinfo, note_perform, init_phase, pronunciation) ⇒ 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, pronunciation) ⇒ Context
Returns a new instance of Context.
104 105 106 107 108 109 110 111 |
# File 'lib/synthesizer/oscillator_source/formant_vocoder.rb', line 104 def initialize(soundinfo, note_perform, init_phase, pronunciation) super(soundinfo, note_perform, init_phase) synth = note_perform.synth @pronunciation_mod = ModulationValue.balance_generator(note_perform, synth.soundinfo.window_size.to_f, pronunciation) @tmpbufs = Array.new(5) {|i| Vdsp::DoubleArray.new(soundinfo.window_size+2)} @pulse_context = Pulse.instance.generate_context(soundinfo, note_perform, init_phase) end |
Instance Attribute Details
#pronunciation_mod ⇒ Object (readonly)
Returns the value of attribute pronunciation_mod.
100 101 102 |
# File 'lib/synthesizer/oscillator_source/formant_vocoder.rb', line 100 def pronunciation_mod @pronunciation_mod end |
#pulse_context ⇒ Object (readonly)
Returns the value of attribute pulse_context.
102 103 104 |
# File 'lib/synthesizer/oscillator_source/formant_vocoder.rb', line 102 def pulse_context @pulse_context end |
#tmpbufs ⇒ Object (readonly)
Returns the value of attribute tmpbufs.
101 102 103 |
# File 'lib/synthesizer/oscillator_source/formant_vocoder.rb', line 101 def tmpbufs @tmpbufs end |