All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

@ResourceDependency({"data-dir/cp01.cwn","data-dir/cp02.cwn","data-dir/cp03.cwn","data-dir/cp04.cwn","data-dir/cp05.cwn","data-dir/cp06.cwn","data-dir/cp07.cwn","data-dir/cp08.cwn","data-dir/cp09.cwn","data-dir/cp10.cwn","data-dir/cp11.cwn","data-dir/cp12.cwn","data-dir/cp13.cwn","data-dir/cp14.cwn","data-dir/cp15.cwn","data-dir/cp16.cwn","data-dir/cp17.cwn","data-dir/cp18.cwn"}) public class Kdf extends JFrame
Main class which loads the voice data and calls the constructors of network, control, and GUI.
See Also:
  • Field Details

    • PARTNAME_PLAN

      static final String PARTNAME_PLAN
      The formplan in the tscore source files must be encoded by a tscore part with this name.
      See Also:
    • VOICENAME_TONART

      static final String VOICENAME_TONART
      The tonal-key track in the formplan tscore must have this name.
      See Also:
    • mcounter

      MessageCounter mcounter
      Counter of error messages, needed to stop execution when score parsing fails.
    • msg

      Receiver for all messages, including parsing errors.
    • MODIFIERS_PLAN

      static final Modifiers MODIFIERS_PLAN
      The tscore parsing modifiers to parse the formplan data.
    • SAMPLING_RATE

      static final double SAMPLING_RATE
      Global fixed sampling rate for all sound processing in the whole application.
      See Also:
    • pieceName

      String pieceName
      Name of the currently selected movement. Is changed directly by a GUI widget.
    • formplan

      Formplan_fuge formplan
      The currently parsed formplan data.
    • voiceData

      @Opt final @Opt Kdf.VoiceData[] voiceData
      Data of all voices, extracted from the currently selected movement.
    • initialTempo

      Tempo initialTempo
      The value delivered from all voices. Voices are realized as CwnToDoubleSig_withComment. The values are either explicit in the original timescape or default by the conversion code.
    • PREFERRED_WIDTH

      public static final int PREFERRED_WIDTH
      For the top-level GUI Swing container.
      See Also:
    • PREFERRED_HEIGHT

      public static final int PREFERRED_HEIGHT
      For the top-level GUI Swing container.
      See Also:
    • MIN_WIDTH

      public static final int MIN_WIDTH
      For the top-level GUI Swing container.
      See Also:
    • MIN_HEIGHT

      public static final int MIN_HEIGHT
      For the top-level GUI Swing container.
      See Also:
  • Constructor Details

    • Kdf

      Kdf()
      Main constructor. Builds GUI, signal provessing network, and all behavioral wiring.
  • Method Details

    • extractVoice

      @Opt @Opt Kdf.VoiceData extractVoice(Score_cwn score, String voiceName)
      Convert the voice with the given name from the given score to sequencer data immediately playable by the sig network.
    • forVoices

      static void forVoices(IntConsumer c)
      Apply the code given as parameter to the numeric indices of all voices of the currently selected (and loaded) movement.
    • forMaterials

      static void forMaterials(IntConsumer c)
      Apply the code given as parameter to the numeric indices of all material layers, which uniformely present in all voices of the currently selected (and loaded) movement.
    • selectPiece

      void selectPiece(String pieceName, Network network, View view, Control control)
      Central Service Point: prepare the whole application to play the movement with the given name. Is called directly from a widget in the GUI and does nothing if the newly selected name is the currently selected name.
      Parameters:
      pieceName - the name of the movement, in the human-readable form from the JComboBox.
    • changePiece

      void changePiece(String pieceName, Network network, View view, Control control)
      Central Service Point: prepare the whole application to play the movement with the given name. Re-organize and re-init both network and visuals for a newly selected movement.
      Parameters:
      pieceName - the name of the movement, in the human-readable form from the JComboBox.
    • updateAudioRepresentation

      void updateAudioRepresentation(Network network, View view, Control control)
      Applies the changes to all visual and audible objects which are necessary whenever the selected movement and/or the selected audio-theme representation mode changes.
    • main

      public static void main(String[] args)
      Application entry point. Calls constructor, which does all initialization and start of all operation.