Class Network
java.lang.Object
eu.bandm.music.applications.myKdF.Network
Signal processing network.
Only one instance per running application.
For a survey on the complete audio-rate processing network
see that schematic drawing.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class
Contains all signal generating units for one of the voices. -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final EnvelopeModifier.Adapter
The envelope adapter which changes some segments of the volumen envelope according to score parameters.(package private) final Control
Reference to the collection of control Posts.(package private) final EnvelopeModifier.DInput
An envelope-adapter input port.(package private) static final double
Factor to convert the factors in the fifths-indexed tuning tables to a given pitch, here: assume "1.0" in the table <-> c'(C4) <-> 261,6 Hz(package private) final DoubleSequencer
The sequences which switches between the material lanes per voice.(package private) final ConstantRealtimeContext
The global and common real-time context with highest rate = audio rate.(package private) static final int
Length of all wave tables use for sound synthesis.(package private) final DoubleOneDimTuning
Tuning table indexed by fifths.(package private) final DoubleOneDimTuning
Tuning table indexed by fifths.(package private) final DoubleOneDimTuning
Tuning table indexed by fifths.(package private) final DoubleOneDimTuning
Tuning table indexed by fifths.(package private) final DoubleOneDimTuning
Meantone tuning restricted to a keyboard from e-flat to g-sharp.(package private) Network.Voiceline[]
Reference to the sub-networks which realize one voice each.(package private) final EnumMap
<Control.waveForm, DoubleHarmonicSpectrum.DiffTable> Auxiliary class mapping the wave select values to the realizing wave tables, for sound synthesis. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) DoubleBufferedProducer
install()
Main point of service: create the complete synthesis network.(package private) DoubleClockedSignalSource
makeSynthiline
(DoubleSequencer sequencer, DoubleSignalSource frequency, int voicenum, int matnum) Create one synthesizing line for one material layer of one particular voice.(package private) void
setSequencerData
(Kdf.VoiceData[] voiceData, Formplan_fuge.SigRoutingPlan plandata) Set the data for all voice event sequencers and for the one and common formplan sequencer.(package private) final DoubleClockedSignalSource
synthiFrequency
(IntSignalSource pitchClass, IntSignalSource octave) Calculate the frequency for the next evetn.
-
Field Details
-
control
Reference to the collection of control Posts. These are read as (control rate) inputs by some network operators. -
realtimeContext
The global and common real-time context with highest rate = audio rate. -
materialSequencer
The sequences which switches between the material lanes per voice. -
voicelines
Network.Voiceline[] voicelinesReference to the sub-networks which realize one voice each. Needed globally for setSequencerData() when switching the movement. -
TABLE_SIZE
static final int TABLE_SIZELength of all wave tables use for sound synthesis.- See Also:
-
FIFTHS_TO_FREQUENCY
static final double FIFTHS_TO_FREQUENCYFactor to convert the factors in the fifths-indexed tuning tables to a given pitch, here: assume "1.0" in the table <-> c'(C4) <-> 261,6 Hz- See Also:
-
tuning_pyth
Tuning table indexed by fifths. -
tuning_equally
Tuning table indexed by fifths. -
tuning_viertelKomma
Tuning table indexed by fifths. -
tuning_viertelKomma_kbd
Meantone tuning restricted to a keyboard from e-flat to g-sharp. -
tuning_drittelKomma
Tuning table indexed by fifths. -
waves
Auxiliary class mapping the wave select values to the realizing wave tables, for sound synthesis. -
duration
An envelope-adapter input port. -
adapter
The envelope adapter which changes some segments of the volumen envelope according to score parameters. Currently only the duration of the socre events flows into the envelope shape. ATTENTION score data column "when" and "duration" are currently in msec, Envelope times in sec.
-
-
Constructor Details
-
Network
Network(Control control, double samplingRate) Only constructor.- Parameters:
control
- container for all interactive (low frequency) signal sources.samplingRate
- evident.
-
-
Method Details
-
install
DoubleBufferedProducer install()Main point of service: create the complete synthesis network.- Returns:
- the sound producing network which will be connected to the (push-mode) JRE interface to the local computer's sound system.
-
synthiFrequency
Calculate the frequency for the next evetn. Global input is control.tuningTypeSelection. -
setSequencerData
Set the data for all voice event sequencers and for the one and common formplan sequencer. Re-link all sequencers to their data and set them to their starting point. -
makeSynthiline
DoubleClockedSignalSource makeSynthiline(DoubleSequencer sequencer, DoubleSignalSource frequency, int voicenum, int matnum) Create one synthesizing line for one material layer of one particular voice. Some components (most remarkably the event data sequencer) are present only once per voice and shared between the synthi lines.
-