rsc3/oregano/system.rkt
2014-05-29 10:03:53 -07:00

24 lines
No EOL
641 B
Racket

#lang racket
(provide (all-defined-out))
;; run scsynth
(define (run-super-collider)
(display "in run-super-collider\n")
(match (system-type 'os)
('unix (if (system "ps -e | grep scsynth > /dev/null")
(display "SuperCollider Running\n")
(begin
(display "Starting SuperCollider...")
(process "./start_server_linux.sh")
(sleep 0.5)
(if (system "ps -e | grep scsynth > /dev/null")
(display "OK\n")
(display "Error\n")))))
('macosx 1)
('windows 1)
(else 1)))
(run-super-collider)