-
Notifications
You must be signed in to change notification settings - Fork 59
feat: implement Goose class with honk and honkify methods in SuperCollider #147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| Goose { | ||
| *honk { | ||
| 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); | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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; | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.