thomas

> the only thing I'm missing here is how to send a
> message to the synth in order to change the freq
> parameter.

see below, ie. use n_set at either a node or a group.
there are help files for the various server commands,
C-cC-h from hsc3 emacs mode, but no examples as yet.
for basic design issues the sc3 scsynth documentation
is a good starting place.

bests
rohan

==

import Sound.SC3

withSC3 (\fd -> send fd (g_new [(1, AddToTail, 0)]))

let sin_s = let f = Control KR "freq" 440
            in (out 0 (sinOsc AR f 0 * 0.25))

withSC3 (\fd -> send fd (d_recv (synthdef "sin" sin_s)))

-- node with id 100
withSC3 (\fd -> send fd (s_new "sin" 100 AddToTail 1 [("freq",1000)]))

-- n_set at node 100
withSC3 (\fd -> send fd (n_set 100 [("freq",800)]))

-- n_set at group 1
withSC3 (\fd -> send fd (n_set 1 [("freq",600)]))
_______________________________________________
haskell-art mailing list
[email protected]
http://lists.lurk.org/mailman/listinfo/haskell-art

Reply via email to