detect os and run scsynth
This commit is contained in:
parent
d5ae4a0053
commit
ef0eb19041
2 changed files with 22 additions and 4 deletions
|
@ -3,19 +3,21 @@
|
|||
|
||||
(require "instrument.rkt"
|
||||
"gui.rkt"
|
||||
"sample.rkt")
|
||||
"sample.rkt"
|
||||
"system.rkt")
|
||||
|
||||
;; setup
|
||||
(require rsc3)
|
||||
|
||||
;; TODO - run scsynth
|
||||
|
||||
(run-super-collider)
|
||||
|
||||
|
||||
;; show osc messages on server
|
||||
(send-msg (dump-osc 1))
|
||||
(with-sc3 reset)
|
||||
(reset)
|
||||
(sleep 0.1)
|
||||
|
||||
|
||||
(provide
|
||||
(all-from-out "instrument.rkt"
|
||||
"gui.rkt"
|
||||
|
|
16
oregano/system.rkt
Normal file
16
oregano/system.rkt
Normal file
|
@ -0,0 +1,16 @@
|
|||
#lang racket
|
||||
|
||||
|
||||
|
||||
(provide (all-defined-out))
|
||||
|
||||
;; run scsynth
|
||||
(define (run-super-collider)
|
||||
(match (system-type 'os)
|
||||
('unix (when (not (system "ps -e | grep scsynth > /dev/null"))
|
||||
(thread (lambda ()
|
||||
(system "./start_server_linux.sh")))))
|
||||
('macosx 1)
|
||||
('windows 1)
|
||||
(else 1)))
|
||||
|
Loading…
Reference in a new issue