[PlanetCCRMA] Supercollider emacs

Fernando Lopez-Lezcano nando at ccrma.Stanford.EDU
Sat Aug 8 19:52:53 PDT 2009


On Sun, 2009-08-09 at 01:09 +0000, James Hearon wrote:
> Hi,
> Thanks for help on sc and emacs.  Seems a swingOSC server is running
> when started alone.

Then java is working fine. 

> > What happens if you manually do, in a terminal:
> > java -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel
> -jar
> > "/usr/share/SuperCollider/SwingOSC/SwingOSC.jar" -t 57111 -L -i -h
> > 127.0.0.1:57120
> 
> [JCH at localhost ~]$ java
> -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -jar
> "/usr/share/SuperCollider/SwingOSC/SwingOSC.jar" -t 57111 -L -i -h
> -h option requires address specification! (-h <hostName:port>)
> SwingOSC v0.61. receiving TCP at address 127.0.0.1:57111
> 
> 
> ...but for getting it going with SC with emacs, I'm using a sun jdk
> with netbeans and eclipse which is in /opt/jdk1.6.0_14/bin, with links
> to jar, javac, and java in etc/alternatives, paths set in .bashrc, and
> environ vars pointing to that dir.

That should not make (I think) a difference. If java started from a
terminal is working then I think java started from within emacs should
work as well. 

What _else_ is printed when you try to start swingosc from inside emacs?

As a workaround you could try starting the java line I sent you (which
seems to work), leave that running, and then go into emacs and start
swingosc - it should recognize the java process that is already running
and be happy. 

> Sourceforge.net swingOSC instructions show adding lines to sclang.sc.
> How would I go about pointing to a different java with Planetccrma
> SC-world?  
> 
> GUI.swing;
> SwingOSC.java = "/opt/jdk1.6.0_14/bin/java";
> SwingOSC.program =
> ("/usr/share/SuperCollider/SwingOSC/SwingOSC.jar").standardizePath;
> SwingOSC.default.boot;
> ----

I don't think you need to point to anything, at least if you are using
my packages. Just use "java" (or rather, erase all the stuff you added).
If "alternatives" are correctly set the proper java will be picked up
just as when you execute it from a terminal. If not then there should be
more error messages to look at. 

> for using usb soundcard with SC and emacs
> vers. of qjackctl is:
> 
> [JCH at localhost ~]$ rpm -q qjackctl
> qjackctl-0.3.4-1.fc10.i386
> 
> trying to start qjackctl as normal user gives segfault.
> 
> [JCH at localhost ~]$ qjackctl
> Segmentation fault
> 
> I'm using ccrma rpm jack audio connection kit, but have never been
> able to get qjackctl to work since doing a clean install of f10
> recently, and loosing QT4 rpm, which comes now with it's own installer
> like netbeans, etc. 

I don't understand this at all. The default qt in fc10 is qt version
4.x, in my fc10 laptop what I have installed is:

$ rpm -q qt
qt-4.5.2-1.fc10.i386

You should not have to install any other qt stuff. Maybe the confusion
is because the package is no longer called qt4? (that happens when a
version stabilizes and becomes the default). 

> I tried compiling qjackctl against the new QT4 libs, but it still did
> not work, so I uninstalled that attempt. 

Something must have been left over from that install and it is messing
up with the existing qjackctl. You should look into /usr/local/* to see
if anything was left over there. You should also reinstall the qjackctl
package, something could have written over it. 

> The vers. above seems to be a fedora one, not the ccrma one, which I
> do not see anylonger in the rpm list.

Qjackctl has migrated over to the Fedora repositories (as many other
packages). 

> Jack starts.  Just trying to use the usb sound card from SC and emacs.

-- Fernando




More information about the PlanetCCRMA mailing list