What is Pure Java JSyn?
The original JSyn used a native 'C' code plugin for synthesis and audio I/O. This was necessary back in 1997 when JSyn began. Unfortunately, the native code plugin required a painful installation step when used in a browser. The native plugin is also difficult to maintain and has trouble running on Snow Leopard and Linux.
So we decided to replace the native code plugin with a pure Java synthesis engine. The Audio I/O is now done using JavaSound.
The disadvantages are that the synthesis runs slightly slower in Java than in native 'C' code. Also JavaSound has higher latency than the native code based on PortAudio. The advantages are that JSyn can now run on every platform that supports Java and JavaSound. It will also be much easier to add cool new features. And users do not have to install a plugin anymore.
Note: to hear the Pure Java JSyn you may need to uninstall your old native JSyn plugin. If you had installed it then you can uninstall it using the tool on this page.
To check whether you are running the new version, look in the Java Console when you run the Applet. You should see "Pure Java JSyn".
Download Pure Java JSyn
We recommend using the Pure Java JSyn over the old native JSyn:
Previous Releases for comparison only.:
- BETA release JAR V16.4.3 file released June 19, 2011
- BETA release JAR V16.4.2 file released May 3, 2011
- BETA release JAR V16.3 file released October 19, 2010
- BETA release JAR V16.1 file released June 23, 2010
Release notes here.
Description of proposed new JSyn API and How To Migrate is here.
Please notify me immediately if you notice any difference between the old native and new pure Java JSyn. They should work the same.
This JSyn JAR is covered by the same license as the Pure Java JSyn SDK.
Using Pure Java JSyn
Use the JAR file that you just downloaded in place of the old "jsyn.jar" from the SDK.
When the Pure Java JSyn is being used, you should see something like this in the Java Console. The version and date will change.
---- Pure Java JSyn www.softsynth.com - rate = 44100, RT, V16.4 (build 423, 2011-05-01)
Note: If you have the JSyn plugin installed then you will need to uninstall it using the tool on this page. Otherwise the JVM will use the plugin before using the new JAR file.
Modifying <APPLET> Tags to Use Pure Java JSyn
You do not have to modify your JSyn Applet. You do not even have to recompile. You just modify your <APPLET> tag so that it will use the new Pure Java JSyn. Then your Applet will work for users that do not have the JSyn plugin. If a user has the old plugin then it will still work and will use the plugin.
- Place the new JSyn JAR file in your CODEBASE folder along with your APPLET classes. You can rename it to something like "jsyn_pure.jar".
- Add the name of the JAR file to the ARCHIVE attribute.
name="TJ_Wind" WIDTH="491" HEIGHT="415"></APPLET>
You can listen to some Applets that use the new JSyn here.
Testing Other Applets
Advanced Technique: If you install the Pure JSyn jar file in place of the old jsyn.jar then you can run any JSyn Applet on the web using the Pure Java JAR file. I do not recommend this for general use. But it is handy when testing lots of Applets.
Big thanks to Lisa Tolentino for converting many unit generators from 'C' to Java. Also thanks to Douglas Repetto, Nick Didkovsky, David Birchfield and John Clavin for testing.