That sounds like a sensible reason why a karplus-strong resonator could not alias. That&#39;s good news, although i suppose it isn&#39;t new at all to most people on the list...<br>By the way i had read the FLOSS pages before...<br>
Thanks Derek!<br><br>Pierre<br><br><div class="gmail_quote">2010/3/31 Derek Holzer <span dir="ltr">&lt;<a href="mailto:derek@umatic.nl">derek@umatic.nl</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Correct, nothing played back at original sampling rate will alias. If you speed that sample up, then some of the recorded harmonics will go over the Nyquist number and alias.<br>
<br>
Please read the page I sent you on aliasing:<div class="im"><br>
<br>
<a href="http://en.flossmanuals.net/PureData/Antialiasing" target="_blank">http://en.flossmanuals.net/PureData/Antialiasing</a><br>
<br></div>
and also<br>
<br>
<a href="http://en.flossmanuals.net/PureData/WhatIsDigitalAudio" target="_blank">http://en.flossmanuals.net/PureData/WhatIsDigitalAudio</a><br>
<br>
Aliasing happens when you try to synthesize or play back a frequency higher than 1/2 the sampling rate (this is called the Nyquist number). In non-sine wave oscillators, it often comes from the highest harmonics. In samples, it comes from playing them back faster than the original sampling rate. It happens at the moment those frequencies are synthesized, and cannot be removed later. Thus the oversampling approach documented in the FLOSS Manual (and taken directly from Miller&#39;s Pd manual patches).<br>

<br>
A Karplus-Strong resonator is a delay line and as I understand it, so long as no pitch shifting is going on then it can&#39;t alias. You would not be able to create a Karplus-Strong resonator at 30KHz unless you have a sampling rate of 60KHz, because the shortest delay time you can get is still one sample (1/44100 of one second at normal sampling rate). Again, math gurus are welcome to correct my calculations.<br>

<br>
D.<div class="im"><br>
<br>
<br>
On 3/31/10 6:39 PM, Pierre Massat wrote:<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
I m not sure i understand aliasing well... So anything that&#39;s sampled<br>
and played back without altering the pitch would not suffer from<br>
aliasing? When exactly does aliasing occur? during the DAC conversion,<br>
or before that? Let&#39;s say i set a karplus-strong resonator to a<br>
frequency of 30 KHz (assuming i&#39;m a dog and i can hear a pitch that<br>
high), at a 44.1 KHz sampling rate, than what happens? No aliasing at all?<br>
<br>
<br>
<br></div>
2010/3/31 Derek Holzer &lt;<a href="mailto:derek@umatic.nl" target="_blank">derek@umatic.nl</a> &lt;mailto:<a href="mailto:derek@umatic.nl" target="_blank">derek@umatic.nl</a>&gt;&gt;<div><div></div><div class="h5"><br>
<br>
    I was thinking about this the other day.... is it possible to have<br>
    aliasing with Karplus-Strong? Because it&#39;s a delay line, nothing is<br>
    being played back at any higher rate than it was sampled at, so no<br>
    aliasing should be possible. Right? Math-gurus correct me if I&#39;m wrong.<br>
<br>
    Otherwise, any signal generator needs to be bandlimited or oversampled:<br>
<br>
    <a href="http://en.flossmanuals.net/PureData/Antialiasing" target="_blank">http://en.flossmanuals.net/PureData/Antialiasing</a><br>
    <a href="http://en.flossmanuals.net/PureData/GeneratingWaveforms" target="_blank">http://en.flossmanuals.net/PureData/GeneratingWaveforms</a><br>
<br>
    Frank Barknecht has some spliced-transition trick he uses as well,<br>
    I&#39;m sure it will come up in a reply or two on this thread as well...<br>
<br>
    D.<br>
<br>
<br>
    On 3/31/10 6:27 PM, Pierre Massat wrote:<br>
<br>
        Hi!<br>
<br>
        I ve been reading the on-going debate about interpolation for a few<br>
        days, and it just occured to me that i don&#39;t how go about avoiding<br>
        aliasing more generally than with band-limited wavetables. If i<br>
        wanted<br>
        to play a sample at a pitch higher than the original, or if i<br>
        wanted to<br>
        use a karplus-strong resonator to generate notes, what would be the<br>
        proper way of ensuring that no aliasing occurs? Do people<br>
        generally use<br>
        low-pass filters with a cut-off somewhere below the Nyquist<br>
        frequency?<br>
        Or is there a trick that one can use earlier on in the signal<br>
        path of a<br>
        patch?<br>
<br>
<br>
    --<br>
    ::: derek holzer ::: <a href="http://macumbista.net" target="_blank">http://macumbista.net</a> :::<br>
    ---Oblique Strategy # 139:<br>
    &quot;Revaluation (a warm feeling)&quot;<br>
<br>
<br>
</div></div></blockquote><div><div></div><div class="h5">
<br>
-- <br>
::: derek holzer ::: <a href="http://macumbista.net" target="_blank">http://macumbista.net</a> :::<br></div></div>
---Oblique Strategy # 151:<br>
&quot;Take away the important parts&quot;<br>
</blockquote></div><br>