Class Generate_3.Agent
java.lang.Object
eu.bandm.music.applications.feldproj.Generate_3.Agent
- Enclosing class:
- Generate_3
Generator for one voice.
-
Field Summary
Modifier and TypeFieldDescriptionPre-Feldman event data: duration measured in 1/4.Keeps track which event in the generated output realizes the start of which haken (relative to the haken list of the same voice)Pre-Feldman event data: start point measured in 1/4.Pre-Feldman event data: register as a RelWert O/M/U.static final int
Pause between two haken realizations.Keeps track which haken (identified by its index in the hakenfolge) starts at which time position (in 1/4 notes).List of all hakens for this voice, filled bygenerate_haken(int)
.List of all hakens for this voice, filled bygenerate_haken(int)
.(package private) final int
Position in the sequence of canonically starting voices.Number of haken modulo 4 the start of which may be subject to an overlap.(package private) final int
The list of dodecaphonic modes (taken fromGenerate_3.reihen
for the pitch parameter.(package private) final Haken
Very first haken form.(package private) final Haken
Very first haken form.(package private) int
Global counter for generating the pre-Feldman event data inevent2start
,event2duration
, andevent2wert
.(package private) Vox
The resulting voice, contained in the resultingGenerate_3.score
. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
Step through the seres of haken inhakenFolge_dt
andhakenFolge_th
and translate each haken into three pre-Feldman events inevent2start
,event2duration
, andevent2wert
- Two adjacent hakens may share the middle event, if it has the same parameters.(package private) void
generate_eventData
(RelWert th, RelWert dt) Translate twp relative values O/M/U for duration and pitch into pre-Feldman events inevent2start
,event2duration
, andevent2wert
.(package private) void
generate_haken
(int count) Fill the sequences of hakenshakenFolge_th
andhakenFolge_dt
starting with the start haken instartHaken_th
andstartHaken_dt
.(package private) void
Generate a new score and transform the pre-Feldman data fromevent2start
,event2duration
, andevent2wert
to tscore events.
-
Field Details
-
number
final int numberPosition in the sequence of canonically starting voices. -
reihe_th
final int reihe_thThe list of dodecaphonic modes (taken fromGenerate_3.reihen
for the pitch parameter. -
startHaken_th
Very first haken form. -
startHaken_dt
Very first haken form. -
hakenFolge_dt
List of all hakens for this voice, filled bygenerate_haken(int)
. -
hakenFolge_th
List of all hakens for this voice, filled bygenerate_haken(int)
. -
voice
Vox voiceThe resulting voice, contained in the resultingGenerate_3.score
. -
haken2start
Keeps track which haken (identified by its index in the hakenfolge) starts at which time position (in 1/4 notes). Needed only to realize the canonical start of the voices. -
event2haken
Keeps track which event in the generated output realizes the start of which haken (relative to the haken list of the same voice) -
event2start
Pre-Feldman event data: start point measured in 1/4. -
event2duration
Pre-Feldman event data: duration measured in 1/4. -
event2wert
Pre-Feldman event data: register as a RelWert O/M/U. -
haken_additionalPause
public static final int haken_additionalPausePause between two haken realizations.- See Also:
-
overlap_positions
Number of haken modulo 4 the start of which may be subject to an overlap. -
viertel
int viertelGlobal counter for generating the pre-Feldman event data inevent2start
,event2duration
, andevent2wert
. Must be global because updated by both,generate_eventData()
andgenerate_eventData(eu.bandm.music.haken.RelWert,eu.bandm.music.haken.RelWert)
.
-
-
Constructor Details
-
Agent
Constructor with explicit haken forms. Called from outside only for the very first agent. -
Agent
Agent()Constructor called from outside for all agents except the first. Every voice (except the first) starts in unison with its predecessor w r t the haken-form for parameters "th" and "dt". The second voice has one predecessor and follows 5 hakens later, the third voice has two predecessors and follows 4 hakens later, etc.
-
-
Method Details
-
generate_haken
void generate_haken(int count) Fill the sequences of hakenshakenFolge_th
andhakenFolge_dt
starting with the start haken instartHaken_th
andstartHaken_dt
. For the former the own dodecaphonic series (="Reihe") as given byreihe_th
is used, multiplied by the 0th reihe. For dt, the haken form changes only every second haken and always reihe #3 is used. -
generate_eventData
void generate_eventData()Step through the seres of haken inhakenFolge_dt
andhakenFolge_th
and translate each haken into three pre-Feldman events inevent2start
,event2duration
, andevent2wert
- Two adjacent hakens may share the middle event, if it has the same parameters. Otherwise the additional pausehaken_additionalPause
is inserted. -
generate_eventData
Translate twp relative values O/M/U for duration and pitch into pre-Feldman events inevent2start
,event2duration
, andevent2wert
. Start point is atviertel
, which is advanced according to duration and gap, which both depend on the duration haken. -
write_to_score
void write_to_score()Generate a new score and transform the pre-Feldman data fromevent2start
,event2duration
, andevent2wert
to tscore events. Therefore Tps must be synthesized whenever necessary.
-