<div dir="ltr">Hi Sean,<div><br></div><div>0. Yes, it looks like that should be -1 not +1.</div><div><br></div><div>1. Maybe the thought was "complex harmonics"? So, each sinusoid contributes 2 except at dc and fs/2 where it's only 1</div><div><br></div><div>- Julius</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Sep 22, 2020 at 6:07 AM Sean Luke <<a href="mailto:sean@cs.gmu.edu">sean@cs.gmu.edu</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">Hi all from Washington, DC. I am comparing the code in Blit.cpp against the original paper here:<br>
<br>
<a href="https://ccrma.stanford.edu/~stilti/papers/blit.pdf" rel="noreferrer" target="_blank">https://ccrma.stanford.edu/~stilti/papers/blit.pdf</a><br>
<br>
... and have come across two oddities.<br>
<br>
0. The paper says that M as: "M is the largest odd integer not exceeding the period P in samples", and describes M as<br>
<br>
M = 2 * Floor[P/2] + 1<br>
<br>
(and this is what Blit.cpp does) But these two things are not the same. If P is an even number, then M = P + 1. That is, it exceeds P. I think I am misunderstanding something, and was hoping you might either be able to set me straight.<br>
<br>
1. The paper describes M as "the number of harmonics" (page 5, top left paragraph). This doesn't seem to be true: if M is close to P, then it must be describing approximately *twice* the "number of harmonics" before we exceed Nyquist. Indeed Blit.cpp has a variable called maxHarmonics and M is about twice that. Wanted to make sure the paper's description is incorrect.<br>
<br>
Sean Luke<br>
<br>
<br>
<br>
_______________________________________________<br>
Stk mailing list<br>
<a href="mailto:Stk@ccrma.stanford.edu" target="_blank">Stk@ccrma.stanford.edu</a><br>
<a href="https://cm-mail.stanford.edu/mailman/listinfo/stk" rel="noreferrer" target="_blank">https://cm-mail.stanford.edu/mailman/listinfo/stk</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">"Anybody who knows all about nothing knows everything" -- Leonard Susskind</div>