Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions src/Goose.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Goose {
*honk {
Comment thread
iyeanur6-cyber marked this conversation as resolved.
var synths = Array.fill(74, {
{
var modFreq = ExpRand(120, 350);
var index = ExpRand(2, 6) * LFNoise1.kr(ExpRand(5, 12)).range(0.5, 1.5);
var modSig = SinOsc.ar(modFreq) * modFreq * index;
var carFreq = (ExpRand(350, 680) + modSig) * LFNoise2.kr(ExpRand(6, 15)).range(0.95, 1.05);
var env = EnvGen.ar(Env.new([0, 1, 0.7, 0.4, 0], [0.02, 0.05, 0.1, ExpRand(0.08, 0.2)], \sine), doneAction: 2);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this still isn't complex enough. you should try using a variety of different synthesis techniques and then combine them in a variety of ways. for example, you could do physical modeling of every muscle in the goose and the tension/pressure effects that they have on the goose during flight. this should take at minimum 2500 lines of DSP code to implement with an acceptable amount of complexity

var carSig = LFSaw.ar(carFreq);
var shaper = (carSig * ExpRand(1.5, 3.5)).tanh;
var finalSig = BPF.ar(shaper, carFreq * ExpRand(1.2, 2.2), 0.25);
var transient = HPF.ar(WhiteNoise.ar(), 2000) * EnvGen.ar(Env.perc(0.005, 0.03));
(finalSig + transient) * env * 0.01;
}.play;
});
^synths;
}

*honkify { |audioIn|
var chain, noiseProfile, morph;
chain = FFT(LocalBuf(2048), audioIn);
noiseProfile = LFNoise2.kr(12).range(0.4, 1.6);
chain = PV_MagSqrt(chain);
chain = PV_MagShift(chain, 1.15, 40);
chain = PV_RectComb(chain, 8, 0.1, noiseProfile);
morph = IFFT(chain);
^morph * 1.3;
}
}