I see a problem in your previous Faust example: you use SR for the
maximum delay, but it should be a power of 2:
delay(n,d,x) = x@(int(d)&(n-1));
Try 2048 or something and tell me how that sounds.
Note to Yann: Maybe delay should be protected, e.g., borrowing some
matlab syntax,
delay(n,d,x) = x@(int(d)&(2^nextpow2(n)-1));
nextpow2(x) = ceil(log2(x));
- Julius
At 03:21 PM 4/21/2014, Oli Larkin wrote:
fdelay3 is similarly stepped, and doesn't have the doppler shift either
here is an audio example of max tapin/out (4point interpolation if i
remember correctly) vs fdelay3
<https://dl.dropboxusercontent.com/u/33721778/Rec-14.04.21-23h11m34s_01.mp3>https://dl.dropboxusercontent.com/u/33721778/Rec-14.04.21-23h11m34s_01.mp3
On 21 Apr 2014, at 23:00, Julius Smith wrote:
I see that vd~ claims in its help to be a four-point
interpolator. I would try fdelay3 in Faust (four-point Lagrange)
to see how that compares, as fdelay1 uses two points and should not
sound the same. From the source for vd~ we can see if it uses
Lagrange coefficients or something else. - Julius
At 02:45 PM 4/21/2014, Oli Larkin wrote:
vd~ in pd gives me the same results as tapin~ tapout~ in max fed
from the smoothed square wave. i.e. a clean sounding doppler
shift. fdelay1 and siblings have some audible stepping.
i've made some example patches for pd (and for faustgen~ in max).
pd binaries for osx. you can use faust2pd to make them if they don't work
<https://dl.dropboxusercontent.com/u/33721778/faustdelaylinemod_test.zip>https://dl.dropboxusercontent.com/u/33721778/faustdelaylinemod_test.zip
oli
On 21 Apr 2014, at 22:01, Julius Smith wrote:
Hi Oli,
Since fdelay1 is simple linear interpolation, I don't see how it
could get into any trouble:
fdelay1(n,d,x) = delay(n,id,x)*(1 - fd) + delay(n,id+1,x)*fd
with {
id = int(d);
fd = frac(d);
};
As far as I can see, you will get linear interpolation of
adjacent samples no matter where you land in the delay
line. Maybe we need to learn what tapin~ and tapout~ really
do? Could they have some built-in location-smoothing we don't know about?
- Julius
At 09:17 AM 4/21/2014, Oli Larkin wrote:
Is there a way to achieve smoothly modulated delays in faust
when the modulation is causing indexing of non-consecutive samples?
with the following example, the same smoothed square wave
modulation causes a clean doppler shift when used with the max
msp tapin~ and tapout~ object, but has artifacts when used with fdelay
if i modulate a delay with sine, triangle etc in flangers and
choruses i haven't noticed issues
import("oscillator.lib");
import("effect.lib");
dtmod = lf_squarewavepos(1.) : smooth(0.9999) * 1000.;
process(x) = fdelay1(SR, 100. + dtmod,x);
thanks
oli
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Faudiostream-users mailing list
<mailto:[email protected]>[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users
Julius O. Smith III
<<mailto:[email protected]>[email protected] >
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Faudiostream-users mailing list
<mailto:[email protected]>[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users
Julius O. Smith III <<mailto:[email protected]>[email protected]>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users
Julius O. Smith III <[email protected]>
Professor of Music and, by courtesy, Electrical Engineering
CCRMA, Stanford University
http://ccrma.stanford.edu/~jos/
------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users