Class Network

java.lang.Object
eu.bandm.music.applications.myKdF.Network

public class Network extends Object
Signal processing network. Only one instance per running application. For a survey on the complete audio-rate processing network see that schematic drawing.
  • Field Details

    • control

      final Control control
      Reference to the collection of control Posts. These are read as (control rate) inputs by some network operators.
    • realtimeContext

      final ConstantRealtimeContext realtimeContext
      The global and common real-time context with highest rate = audio rate.
    • materialSequencer

      final DoubleSequencer materialSequencer
      The sequences which switches between the material lanes per voice.
    • voicelines

      Network.Voiceline[] voicelines
      Reference to the sub-networks which realize one voice each. Needed globally for setSequencerData() when switching the movement.
    • TABLE_SIZE

      static final int TABLE_SIZE
      Length of all wave tables use for sound synthesis.
      See Also:
    • FIFTHS_TO_FREQUENCY

      static final double FIFTHS_TO_FREQUENCY
      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
      See Also:
    • tuning_pyth

      final DoubleOneDimTuning tuning_pyth
      Tuning table indexed by fifths.
    • tuning_equally

      final DoubleOneDimTuning tuning_equally
      Tuning table indexed by fifths.
    • tuning_viertelKomma

      final DoubleOneDimTuning tuning_viertelKomma
      Tuning table indexed by fifths.
    • tuning_viertelKomma_kbd

      final DoubleOneDimTuning tuning_viertelKomma_kbd
      Meantone tuning restricted to a keyboard from e-flat to g-sharp.
    • tuning_drittelKomma

      final DoubleOneDimTuning tuning_drittelKomma
      Tuning table indexed by fifths.
    • waves

      Auxiliary class mapping the wave select values to the realizing wave tables, for sound synthesis.
    • duration

      final EnvelopeModifier.DInput duration
      An envelope-adapter input port.
    • adapter

      final EnvelopeModifier.Adapter 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

      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

      final DoubleClockedSignalSource synthiFrequency(IntSignalSource pitchClass, IntSignalSource octave)
      Calculate the frequency for the next evetn. Global input is control.tuningTypeSelection.
    • setSequencerData

      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. 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.