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
FieldsModifier 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 intPause 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 intPosition 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 intThe list of dodecaphonic modes (taken fromGenerate_3.reihenfor the pitch parameter.(package private) final HakenVery first haken form.(package private) final HakenVery first haken form.(package private) intGlobal counter for generating the pre-Feldman event data inevent2start,event2duration, andevent2wert.(package private) VoxThe resulting voice, contained in the resultingGenerate_3.score. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidStep through the seres of haken inhakenFolge_dtandhakenFolge_thand 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) voidgenerate_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) voidgenerate_haken(int count) Fill the sequences of hakenshakenFolge_thandhakenFolge_dtstarting with the start haken instartHaken_thandstartHaken_dt.(package private) voidGenerate a new score and transform the pre-Feldman data fromevent2start,event2duration, andevent2wertto 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.reihenfor 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_thandhakenFolge_dtstarting with the start haken instartHaken_thandstartHaken_dt. For the former the own dodecaphonic series (="Reihe") as given byreihe_this 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_dtandhakenFolge_thand 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_additionalPauseis 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, andevent2wertto tscore events. Therefore Tps must be synthesized whenever necessary.
-