Request: Nyquist code for deliberate feedback

Using Nyquist scripts in Audacity.
Post and download new plug-ins.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
Trebor
Posts: 9962
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Request: Nyquist code for deliberate feedback

Post by Trebor » Sat Aug 23, 2014 6:09 am

I found a free beta VST plugin called FeedBug which creates feedback.
It's OK but it's not extreme enough to create the sustained squeals I'm looking for.

Can anyone suggest some Nyquist code for deliberate feedback ?

[ it's going to have to have parameters for delay and the amount of feedback,
a limiter on the output would be a nice touch to stop the output going off the chart ].

steve
Site Admin
Posts: 81653
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Request: Nyquist code for deliberate feedback

Post by steve » Sat Aug 23, 2014 9:31 am

The Feedback-delay function comes to mind.
Unfortunately that does not allow you to insert other processing within the feedback loop - to do that I think you would need to create your own feedback function, which you would probably need to implement as a DSP class (see http://www.cs.cmu.edu/~rbd/doc/nyquist/ ... #index1328), which is quite complicated.
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

Trebor
Posts: 9962
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: Request: Nyquist code for deliberate feedback

Post by Trebor » Sat Aug 23, 2014 11:58 am

steve wrote:The Feedback-delay function comes to mind.
Doh ! :oops:

But like you say there is no temporal variability possible with the command "Feedback-delay" : the effect is constant like a comb. I tried combining a few [below] thinking they may interact to change the effect with time , but no joy :(

Code: Select all

(sim s 
 (feedback-delay s 0.001 0.01)
 (feedback-delay s 0.003 0.03)
 (feedback-delay s 0.005 0.05)
 (feedback-delay s 0.010 0.01))
Still usable though.
Last edited by Trebor on Sun Aug 24, 2014 1:23 am, edited 1 time in total.

Trebor
Posts: 9962
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: Request: Nyquist code for deliberate feedback

Post by Trebor » Sat Aug 23, 2014 12:50 pm

What about varying the ratio that each feedback-delay contributes to the final result according to (3?) LFOs, each oscillating at a prime-number frequency so there is no repetition.
So the ratio of the notches is always changing , (not quite the same as a flanger), e.g. ...
Electric-Guitar, before-after.flac
(757.95 KiB) Downloaded 108 times
notch pattern is not the same as a flanger.gif
spectrogram of the before-after FLAC file attached
notch pattern is not the same as a flanger.gif (152.9 KiB) Viewed 2127 times
It's an approximation of the guitarist moving about on stage getting feedback from different monitor-speakers, each with their own constant resonant-frequency.

Robert J. H.
Posts: 3633
Joined: Thu May 31, 2012 8:33 am
Operating System: Windows 10

Re: Request: Nyquist code for deliberate feedback

Post by Robert J. H. » Sat Aug 23, 2014 5:10 pm

The second argument of feedback-delay can be a sound too:

Code: Select all

(feedback-delay s 0.001  (pwl 0.5 1.0003 1 0.0 1)) 
This gives a sound like:
elgui_w_fb.mp3
(286.94 KiB) Downloaded 139 times
For a "true" feedback loop, the decay sound must temporarily go over 1.0.
You can of course pre- and post-process the sound to get e.g. changing frequencies.

Trebor
Posts: 9962
Joined: Sat Dec 27, 2008 5:22 pm
Operating System: Windows 8 or 8.1

Re: Request: Nyquist code for deliberate feedback

Post by Trebor » Sun Aug 24, 2014 1:04 am

Robert J. H. wrote:The second argument of feedback-delay can be a sound too:
Thanks Robert ,
is it possible to have a Low Frequency Oscillator as the second argument of "feedback-delay" to provide Amplitude Modulation of the combed content ?

I had to use this arrangement to amplitude-modulate each of the "feedback-delay"s by a different LFO ...

Code: Select all

(setq A1 (hzosc 0.5))
(setq A2 (hzosc 0.333))
(setq A3 (hzosc 0.1234))

(sim 
(mult A1 -0.5) (mult A2 -0.5) (mult A3 -0.5)
 (mult (sum 0.5 (feedback-delay s 0.01 0.015)) A1)
 (mult (sum 0.5 (feedback-delay s 0.03 0.05)) A2)
 (mult (sum 0.5 (feedback-delay s 0.05 0.07)) A3))
looped-guitar using code.mp3
Track processed with this code was compressed for a more uniform volume and mixed with the original
(953.44 KiB) Downloaded 132 times
spectrogram of code applied to white noise, has a woven pattern.gif
at times the spectrogram also looks like the tread on a car tire.
spectrogram of code applied to white noise, has a woven pattern.gif (151.8 KiB) Viewed 2115 times

Post Reply