|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Synthesizer
A synthesizer used by JSyn to generate audio. The synthesizer executes a network of unit generators to create an audio signal.
Field Summary | |
---|---|
static int |
FRAMES_PER_BLOCK
|
Method Summary | |
---|---|
void |
add(UnitGenerator ugen)
Add a unit generator to the synthesizer so it can be played. |
TimeStamp |
createTimeStamp()
Create a TimeStamp using the current audio time. |
AudioDeviceManager |
getAudioDeviceManager()
An AudioDeviceManager is an interface to audio hardware. |
double |
getCurrentTime()
|
double |
getFramePeriod()
|
int |
getFrameRate()
|
double |
getUsage()
|
java.lang.String |
getVersion()
|
int |
getVersionCode()
|
boolean |
isRealTime()
Is JSyn running in real-time mode? |
void |
queueCommand(ScheduledCommand command)
|
void |
remove(UnitGenerator ugen)
|
void |
scheduleCommand(double time,
ScheduledCommand command)
|
void |
scheduleCommand(TimeStamp timeStamp,
ScheduledCommand command)
Send a command to be processed in the background audio thread. |
void |
setRealTime(boolean realTime)
If set true then the synthesizer will generate audio in real-time. |
void |
sleepFor(double duration)
Sleep for the specified audio time duration. |
void |
sleepUntil(double time)
Sleep until the specified audio time is reached. |
void |
start()
Begin generating audio using default frame rate of 44100 and two stereo output channels. |
void |
start(int frameRate,
int inputDeviceID,
int numInputChannels,
int ouputDeviceID,
int numOutputChannels)
|
void |
startUnit(UnitGenerator unit)
Start a unit generator now. |
void |
startUnit(UnitGenerator unit,
double time)
Start a unit generator at the specified time. |
void |
startUnit(UnitGenerator unit,
TimeStamp timeStamp)
|
void |
stop()
Stop generating audio. |
void |
stopUnit(UnitGenerator unit)
|
void |
stopUnit(UnitGenerator unit,
double time)
|
void |
stopUnit(UnitGenerator unit,
TimeStamp timeStamp)
|
Field Detail |
---|
static final int FRAMES_PER_BLOCK
Method Detail |
---|
void start()
void start(int frameRate, int inputDeviceID, int numInputChannels, int ouputDeviceID, int numOutputChannels)
java.lang.String getVersion()
int getVersionCode()
void stop()
AudioDeviceManager getAudioDeviceManager()
int getFrameRate()
void add(UnitGenerator ugen)
void remove(UnitGenerator ugen)
double getCurrentTime()
void startUnit(UnitGenerator unit, double time)
void startUnit(UnitGenerator unit, TimeStamp timeStamp)
void startUnit(UnitGenerator unit)
void stopUnit(UnitGenerator unit, double time)
void stopUnit(UnitGenerator unit, TimeStamp timeStamp)
void stopUnit(UnitGenerator unit)
void sleepUntil(double time) throws java.lang.InterruptedException
java.lang.InterruptedException
void sleepFor(double duration) throws java.lang.InterruptedException
java.lang.InterruptedException
void setRealTime(boolean realTime)
realTime
- boolean isRealTime()
TimeStamp createTimeStamp()
double getUsage()
double getFramePeriod()
void scheduleCommand(TimeStamp timeStamp, ScheduledCommand command)
void scheduleCommand(double time, ScheduledCommand command)
void queueCommand(ScheduledCommand command)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |