{
   "ancestor_list" : [],
   "description" : "Using filtered feedback with a noise input to produce a tone. Some bass notes turn a little noisy if the freq is left at one value for a few seconds. It's worth scoping this too.\r\nRoom for improvement: some of the vars could / should be arguments.",
   "author" : "38nonprivate",
   "name" : "Feedback resonator",
   "is_private" : null,
   "id" : "1-z",
   "code" : "// Resonator, must subtract blockSize for correct tuning\r\n(\r\nSynthDef(\"testRes\", {\r\n\t\r\nvar freq = 300, localIn, input, limitLevel = 0.2, output;\r\nvar feedbackAmt = 0.999;\r\n\r\nfreq = MouseY.kr(20, 678, \\exponential).poll;\r\nfeedbackAmt = MouseX.kr(0.2, 0.99999).poll;\r\nlocalIn = LocalIn.ar(1); \r\ninput = LFNoise1.ar(freq * 16, 0.2);\r\ninput = input + Dust2.ar(freq);\r\n\r\n\r\nLocalOut.ar(\r\n\tHPF.ar(LPF.ar(DelayC.ar(input + (localIn * feedbackAmt), 2, freq.reciprocal - ControlRate.ir.reciprocal), freq * 8), freq * 0.125)\r\n);\r\n\r\noutput = Limiter.ar(localIn, limitLevel, 0.01) * limitLevel.reciprocal;\r\nOffsetOut.ar(0, output ! 2);\r\n\r\n}).play(s);\r\n\r\n)",
   "labels" : [
      "feedback",
      "noise"
   ]
}
