As I understand and as Matt already wrote, you wanted a transposition of the phasor~'s frequency (which would change the frequency of the loop but not the sample content), but instead you did the classic up/downsampling-of-the-soundsample transposition.<br>
(The "distortion" you get is due to the difference in spectral content, which should be richer as you transpose upwards since you read a longer portion of the sample.<br>Also, the end of the loop changes which could mean a harder discontinuity.)<br>
<br>I tried to fix the transposition and I also added an offset in the audio path before tabread4~ that corresponds to the beginning of the loop.<br><br>And I'm sure you've already figured everything out, long before you got our emails.<br>
<br><br>alabala<br><br><div class="gmail_quote">On 23 April 2010 20:27, Frank Barknecht <span dir="ltr"><<a href="mailto:fbar@footils.org">fbar@footils.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
not related to the thread on smoother audio in Pd, I am struggling with doing a smooth<br>
loop player for data stored in tables.<br>
<br>
One building block for this is attached: It is a simple tabread4~ lookup that<br>
should loop over a configurable section of a table and play it back with various frequencies.<br>
As you'll easily see, I use a<br>
<br>
[phasor~]<br>
|<br>
[*~ loopsize]<br>
|<br>
[+~ loopstart]<br>
|<br>
[tabread4~ table]<br>
<br>
idiom here. Now I would like to avoid enveloping the rewind sections, so I<br>
built an elaborate mechanism to set the loop points as good as possible by<br>
hand. Test sections let you load a sample or try to find the smooth loop points<br>
inside of a sine-wave table graphically.<br>
<br>
Now my problem is, that even when I have found a nice and smooth sounding loop<br>
section, as soon as I start to change the frequency played (with the "pd<br>
transpose" things), the sound gets very distorted.<br>
<br>
I'm puzzled: Shouldn't the tabread4~ interpolate correctly in this case? Any<br>
help or explanation is appreciated. (Except anything involving crossfades: I<br>
know I could do that and I guess I also know how.)<br>
<br>
Ciao<br>
<font color="#888888">--<br>
Frank Barknecht Do You RjDj.me? _ ______footils.org__<br>
</font><br>_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>ypatios<br>