Click or drag to resize
Keystroke Class
The Keystroke class consists of a tone and its duration. Note that two keystrokes are played with the same start-time unless a pause is added between them.
Inheritance Hierarchy

Namespace: MidiGremlin
Assembly: MidiGremlin (in MidiGremlin.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class Keystroke : MusicObject

The Keystroke type exposes the following members.

Constructors
  NameDescription
Public methodKeystroke
Creates a new instance of the Keystroke class.
Top
Properties
  NameDescription
Public propertyDuration
The duration of the keystroke.
Public propertyOctaveOffset
The keystroke's offset from the middle octave.
Public propertyTone
The tone that the keystroke represents.
Public propertyVelocity
The severety with which the keystroke is struck.
Top
Methods
  NameDescription
Public methodOffsetBy(Int32)
Offsets the keystroke by an interval.
Public methodOffsetBy(Int32, Int32)
Offsets the keystroke by both an interval and an octave.
Public methodOffsetBy(Scale, Int32)
Offsets the keystroke in a specified scale.
Public methodOffsetBy(Scale, Int32, Int32)
Offsets the keystroke by both an interval and an octave.
Public methodSelectT(FuncT, Int32, MusicObject)
Projects all music objects of specified type into a MusicObject of the same structure.
(Inherited from MusicObject.)
Public methodSelectT(FuncT, MusicObject)
Projects all music objects of specified type into a MusicObject of the same structure.
(Overrides MusicObjectSelectT(FuncT, MusicObject).)
Public methodSelectT(FuncT, MusicObject)
Projects all music objects of specified type into a MusicObject of the same structure.
(Inherited from MusicObject.)
Top
See Also