inheritance tree
Score.temporalElement
|
|
|
UniformMeasures
class definition
UniformMeasures is a silent timed element representing a constant meter of a score for the duration of the UniformMeasures. The parameter 'n' represents the number of measures. The parameter 'beatNumber' and 'beatDuration' represent the meter as in Measure. The further measure parameters and features (e.g. 'beats' and 'accents') are accessible by the same methods as in Measure. However, there is a difference between getDuration and getMeasureDuration: the first returns the duration of the whole UniformMeasures while the second the duration of a single measure.
The similar class MeasureSeq allows to represent a sequence of measures which differ in beatNumber or beatDuration. However, this makes the constraints for MeasureSeq less efficient then the constraints for UniformMeasures.
NB: The constraints defined for UniformMeasures required both BeatNr and BeatDuration to be determined.
See the Measures doc for more info.
class UniformMeasures (Inheritance-free)
feat !UniformMeasuresType label
attr beatDuration beatNumber measure n
- getAccents(X)
- getAccentsFS(X)
- getBeatDuration(X)
- getBeatDurationParameter(X)
- getBeatNumber(X)
- getBeatNumberParameter(X)
- getBeats(X)
- getBeatsFS(X)
- getInitInfo($ ...)
- getMeasureAt(I Time)
I is the index of the measure at Time. A measure starts at its start time and ends before its end time. For instance, the index for the first measure is 1, starting at Time 0. Measure 2 starts at MeasureDuration. I and Time are FD integers.
- getMeasureDuration(X)
Returns the duration of a single measure. The duration of the whole UniformMeasures is returned by getDuration.
- getN(X)
- getNParameter(X)
- init(beatDuration:BeatDuration beatNumber:BeatNr n:N ...)
... Further init arguments: accentIdxDB (see Measure) ...
If the args n, beatNumber, or beatDuration are left unset, you must set them later with their respective accessor methods.
- onAccentDR(B Time)
Variant of onAccentR which does domain propagation (which can be very expensive). However, propagation of Time does only happen after B got determined.
!!?? constraint suspends and performs OK if it first calls {Browse Time}?
- onAccentR(B Time)
B=1 <-> Time equals some strong beat in of some measure in UniformMeasures. Time is FD int, B is implicitly constrained to 0/1-int.
NB: Constraint blocks until BeatNr is determined.
NB: method does not take n into account -- to limit truth value B to the actual time span within start and end time of UniformMeasures add necessary constraints outside of this method.
- onBeatDR(B Time)
Variant of onBeatR which does domain propagation (which can be very expensive). However, propagation of Time does only happen after B got determined.
!!?? constraint suspends and performs OK if it first calls {Browse Time}?
- onBeatR(B Time)
B=1 <-> Time equals some beat of some measure in UniformMeasures. For instance, in case beat note value is halve note, that B=1 means that Time is on a halve-note onset or on a strong quarter-note onset.
Time is FD int, B is implicitly constrained to 0/1-int.
NB: method does not take n into account -- to limit truth value B to the actual time span within start and end time of UniformMeasures add necessary constraints outside of this method.
- onMeasureStartDR(B Time)
Variant of onAccentR which does domain propagation (which can be very expensive). However, propagation of Time does only happen after B got determined.
!!?? constraint suspends and performs OK if it first calls {Browse Time}?
- onMeasureStartR(B Time)
B=1 <-> Time equals the start time of some measure in UniformMeasures. Time is FD int, B is implicitly constrained to 0/1-int.
NB: method does not take n into account -- to limit truth value B to the actual time span within start and end time of UniformMeasures add necessary constraints outside of this method.
- overlapsBarlineR(B Start End)
B=1 <-> Start and End fall in different measures.
end