Hi Scott,
The erratic behavior is created by the signal int(d)&(n-1) used as delay value. &(n-1) is
typically used, when n is a power of 2, as a mask, but here SR was passed. What was your
intention ?
Here is my suggestion :
import ("math.lib");
declare name "invecho"; // the name the DAW will see
// GUI sliders
duration = hslider("milliseconds",0,0,50,0.1)*(SR/1000.0) : int; // 0 to 50ms,
inc. of 0.1ms
feedback = hslider("feedback",-1.0,-1.0,1.0,0.01); // negative values invert
invecho = +~(@(duration) : *(feedback)); // +~ adds feedback
process = vgroup("invstereoecho",invecho,invecho); // putting it twice
makes it stereo
Cheers
Yann
Le 18/02/2014 22:16, Scott Hawley a écrit :
Hi. All I did was modify the stereo echo example a little bit, so that the feedback can
also invert. My code is at the bottom of this post.
Using the online compiler at the Faust webpage, I made a VST plugin for use on
OS X.
When I host the VST plugin in the Reaper DAW software, it works as expected *most* of
the time with no problems, although other times it gets the delay value wrong, e.g. it
will apply a delay of 6.6 ms when the GUI slider was set to 9.2 ms. I would love to
understand why and how to fix this.
As part of understanding this, I tried hosting the plugin in Audacity (version 2.0.5).
With Audacity, the behavior is even more bizarre. It basically amplifies the heck out
of the signal, creating mostly Nyquist-frequency noise with amplitude 1.0, except in
some places in the signal where it doesn't......I have no understanding of this.
Furthermore, if I set the feedback value to nearly zero (e.g 0.002) and time delay to
0ms -- effectively shutting off the plugin -- I still see the same behavior. In fact,
changing the plugin's sliders seems to have no qualitative effect when running it with
Audacity.
Can someone please help?
Many thanks!
Here is the code:
// invecho.dsp
import ("math.lib");
declare name "invecho"; // the name the DAW will see
myvdelay(n,d,x) = x@(int(d)&(n-1)); // defines the delay function
// GUI sliders
duration = hslider("milliseconds",0,0,50,0.1)*(SR/1000.0) : int; // 0 to 50ms, inc. of
0.1ms
feedback = hslider("feedback",-1.0,-1.0,1.0,0.01); // negative
values invert
invecho = vgroup("invecho",+~myvdelay(SR,duration)*feedback); // +~ adds
feedback
process = vgroup("invstereoecho",invecho,invecho); // putting it twice
makes it stereo
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users
------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
Faudiostream-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/faudiostream-users