 | OrchestraAddInstrument Method (InstrumentType, Int32) |
Constructs a new instrument and adds it to the orchestra.
Namespace: MidiGremlinAssembly: MidiGremlin (in MidiGremlin.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic Instrument AddInstrument(
InstrumentType instrumentType,
int ocatave = 0
)
Public Function AddInstrument (
instrumentType As InstrumentType,
Optional ocatave As Integer = 0
) As Instrument
public:
Instrument^ AddInstrument(
InstrumentType instrumentType,
int ocatave = 0
)
member AddInstrument :
instrumentType : InstrumentType *
?ocatave : int
(* Defaults:
let _ocatave = defaultArg ocatave 0
*)
-> Instrument
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