Re: proxyspace // using Pbindef property

[email protected]
Newsgroups gmane.comp.audio.supercollider.user
Message-ID <CAFniQ7VnzJF7L8NP8SVeuG6GNCHZNcXDfafSnW_qTHtjCPY_eA@mail.gmail.com>
On Sun, Mar 21, 2021 at 10:04 PM <[email protected]> wrote:
> And I have some modulation that I mapped to \rate
>
> ~mousey = {MouseY.kr(0.1,3,lag:0.1)}
> ~track1.map(\rate, ~mousey )
>
> I am modulating \rate with another proxy and it works fine by overriding the pattern thats allready there,  I want to be able to use the pattern too
>
> something like this,
>
> ~track1.map(\rate, \rate.value * ~mousey )
>
> is there any way to this kind of operation?

Not directly, no. The pattern can either calculate values, or map to a
control bus, but not both.

One key point is that the values for ~mousey exists only in the
server, but the pattern evaluates in the language.

Because the modulator signal is only in the server, then you would
need to do the multiplication in the server (in a synth).

There is one other option, but it doesn't mean exactly the same thing
-- you would have to decide if it's acceptable. You could get the
~mousey bus value into the language, and then calculate in the
pattern:

\rate, Pseq([ /* your data */], inf) * Pfunc { ~mousey.bus.getSynchronous }

Something like that.

*But* the modulator will be polled only at the moment of generating an
event. Any mouse movements in the middle of an event would be ignored
-- sample-and-hold. If you're OK with a S&H effect, then this is an
easy way. If you need continuous modulation, then the calculation has
to be moved into the server.

hjh

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.birmingham.ac.uk/facilities/ea-studios/research/supercollider/mailinglist.aspx
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.