[PlanetCCRMA] SuperCollider - automatically booting server
Donald Steven
t6sn7gt at aim.com
Tue Jun 7 09:29:13 PDT 2011
My installation of SuperCollider in Fedora 14 is up and running, as is
SwingOSC. Good sound. SwingOSC comes up automatically by .sclang.sc
(see below). How can I get the server to boot automatically? Right
now, I have to boot it using s.boot;. When I start emacs with $emacs
-sclang, I get this message:
Welcome to SuperCollider, type ctrl-c ctrl-h for help
SwingOSC : server connected.
Emacs: Built symbol table in 0.146 seconds
SwingOSC server already running
booting 57110
localhost
Cannot connect to server socket err = No such file or directory
Cannot connect to server
================
My .emacs file is:
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(initial-buffer-choice "t")
'(scroll-bar-mode (quote right)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(fringe ((((class color) (background dark)) (:background "blue"))))
'(linum ((t (:inherit (shadow default) :foreground "white"))))
'(next-error ((t (:inherit region :background "white" :foreground
"blue" :weight bold))))
'(region ((((class color) (min-colors 88) (background dark))
(:background "white" :foreground "blue")))))
(set-background-color "blue")
(set-foreground-color "white")
(display-time)
(defun toggle-fullscreen ()
(interactive)
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_MAXIMIZED_VERT" 0))
(x-send-client-message nil 0 nil "_NET_WM_STATE" 32
'(2 "_NET_WM_STATE_MAXIMIZED_HORZ" 0))
)
(toggle-fullscreen)
(autoload 'linum-mode "linum" "toggle line numbers on/off" t)
(global-set-key (kbd "C-<f5>") 'linum-mode)
(setq linum-format "%3d ")
(global-linum-mode 1)
(global-font-lock-mode 0)
(require 'sclang)
================
My .sclang.sc file is:
GUI.swing;
SwingOSC.java = "/usr/lib/jvm/jre/bin/java";
SwingOSC.program = ("/usr/share/SuperCollider/SwingOSC/SwingOSC.jar");
SwingOSC.default.boot;
================
Thanks.
Don
More information about the PlanetCCRMA
mailing list