rsc3/oregano/system.rkt

23 lines
579 B
Racket
Raw Normal View History

2014-05-27 23:39:51 +00:00
#lang racket
(provide (all-defined-out))
;; run scsynth
(define (run-super-collider)
(match (system-type 'os)
2014-05-28 01:01:07 +00:00
('unix (if (system "ps -e | grep scsynth > /dev/null")
(display "SuperCollider Running\n")
(begin
(display "Starting SuperCollider...")
(process "./start_server_linux.sh")
(sleep 0.3)
(if (system "ps -e | grep scsynth > /dev/null")
(display "OK")
(display "Error")))))
2014-05-27 23:39:51 +00:00
('macosx 1)
('windows 1)
(else 1)))