<div dir="ltr">Hi Andy, well I've ordered your book to learn PD, so I'm at least that committed! :-)  My overarching goal is to make tools for composing, improvising, and sequencing, so at this point, I'm punting on signals. First I want to support everything in Rick Taubes's Notes From the Metalevel book, along with a bunch of my own ideas, for algorithmic and computer assisted composition/improvisation. But I am hoping to get signals into play eventually. Which makes this a good time for a question... <div><br></div><div>In Max, my understanding is that if Overdrive is on and Scheduler in Interrupt is selected,  we actually get only two threads: low priority thread running who knows when, and high priority thread alternating between a pass of eating up the scheduler queue (up to the limit) and then a pass of the audio vector render. So given that I'm forcing all messages to run in the high priority thread (unless the user asks for danger-mode Any), I *think* I should have no problem calling into S7 and sharing data from both dsp perform routines and regular event scheduled messages. I have not, however, actually done this yet. Can anyone tell me what the situation in PD is there? Or point me at good docs/resources on how the threading and scheduling works in PD?</div><div><br></div><div>Thanks</div><div>iain<br><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 23, 2020 at 12:23 PM Andy Farnell <<a href="mailto:padawan12@obiwannabe.co.uk">padawan12@obiwannabe.co.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">My last love affair with parentheses was in Racket.<br>
Although my only ever somewhat successful musical adventures<br>
in this style were with Roger Dannenberg's CLM/Nyquist<br>
<br>
Lets see what happens if Iain brings S7 over.<br>
<br>
Iain, how are you thinking of handling signals<br>
 (or not)?<br>
<br>
andy<br>
<br>
On Fri, Oct 23, 2020 at 11:31:48AM +0200, Kjetil Matheussen wrote:<br>
> On Thu, Oct 22, 2020 at 10:26 AM Andy Farnell<br>
> <<a href="mailto:padawan12@obiwannabe.co.uk" target="_blank">padawan12@obiwannabe.co.uk</a>> wrote:<br>
> ><br>
> > Would love to see Scheme come to Pd.<br>
> ><br>
> There's also k_guile from 2004, that still compiles:<br>
> <a href="https://github.com/kmatheussen/k_guile" rel="noreferrer" target="_blank">https://github.com/kmatheussen/k_guile</a><br>
> Don't know if it still works though.<br>
> <br>
> Guess there are other alternatives as well, but they all probably<br>
> suffer a bit from gc non-rt performance. To fix this I later extended<br>
> the code from k_guile to run in a separate thread to avoid cpu spikes,<br>
> but this code was only added to the snd sound editor (when snd was<br>
> compiled as a pd external), and that code was probably removed from<br>
> snd when switching from guile to s7.<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>