Class Generate_1.Agent

java.lang.Object
eu.bandm.music.applications.feldproj.Generate_1.Agent
Enclosing class:
Generate_1

class Generate_1.Agent extends Object
Contains registers dedicated to one single voice.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) int
    End time point (measured in 1/4 notes) of the currently sounding or the most recently ended event in this voice.
    (package private) List<Integer>
    All generated events are identified by list index.
    (package private) List<Integer>
    All generated events are identified by list index.
    (package private) List<RelWert>
    All generated events are identified by list index.
    (package private) Map<Integer,Integer>
    One interpolated values for each 1/5 time point, according to the input score.
    (package private) Map<Integer,Integer>
    One interpolated values for each 1/5 time point, according to the input score.
    (package private) Vox
    Contains pairs of scalar values from 0.0 to 90.0
    (package private) Vox
    The generated voice, in FeldmanProjection_n format
  • Constructor Summary

    Constructors
    Constructor
    Description
    Agent(Vox inVoice)
    Only constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    (package private) void
    generate(int pos)
    Generate (possibly) an event at the time point "pos".
    (package private) final void
    make_M(int dura)
    Prepare an event in the middle register, which starts immediately after the latest ending event in this voice group.
    (package private) final void
    make_O(int gap)
    Prepare an event in the high register, which starts the given gap after after the latest ending event in this voice group.
    (package private) final void
    make_U(int dura, int gap)
    Prepare an event in the low register, which starts as early as possible (after a gap after the last event in the same voice), but not simultaneously with another voice.
    (package private) void
    Generate a new Voice object in the tscore part of the output score.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • inVoice

      Vox inVoice
      Contains pairs of scalar values from 0.0 to 90.0
    • interpol_min

      Map<Integer,Integer> interpol_min
      One interpolated values for each 1/5 time point, according to the input score.
    • interpol_max

      Map<Integer,Integer> interpol_max
      One interpolated values for each 1/5 time point, according to the input score.
    • end

      int end
      End time point (measured in 1/4 notes) of the currently sounding or the most recently ended event in this voice.
    • outVoice

      Vox outVoice
      The generated voice, in FeldmanProjection_n format
    • event2start

      List<Integer> event2start
      All generated events are identified by list index. Here is their start point in 1/4 notes.
    • event2duration

      List<Integer> event2duration
      All generated events are identified by list index. Here is their duration in 1/4 notes.
    • event2wert

      List<RelWert> event2wert
      All generated events are identified by list index. Here is their register.
  • Constructor Details

    • Agent

      Agent(Vox inVoice)
      Only constructor.
  • Method Details

    • make_U

      final void make_U(int dura, int gap)
      Prepare an event in the low register, which starts as early as possible (after a gap after the last event in the same voice), but not simultaneously with another voice.
      Parameters:
      gap - minimal distance in 1/4 notes from the end of the last event in this voice.
    • make_M

      final void make_M(int dura)
      Prepare an event in the middle register, which starts immediately after the latest ending event in this voice group. (This leads to a "legato" over the whole voice group.)
    • make_O

      final void make_O(int gap)
      Prepare an event in the high register, which starts the given gap after after the latest ending event in this voice group.
    • generate

      void generate(int pos)
      Generate (possibly) an event at the time point "pos". When an event is still sounding, do nothing. Otherwise select a random value between the limits valid at "pos", and invoke (guided by this value) either make_U(int,int), make_M(int), or make_O(int). These methods add a further event (identified by index) to event2start, event2duration, and event2wert. From there it will be dumped to a voice in the resulting FeldmanProjection_n by write_to_score()
    • write_to_score

      void write_to_score()
      Generate a new Voice object in the tscore part of the output score. Step through the list of prepared event parameters and add the events. Create new Sub-tps if necessary.