 | Keystroke Constructor |
Creates a new instance of the Keystroke class.
Namespace: MidiGremlinAssembly: MidiGremlin (in MidiGremlin.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic Keystroke(
Tone tone,
double duration,
byte velocity = 64
)
Public Sub New (
tone As Tone,
duration As Double,
Optional velocity As Byte = 64
)
public:
Keystroke(
Tone tone,
double duration,
unsigned char velocity = 64
)
new :
tone : Tone *
duration : float *
?velocity : byte
(* Defaults:
let _velocity = defaultArg velocity 64
*)
-> Keystroke
Parameters
- tone
- Type: MidiGremlinTone
The tone that the keystroke represents. - duration
- Type: SystemDouble
How long the keystroke is played in beats. - velocity (Optional)
- Type: SystemByte
The severety with which the keystroke is struck.
See Also