|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--quicktime.app.audio.NoteChannelControl
This class provides an implementation of the MusicPart interface for NoteChannel objects.
| Constructor Summary | |
NoteChannelControl(int gmNumber)
Deprecated. since QTJava 6.1 |
|
NoteChannelControl(int gmNumber,
int poly)
Deprecated. since QTJava 6.1 |
|
NoteChannelControl(NoteChannel nc)
Deprecated. since QTJava 6.1 |
|
| Method Summary | |
protected void |
finalize()
Deprecated. |
float |
getBalance()
Deprecated. since QTJava 6.1 |
java.lang.String |
getInstrumentName()
Deprecated. since QTJava 6.1 |
NoteChannel |
getNoteChannel()
Deprecated. since QTJava 6.1 |
float |
getVolume()
Deprecated. since QTJava 6.1 |
boolean |
isMuted()
Deprecated. since QTJava 6.1 |
void |
playNoteFor(float note,
int velocity,
int duration)
Deprecated. since QTJava 6.1 |
void |
selectInstrument(java.lang.String prompt)
Deprecated. since QTJava 6.1 |
void |
setBalance(float val)
Deprecated. since QTJava 6.1 |
void |
setMuted(boolean flag)
Deprecated. since QTJava 6.1 |
void |
setVolume(float volume)
Deprecated. since QTJava 6.1 |
| Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NoteChannelControl(int gmNumber)
throws QTException
gmNumber - the specified general MIDI instrument number
public NoteChannelControl(int gmNumber,
int poly)
throws QTException
gmNumber - the specified general MIDI instrument numberpoly - the maximum number of notes that are expected to be played
by the NoteChannel at the same time.
public NoteChannelControl(NoteChannel nc)
throws QTException
nc - the given NoteChannel| Method Detail |
public boolean isMuted()
isMuted in interface AudioSpec
public void setMuted(boolean flag)
throws QTException
setMuted in interface AudioSpecflag - turn muting on - true or off - false.
QTException
public void setVolume(float volume)
throws QTException
setVolume in interface AudioSpecvolume - the desired volume (range: 0.0F - 1.0F)
QTException
public float getVolume()
throws QTException
getVolume in interface AudioSpecQTException
public void setBalance(float val)
throws QTException
setBalance in interface ExtendedAudioSpecval - the desired balance (range: -1F -> 1F)
QTException
public float getBalance()
throws QTException
getBalance in interface ExtendedAudioSpecQTException
public void selectInstrument(java.lang.String prompt)
throws QTException
selectInstrument in interface MusicPartprompt - - any information that the program wants to display
to the user to aid in the selection process.
QTException
public java.lang.String getInstrumentName()
throws QTException
getInstrumentName in interface MusicPartQTExceptionpublic final NoteChannel getNoteChannel()
getNoteChannel in interface MusicPart
public void playNoteFor(float note,
int velocity,
int duration)
throws QTException
note - the note to playvelocity - the intial volume of the note - how hard it is struck.duration - the number of milliseconds the note should play for
QTException
protected final void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||