<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr" id="yui_3_16_0_1_1421083158807_5971">Also, in Pd-l2ork:</div><div dir="ltr" id="yui_3_16_0_1_1421083158807_5967"><br></div><div dir="ltr" id="yui_3_16_0_1_1421083158807_5966">[dsp(</div><div dir="ltr" id="yui_3_16_0_1_1421083158807_5966">|</div><div dir="ltr" id="yui_3_16_0_1_1421083158807_5966">[canvasinfo]</div><div dir="ltr" id="yui_3_16_0_1_1421083158807_5966">|</div><div dir="ltr" id="yui_3_16_0_1_1421083158807_5966">[print]</div><div dir="ltr" id="yui_3_16_0_1_1421083158807_5966"><br></div><div dir="ltr" id="yui_3_16_0_1_1421083158807_5966">There is probably also an external somewhere in Pd-extended that does the same thing.</div><div dir="ltr" id="yui_3_16_0_1_1421083158807_5966"><br></div><div dir="ltr" id="yui_3_16_0_1_1421083158807_5966">-Jonathan</div> <div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Monday, January 12, 2015 10:48 AM, Roman Haefeli <reduzent@gmail.com> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container">On Mon, 2015-01-12 at 17:28 +0200, Alexandros Drymonitis wrote:<br><br><br>> On Mon, Jan 12, 2015 at 5:11 PM, IOhannes m zmölnig <<a ymailto="mailto:zmoelnig@iem.at" class="removed-link" href="">zmoelnig@iem.at</a>><br>> wrote:<br>>         On 01/12/2015 09:49 AM, Alexandros Drymonitis wrote:<br>>         > Why not store what [r pd] -> [route dsp] outputs to [f ]'s<br>>         right inlet, and<br>>         > bang the left inlet whenever you want to know the dsp state?<br>>         <br>>         maybe because it reports the wrong value if you:<br>>         - start Pd<br>>         - turn DSP on<br>>         - query your [dspstate] abstraction (that implements your<br>>         suggestion)<br>> I don't understand how this will report a wrong value. If you start Pd<br>> and turn the DSP on, then [f ] will hold 1, right? If you bang it, it<br>> will output 1, which is the DSP state. And if you turn the DSP off, it<br>> will hold 0. How is that wrong? <br><br>I am not entirely clear about what IOhannes meant exactly.  But assume<br>you set the DSP to on and only then you load the patch containing your<br>[dspstate] abstraction, the query will return a wrong result. Also it is<br>not always feasible to guarantee a certain patch (the one holding<br>[dspstate]) is loaded during the whole Pd session. The problem remains<br>that your [dspstate] abstraction depends on the user once turning DSP on<br>or off in order to reliably know the DSP state. <br><br>Claude already mentioned some workarounds to query the current state<br>without knowing it beforehand.<br><br>Roman<br> <br><br><br>_______________________________________________<br><a ymailto="mailto:Pd-list@lists.iem.at" class="removed-link" href="">Pd-list@lists.iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -> <a target="_blank" class="removed-link" href="">http://lists.puredata.info/listinfo/pd-list</a><br><br><br></div>  </div> </div>  </div> </div></body></html>