Class Generate_1.Agent
java.lang.Object
eu.bandm.music.applications.feldproj.Generate_1.Agent
- Enclosing class:
- Generate_1
Contains registers dedicated to one single voice.
-
Field Summary
Modifier and TypeFieldDescription(package private) int
End time point (measured in 1/4 notes) of the currently sounding or the most recently ended event in this voice.All generated events are identified by list index.All generated events are identified by list index.All generated events are identified by list index.One interpolated values for each 1/5 time point, according to the input score.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
-
Method Summary
Modifier and TypeMethodDescription(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.
-
Field Details
-
inVoice
Vox inVoiceContains pairs of scalar values from 0.0 to 90.0 -
interpol_min
One interpolated values for each 1/5 time point, according to the input score. -
interpol_max
One interpolated values for each 1/5 time point, according to the input score. -
end
int endEnd time point (measured in 1/4 notes) of the currently sounding or the most recently ended event in this voice. -
outVoice
Vox outVoiceThe generated voice, in FeldmanProjection_n format -
event2start
All generated events are identified by list index. Here is their start point in 1/4 notes. -
event2duration
All generated events are identified by list index. Here is their duration in 1/4 notes. -
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) eithermake_U(int,int)
,make_M(int)
, ormake_O(int)
. These methods add a further event (identified by index) toevent2start
,event2duration
, andevent2wert
. From there it will be dumped to a voice in the resultingFeldmanProjection_n
bywrite_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.
-