Click or drag to resize
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: MidiGremlin
Assembly: MidiGremlin (in MidiGremlin.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public void Play(
	double startTime,
	Tone tone,
	double duration,
	byte velocity = 64
)

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