Package uk.ac.qmul.eecs.depic.patterns
Interface SequenceMapping
-
- All Known Implementing Classes:
- BeadsAutomationMapping, BeadsPeakLevelMapping, BeadsSequenceMapping, HapticTrigger
public interface SequenceMapping
A mapping of a sequence into some form of representation, e.g. visual, audio, audio-visual etc. The methods of this interface represent different ways a sequence can be rendered and need not be all implemented in classes implementing this interface.
-
-
Field Summary
Fields Modifier and Type Field and Description static float
DURATION_INF
static float
DURATION_STOP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
renderCurve(Sequence m, float startTime)
Renders the whole curve, from start to endvoid
renderCurveAt(Sequence sequence, float time, float duration)
Render a curve at precise time If sound is used for rendering, the sound lastsduration
milliseconds and then fades out.void
renderValue(Sequence.Value val)
renders a single value of the sequence
-
-
-
Field Detail
-
DURATION_INF
static final float DURATION_INF
- See Also:
- Constant Field Values
-
DURATION_STOP
static final float DURATION_STOP
- See Also:
- Constant Field Values
-
-
Method Detail
-
renderValue
void renderValue(Sequence.Value val)
renders a single value of the sequence- Parameters:
val
-
-
renderCurve
void renderCurve(Sequence m, float startTime)
Renders the whole curve, from start to end- Parameters:
m
-startTime
- the time in millisecond the curve rendering has to start from, if -1 will immediately stop the rendering.
-
renderCurveAt
void renderCurveAt(Sequence sequence, float time, float duration)
Render a curve at precise time If sound is used for rendering, the sound lastsduration
milliseconds and then fades out. IfINF
is passed as duration the sound will go on forever. Successive calls withINF
as duration will have the effect of changing the sound in order to represent the curve at the newtime
passed as argument. Successive calls withduration
different fromDURATION_INF
will carry on the sound forduration
millisecond (and therefore settingduration
to 0 will stop the sound).- Parameters:
sequence
- the sequence to rendertime
- the time at which the sequence has to be renderedduration
- the duration of sound in millisecond. If (@code DURATION_INF) is used the sound will go on forever until it's stopped. To stop the sound useduration = -1
;
-
-