[CM] CM + SC rts
daniel mayer
herbstmondwind at web.de
Sat Mar 31 10:57:11 PDT 2007
Hi,
the CM-SC bridge is very fine!
Big Thanks to Rick and Todd!
Would it be possible to combine CM control of MIDI output and SC realtime (or near realtime)?
An example with two processes independently running:
OSX, Midishare connected with Quicktime GM or whatever,
Running SuperCollider, local server booted
SC synthdefs from CM example file "sc-synths.sc" in cm/etc/examples loaded
Starting CM application 2.10.0
(in-package :cm)
(use-system :rts)
(use-system :osc)
(use-system :midishare)
(midishare-open)
(define *sc* (sc-open))
(rts *sc*)
(defobject simple (scsynth)
((freq :initform 440)
(dur :initform 1)
(amp :initform .2)
(pan :initform 0))
(:parameters freq dur amp pan time))
(define (midi-simple num dur lb-key ub-key amp)
(process repeat num
output (new midi :time (now)
:duration dur
:keynum (between lb-key ub-key)
:amplitude amp)
wait dur))
(define (sc-simple num dur lb-freq ub-freq amp)
(process repeat num
output (new simple :time (now)
:dur dur
:freq (between lb-freq ub-freq)
:amp amp
:pan (pick 0 1 -1))
wait dur))
;;; NRTS + RTS:
(progn
(events (midi-simple 80 0.2 30 50 0.5) "midi-port.ms")
(sprout (sc-simple 80 0.2 500 1500 0.1)))
To exchange information between the two actions:
Is there a possibility to define them in one process?
Is double RTS (MIDI + SC stream) possible or necessary for this?
SC in NRT mode means writing an OSC file (and then writing an audio file),
but is there a possibility of double NRTS:
streaming MIDI + OSC output with a little latency?
Would also be fine, thanks for any hint.
Best
Daniel Mayer
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1762 bytes
Desc: S/MIME Cryptographic Signature
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20070331/173c7201/attachment.p7s>
More information about the Cmdist
mailing list