[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Pbind: doing something after the event



Miguel, in that case, if you send immediately the data, why keep the scheduling stuff? You can skip it, don't you?

Pfunc({ |ev| doMystuff(ev[\freq]) })


Best

-a-


On 2 Mar 2009, at 20:29, Miguel Negrao wrote:

Andrea Valle escreveu:
Hi

I have a similar problem. I want to send an osc message when a event in Pbind starts, but I also want to have access to the parameters of that event so I can send some of them in the osc message to another computer.  As an example lest say I want to send the frequency of the event that just started in an osc message. how would I do that ?
I think you can go with the solution I posted. A Pfunc schedules an action, and the action retrieves the \freq and send it via OSC.
Best
-a-
Ok, that worked I just changed from ev[\dur]*0.25 to 0.
thanks

Miguel


thanks

-- 
Miguel Negrão // ZLB

_______________________________________________
sc-users mailing list

--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------
    "The objectives of SuperCollider have been taken a stage further with the development of SAOL, the fruits of a research project based at MIT, launched in 1998"
(P. Manning, Electronic and Computer Music, revised and expanded edition, 2004)


_______________________________________________
sc-users mailing list


--------------------------------------------------
Andrea Valle
--------------------------------------------------
CIRMA - DAMS
Università degli Studi di Torino
--------------------------------------------------

"The objectives of SuperCollider have been taken a stage further with the development of SAOL, the fruits of a research project based at MIT, launched in 1998" 
(P. Manning, Electronic and Computer Music, revised and expanded edition, 2004)