Package eu.bandm.music.applications.harm
Class FnSound.SoundLine
java.lang.Object
eu.bandm.music.applications.harm.FnSound.SoundLine
- Enclosing class:
FnSound
One synthesis voice, driven by a
FnGui.NumberPanel.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final DoublePostFrequency ratio applied on top of the base Hz.(package private) DoubleClockedSignalSourceKarplus-Strong plucked-string generator.(package private) final DoubleTableOscillatorTable oscillator generating the pitched waveform.(package private) final DoubleClockedSignalSourceFinal mixed output signal for this line.(package private) final DoublePostGain: 1.0 while active, 0.0 while silent. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidSwitches the oscillator to a different wavetable.(package private) voidsetFrequency(double hz) (package private) voidSilences audio output for this line.(package private) voidEnables audio and re-excites the pluck generator.
-
Field Details
-
osc
Table oscillator generating the pitched waveform. -
kps
Karplus-Strong plucked-string generator. -
output
Final mixed output signal for this line. -
phaseIsActivePost
Gain: 1.0 while active, 0.0 while silent. -
currentValuePost
Frequency ratio applied on top of the base Hz.
-
-
Constructor Details
-
SoundLine
SoundLine()Builds the synthesis network; appends to the global mix.
-
-
Method Details
-
setSoundOn
void setSoundOn()Enables audio and re-excites the pluck generator. -
setSoundOff
void setSoundOff()Silences audio output for this line. -
changeTable
Switches the oscillator to a different wavetable.- Parameters:
table- the new wavetable
-
setFrequency
void setFrequency(double hz)
-