Hi,<br><br>You can&#39;t chuck audio signals into parameters like that.&nbsp; What you must do is something like<br><br>SinOsc osc =&gt; Pan2 pan =&gt; dac;<br>SinOsc panMod =&gt; blackhole;<br>while (true)<br>{<br>&nbsp;&nbsp;&nbsp; panMod.last

() =&gt; pan.pan;<br>&nbsp;&nbsp;&nbsp; 1::samp =&gt; now;<br>}<br><br>Of
course, you may then run your loop less frequently than every 1::samp,
which is probably advisable in many circumstances to save CPU.&nbsp; It
seems to me that it would be nice to be able to chuck audio signals
about more arbitrarily.&nbsp; I don&#39;t know if they&#39;ve implemented it this
way simply because if they made it too easy people (especially
beginners) would end up overdoing it (particularly with things like
filter cutoff which I understand would trigger lots of extra
computation) without thinking about it.&nbsp; Maybe it would make sense to
have an operator like ~=&gt;, for example, which would do the above
automatically but still force the user to be aware that they were doing
something potentially expensive etc.&nbsp; Perhaps there could even be a way
of adjusting the property of such a link that governed how often the
value was updated.
<br><br>On a somewhat related note, I don&#39;t know what the most elegant
way of making it happen would be, but it seems like it could be nice to
have the ability to run some UGens in a programme at different sample
rates.&nbsp; In pd, there is [switch~] which can cause subpatches and their
children to change block size (not relevant in chuck I understand) and
up / down sample audio signals (perhaps difficult to apply to chuck).&nbsp;
This can save quite a bit of cpu for LFOs etc, but I guess it may not
be trivial to do something very similar in chuck.&nbsp; Perhaps if rather
than just having blackhole, there was something like a Blackhole object
with a sample rate parameter... again, there may be no neat way of
implementing such a thing, though.<br><br>Any more insights into this most welcome,<br><font color="#888888">Peter</font><br><br><div class="gmail_quote">On Nov 10, 2007 2:58 AM, Michael Heuer &lt;<a href="mailto:heuermh@gmail.com">
heuermh@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br><br>I would like to chuck the output of a SinOsc into the pan parameter of
<br>a Pan2 ugen.<br><br>Seems like that should be possible but I haven&#39;t figured out how to do it yet.<br><br>Thanks,<br><br> &nbsp; michael<br>_______________________________________________<br>chuck-users mailing list<br>
<a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a><br><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users" target="_blank">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
</a><br></blockquote></div><br>