|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softsynth.jmsl.JMSL
public final class JMSL
Control JMSL global environment.
Field Summary | |
---|---|
static MusicClock |
clock
|
static STDOutFunction |
err
|
static int |
JMSL_BUILD
|
static java.lang.String |
JMSL_PUBLIC_KEY
|
static double |
JMSL_VERSION
|
static boolean |
LICENSED
|
static MidiIO |
midi
|
static STDOutFunction |
out
|
static boolean |
PRERELEASE
|
static EventScheduler |
scheduler
|
static int |
SILENT
|
static int |
TERSE
|
static int |
VERBOSE
|
static int |
verbosity
|
static java.lang.String |
version
|
Constructor Summary | |
---|---|
JMSL()
|
Method Summary | |
---|---|
static void |
addFileLoaderListener(FileLoaderListener listener)
|
static void |
addMusicDevice(MusicDevice dev)
|
static void |
closeMusicDevices()
When a MusicDevice.open() is called, it should JMSL.addMusicDevice(itself) Then when programs terminate, one call to JMSL.closeMusicDevices() will close() it and all other MusicDevices that added themselves. |
static java.lang.String |
doubleToString(double fval,
int numAfter)
|
static java.net.URL |
getCodeBase()
|
static java.util.Enumeration |
getFileLoaderListeners()
|
static boolean |
getIsApplet()
|
static java.util.Properties |
getLicenseProperties()
|
static ViewFactory |
getViewFactory()
ViewFactory can be used to build GUIs with components that can switch between AWT and Swing . |
static double |
now()
|
static void |
openInstrumentMusicDevice(java.awt.Frame f,
Instrument ins)
Get the MusicDevice for an Instrument. |
static void |
printDoubleArray(double[] dar)
|
static double |
realTime()
|
static void |
removeFileLoaderListener(FileLoaderListener listener)
|
static void |
removeMusicDevice(MusicDevice dev)
|
static void |
requestVersion(int requestedVersion)
If the existing version is earlier than the requested version, then the user will be instructed to upgrade to the latest version of JMSL |
static void |
setCodeBase(java.net.URL codeBase)
Set this in your applet's init() method if you want to make the applet's codebase available to misc support classes. |
static void |
setERROut(STDOutFunction fn)
vector JMSL.err printing to a custom function |
static void |
setIsApplet(boolean flag)
Flag whether or not Score is operating in an applet or application. |
static void |
setSTDOut(STDOutFunction fn)
vector JMSL.out printing to a custom function |
static void |
setViewFactory(ViewFactory viewFactory)
Alias for PortView.setViewFactory(viewFactory); |
static void |
sleepUntil(double time)
|
static void |
useSystemOut()
send JMSL.out and JMSL.err to System.out |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double JMSL_VERSION
public static final int JMSL_BUILD
public static final boolean LICENSED
public static final boolean PRERELEASE
public static MusicClock clock
public static STDOutFunction out
public static STDOutFunction err
public static MidiIO midi
public static EventScheduler scheduler
public static int verbosity
public static final int SILENT
public static final int TERSE
public static final int VERBOSE
public static final java.lang.String version
public static final java.lang.String JMSL_PUBLIC_KEY
Constructor Detail |
---|
public JMSL()
Method Detail |
---|
public static final java.util.Properties getLicenseProperties() throws java.io.IOException
java.io.IOException
public static void addMusicDevice(MusicDevice dev)
public static void removeMusicDevice(MusicDevice dev)
public static void addFileLoaderListener(FileLoaderListener listener)
public static void removeFileLoaderListener(FileLoaderListener listener)
public static java.util.Enumeration getFileLoaderListeners()
public static void closeMusicDevices()
public static void openInstrumentMusicDevice(java.awt.Frame f, Instrument ins)
public static void setCodeBase(java.net.URL codeBase)
public static java.net.URL getCodeBase()
public static void requestVersion(int requestedVersion)
public static void setSTDOut(STDOutFunction fn)
public static void setERROut(STDOutFunction fn)
public static void useSystemOut()
public static void sleepUntil(double time) throws java.lang.InterruptedException
java.lang.InterruptedException
public static double now()
public static double realTime()
public static java.lang.String doubleToString(double fval, int numAfter)
public static void printDoubleArray(double[] dar)
public static final void setIsApplet(boolean flag)
public static final boolean getIsApplet()
public static ViewFactory getViewFactory()
public static void setViewFactory(ViewFactory viewFactory)
viewFactory
- The viewFactory to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |