Click or drag to resize
OrchestraAddInstrument Method (InstrumentType, Int32)
Constructs a new instrument and adds it to the orchestra.

Namespace: MidiGremlin
Assembly: MidiGremlin (in MidiGremlin.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public Instrument AddInstrument(
	InstrumentType instrumentType,
	int ocatave = 0
)

Parameters

instrumentType
Type: MidiGremlinInstrumentType
Enum that represents an instrument.
ocatave (Optional)
Type: SystemInt32
The instruments offset from the base octave. If this number is negative, the instrument will have a deeper sound, and if it is positive it will have a lighter sound. It can be between -5 and 5, but this is outside normal human hearing.

Return Value

Type: Instrument
Returns an instrument that plays in the chromatic scale.
See Also