Listens to elements of the DAW and sends commands to the haptic device in order to
render such elements in haptics. It implements all the listeners interfaces because it reacts
to changes and mirrors them in haptics.
It is used to render sound waves and automations (sequences) in haptics
Render a curve at precise time
If sound is used for rendering, the sound lasts duration milliseconds and then fades out.
If INF is passed as duration the sound will go on forever. Successive calls with INF as duration
will have the effect of changing the sound in order to represent the curve at the new time passed as argument.
Successive calls with duration different from DURATION_INF will carry on the sound for duration
millisecond (and therefore setting duration to 0 will stop the sound).
time - the time at which the sequence has to be rendered
duration - 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 use duration = -1;
sequenceUpdated
public <T extends SequenceEvent> void sequenceUpdated(T t)
This method has to be implemented by classes that provide a continuous
representation of the sequence.
The method a callback that is called as soon as one of the values of the the
sequence is added, deleted or modified. Implementors can thus promptly update their representation
to reflect the changes in the sequence.