[CM] CM + SC rts

daniel mayer herbstmondwind@web.de
Sat, 31 Mar 2007 19:57:11 +0200


------=_Part_40837_4943767.1175363833102
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 7bit

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


------=_Part_40837_4943767.1175363833102
Content-Type: application/pkcs7-signature; name=smime.p7s; smime-type=signed-data
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/M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