메소드 | 설명 | |
---|---|---|
EndNote ( Primitive value ) : void |
Stop a note being played.
|
|
InstrumentName ( Primitive instrument ) : Primitive |
Get an instrument name from its number.
|
|
PlayMusic ( Primitive notes ) : void |
Plays musical notes.
|
|
PlayMusic2 ( Primitive notes, Primitive instrument, Primitive velocity, Primitive volume, Primitive pan, Primitive channel ) : void |
Plays musical notes with specified instrument and MDI channel. Also set volume, pan (balance) and velocity (key hit speed).
|
|
PlayNote ( Primitive octave, Primitive note, Primitive channel ) : Primitive |
Play an individual note (allows multi-channel instruments).
|
|
Reset ( ) : void |
Reset (stop all music on all channels).
|
메소드 | 설명 | |
---|---|---|
ChangeInstrument ( int number, int channel ) : void | ||
ChangePan ( int number, int channel ) : void | ||
ChangeVolume ( int number, int channel ) : void | ||
EnsureDeviceInit ( ) : void | ||
PlayNote ( int number, int channel ) : void | ||
PlayNote ( int octave, string note, int length, int channel ) : void | ||
PlayNotes ( string song, int channel ) : void | ||
ResetDefaults ( ) : void | ||
ResetDevice ( ) : void | ||
StopNote ( int number, int channel ) : void | ||
midiOutClose ( |
||
midiOutOpen ( |
||
midiOutReset ( |
||
midiOutSetVolume ( |
||
midiOutShortMsg ( |
public static EndNote ( Primitive value ) : void | ||
value | Primitive | The note to stop (this is the value returned by PlayNote when the note was started). |
리턴 | void |
public static InstrumentName ( Primitive instrument ) : Primitive | ||
instrument | Primitive | The instrument number. |
리턴 | Primitive |
public static PlayMusic ( Primitive notes ) : void | ||
notes | Primitive | /// A set of musical notes to play. The format is a subset of the Music Markup Language supported by QBasic. /// |
리턴 | void |
public static PlayMusic2 ( Primitive notes, Primitive instrument, Primitive velocity, Primitive volume, Primitive pan, Primitive channel ) : void | ||
notes | Primitive | /// A set of musical notes to play. The format is a subset of the Music Markup Language supported by QBasic. /// |
instrument | Primitive | The instrument number. |
velocity | Primitive | The key velocity (1 to 128, default 100). |
volume | Primitive | Volume (0 to 100, default 50). |
pan | Primitive | Pan left (-100) or right (100) (default 0). |
channel | Primitive | The MIDI channel (1 to 16). |
리턴 | void |
public static PlayNote ( Primitive octave, Primitive note, Primitive channel ) : Primitive | ||
octave | Primitive | The octave (0 to 8). |
note | Primitive | The note ("A","F#","B-" etc). |
channel | Primitive | The MIDI channel (1 to 16). |
리턴 | Primitive |