Click or drag to resize
Instrument Class
The Instrument class implements the method Play which plays the saved music from the class MusicObject.
Inheritance Hierarchy
SystemObject
  MidiGremlinInstrument

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

The Instrument type exposes the following members.

Properties
  NameDescription
Public propertyInstrumentType
The instrument sound that will be used when playing MusicObjects from this instance.
Public propertyOctave
The octave(from the middle octave) that the instrument plays in.
Public propertyScale
The scale that the instrument plays in. This is only used by MIDI Gremlin when playing chords.
Top
Methods
  NameDescription
Public methodPlay(MusicObject)
Plays the MusicObject using this instrument.
Public methodPlay(Double, MusicObject)
Plays the MusicObject at the given start time, using this instrument. Start time is measured in beats from the start of the music. Get the curent time by calling CurrentTime from the orchestra.
Public methodPlay(Tone, Double, Byte)
Plays a tone with duration and velocity specified.
Public methodPlay(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.
Top
See Also