<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Tue, 12 Jun 2018 at 16:00, <<a href="mailto:rsdio@audiobanshee.com" target="_blank">rsdio@audiobanshee.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br><br>
Meanwhile, the help I was looking for was commentary on whether a 3-capacitor op-amp circuit would actually be straightforward to simulate / emulate in software. One of these days I’m going to have to learn how to use the Z-transform to convert a circuit diagram into lines of code. Seems like it should require only three words of state memory and a few cycles of math.<br>
<br>
Brian<br><br></blockquote><div><br></div><div>That would be my cue :)</div><div><br></div><div>Yes, very easy to model in the linear case, but you will most likely be better off just using a linear SVF if you want a whole bunch of them as it will be way more efficient. The point of the design I think is you could use a single op-amp per resonator, an SVF uses 3, but in digital it's cheaper to just use an SVF since perfect opamps are free. The only point I can see in preserving the structure of the filter in the paper would be if you used Boyle macro model for the op-amp so you would get some non-linear saturation effects in the implementation, but then things get quite a bit more complicated.</div><div><br></div><div>If anyone is interested in the linear case then here are the equations to solve the circuit:</div><a href="https://cytomic.com/files/dsp/comb-filter-resonator-equations.pdf">https://cytomic.com/files/dsp/comb-filter-resonator-equations.pdf</a><br><br>and here is an implementation in python generator by my circuit solver:<br><a href="https://cytomic.com/files/dsp/comb-filter-resonator.py">https://cytomic.com/files/dsp/comb-filter-resonator.py</a><div><span style="color:rgb(0,0,0);font-family:Menlo;font-size:11px"><br></span></div><div>and a plot of the filtering of a sawtooth given one set of component values:</div><a href="https://cytomic.com/files/dsp/comb-filter-resonator.png">https://cytomic.com/files/dsp/comb-filter-resonator.png</a></div><div class="gmail_quote"><br></div><div class="gmail_quote"><div>Cheers,</div><div><br></div><div>Andy</div></div></div>