 | InstrumentPlay Method (Double, Tone, Double, Byte) |
Plays a tone with duration, velocity and start-time specified.
Time is measured in beats from the start of the music. Get the curent time by calling CurrentTime from the orchestra.
Namespace: MidiGremlinAssembly: MidiGremlin (in MidiGremlin.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic void Play(
double startTime,
Tone tone,
double duration,
byte velocity = 64
)
Public Sub Play (
startTime As Double,
tone As Tone,
duration As Double,
Optional velocity As Byte = 64
)
public:
void Play(
double startTime,
Tone tone,
double duration,
unsigned char velocity = 64
)
member Play :
startTime : float *
tone : Tone *
duration : float *
?velocity : byte
(* Defaults:
let _velocity = defaultArg velocity 64
*)
-> unit
Parameters
- startTime
- Type: SystemDouble
When the music should play. - tone
- Type: MidiGremlinTone
The tone to play. - duration
- Type: SystemDouble
How long the tone should las in beats - velocity (Optional)
- Type: SystemByte
Goes from 0 to 127. Default is 64.
See Also