QSoundSynthPerformancepublic class QSoundSynthPerformance extends Object
Fields Summary |
---|
private int | qsmPeer | private int | spPeer | private int | gmPeer | private int | tchnl |
Constructors Summary |
---|
QSoundSynthPerformance()
gmPeer = QSoundHiddenManager.getMIDIGlobalPeer();
qsmPeer = nInitSynth(gmPeer);
spPeer = nInitSynthPerformance(qsmPeer);
tchnl = 0;
|
Methods Summary |
---|
void | enableChannel(int channel, boolean enabled)
nEnableChannel(spPeer, channel, enabled);
| private native void | nEnableChannel(int peer, int channel, boolean enabled)
| private native int | nInitSynth(int gmPeer)
| private native int | nInitSynthPerformance(int qsmPeer)
| private native void | nPlayTone(int peer, int note, int dur, int vol, int channel)
| private native void | nWriteEventInt(int peer, int data, int tenthsMs)
| void | playTone(int note, int duration, int volume)
// Implementation Note: Need to play on a channel that is not being used or reserve a channel for instant playtones.
nPlayTone(spPeer, note, duration, volume, tchnl);
| void | setChannel(int channel)
tchnl = channel;
| void | writeEvent(int data, int tenthsMS)
nWriteEventInt(spPeer, data, tenthsMS);
|
|