<div dir="ltr">Hi Peter, I tried my best to do a faithful implementation of the Karplus Strong algorithm (with the probability function and all) as described in that paper. I have it in my didactic material that I use to teach my students - one thing though, I'm from Brazil and the thing is being developed in portuguese. You find the latest version in here: <a href="https://sites.google.com/site/porres/pd">https://sites.google.com/site/porres/pd</a><div><br></div><div>more specifically </div><div><a href="https://sites.google.com/site/porres/Live%20Electronics%20%28EL%20Locus%20Solus%29%20-%20Porres.zip?attredirects=0&d=1" style="font-family:"Lucida Grande","Lucida Sans Unicode",sans-serif;line-height:16.6667px;text-align:center;background-color:transparent"><font color="#0000ff" size="1">Material de apoio do curso de Live Electronics da "EL Locus Solus"</font></a><br></div><div><br class="">Even more specifically, the karplus strong is the last folder, in "Parte 6 - Filtros e Reverb", there you finder folder "<i>32.Karplus-Strong</i>". Even even more specifically, the algorithm is <i>2.Algoritmo.Karplus-Strong.pd</i></div><div><i><br></i></div><div>This is an ever ongoing project of mine that I doubt I'll ever finish btw, and I keep rewriting it. Karplus Strong was one of the latest additions, and I'm sure I'll rewrite it. I'm actually sending another patch attached, as I think the way the output is connected now makes more sense, what do you think?</div><div><br></div><div><div>I think that using vline~ is more accurate and elegant than [del] as in kriedler's implementation. I also didn't like the way there was a delay/latency of one period because the envelope goes first to the delay line before going to the output. So I had done it differently in the current version in my didactic work, but I'm now considering this new idea.</div></div><div><br></div><div>I use fexpr~ for the mean filter, but I had also used sometimes biquad~ in the same way as you suggested. I think biquad~ should work with a block of 1, if not it is buggy! You can easily test it though.</div><div><br></div><div>Note you can use other filters instead of the mean average filter. That was chosen back in the day for convenience, we have more options now, lop~ would be a nice one by the way.</div><div><br></div><div>cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-06-14 12:35 GMT-03:00 Jesse Mejia <span dir="ltr"><<a href="mailto:jmejia@anestheticaudio.com" target="_blank">jmejia@anestheticaudio.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I haven't heard of decay stretching in KS - I'm interested in this - where is info on that?<br>
<div class="HOEnZb"><div class="h5"><br>
> On Jun 14, 2016, at 6:38 AM, Orm Finnendahl <<a href="mailto:orm.finnendahl@selma.hfmdk-frankfurt.de">orm.finnendahl@selma.hfmdk-frankfurt.de</a>> wrote:<br>
><br>
> Hi Peter,<br>
><br>
>> Am Dienstag, den 14. Juni 2016 um 15:05:57 Uhr (+0200) schrieb Peter P.:<br>
>> Thank you! This is quite elegant, vanilla Pd and works with a blocksize<br>
>> of 1 as well! Did you come up with this or is there another source which<br>
>> can be credited?<br>
><br>
> The polarity was done from scratch today. The Karplus Strong patch was<br>
> done by Johannes Kreidler with my help when he was studying with me.<br>
><br>
>><br>
>> I am wondering if someone implemented the Karplus' and Strong's 'decay<br>
>> stretching' in Pd as well.<br>
><br>
> Don't know what that is.<br>
><br>
> --<br>
> Orm<br>
><br>
> _______________________________________________<br>
> <a href="mailto:Pd-list@lists.iem.at">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>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at">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>
</div></div></blockquote></div><br></div>