{"id":284,"date":"2010-05-29T15:13:00","date_gmt":"2010-05-29T14:13:00","guid":{"rendered":"http:\/\/www.celesteh.com\/blog\/2010\/05\/29\/snare-dru\/"},"modified":"2015-06-19T00:23:42","modified_gmt":"2015-06-18T23:23:42","slug":"snare-dru","status":"publish","type":"post","link":"https:\/\/www.celesteh.com\/blog\/2010\/05\/29\/snare-dru\/","title":{"rendered":"Snare Drum"},"content":{"rendered":"<p>Or clap or whatever.  I don&#8217;t actually like snare drums or their ilk very much.<br \/>\nHere&#8217;s the part where I can push faders around to get good values:<\/p>\n<pre>\n\n(\n SynthDef(snare, {|out = 0, freq, rq, hpf_d, hpf_cv, curve, dur, amp, pan = 0|\n \n  var noise, hpf, hpf_env, env, panner, imp;\n  \n  noise = PinkNoise.ar(1);\n  imp = Impulse.ar(1\/(dur + 0.1), 0, amp);\n  \n  env = EnvGen.kr(Env.perc(0.0005, dur, amp), doneAction:2);\n  hpf_env = EnvGen.kr(Env.perc(0.001, hpf_d, hpf_cv, curve)) - 12;\n  hpf = RHPF.ar(noise, (freq.cpsmidi + hpf_env).midicps, rq) * env;\n  \n  panner = Pan2.ar(hpf + imp, pan);\n  \n  Out.ar(out, panner);\n }).store;\n \n\n Conductor.make({|cond, freq, rq, hpf_d, hpf_cv, curve, dur, db|\n \n  freq.spec_(freq, 200+660.rand);\n  rq.spec_(rq, 0.45 + 0.1.rand);\n  hpf_d.sp(1, 0.0001, 1.45, 0, 'linear');\n  hpf_cv.sp(24, 0, 36, 0, 'linear');\n  dur.sp(1, 0.0001, 1.5, 0, 'linear');\n  db.spec_(db, 0.2.ampdb);\n  curve.sp(-3, -1, -8, 1, 'linear');\n  \n   \n  cond.pattern_(\n   Pbind(\n    instrument, snare,\n    db,   db,\n    freq,  freq,\n    rq,   rq,\n    hpf_d,  hpf_d,\n    hpf_cv,  hpf_cv,\n    dur,  dur,\n    curve,  curve\n   )\n  );\n }).show;\n)\n<\/pre>\n<p>That requires the Conductor Quark.  I&#8217;m not sure about that sound design, anyway.  And here&#8217;s the final version:<\/p>\n<pre>\n\n SynthDef(snare, {|out = 0, hit_dur, amp = 0, pan =0|\n  var noise, hpf, hpf_env, env, panner, imp;\n  \n  noise = PinkNoise.ar(1);\n  imp = Impulse.ar(1\/(hit_dur + 0.1), 0, amp);\n  \n  env = EnvGen.kr(Env.perc(0.0005, hit_dur, amp), doneAction:2);\n  hpf_env = EnvGen.kr(Env.perc(0.001, 0.92, 16.8, -5)) - 12;\n  hpf = RHPF.ar(noise, (78.34 + hpf_env).midicps, 0.57) * env;\n  panner = Pan2.ar(hpf + imp, pan);\n  Out.ar(out, panner);\n }).store;\n<\/pre>\n<p>Make of it what you will.  That single impulse at the beginning gives it a good start, but it doesn&#8217;t have that paff or bappff &#8211; that roundness of attack &#8211; of a real snare or even a good analog drum machine.  I used to have such a machine, which I didn&#8217;t actually make ver much use of.  Now it lies abandoned in California, alas and woe.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Or clap or whatever. I don&#8217;t actually like snare drums or their ilk very much. Here&#8217;s the part where I can push faders around to get good values: ( SynthDef(snare, {|out = 0, freq, rq, hpf_d, hpf_cv, curve, dur, amp, pan = 0| var noise, hpf, hpf_env, env, panner, imp; noise = PinkNoise.ar(1); imp = &hellip; <a href=\"https:\/\/www.celesteh.com\/blog\/2010\/05\/29\/snare-dru\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Snare Drum<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"activitypub_content_warning":"","activitypub_content_visibility":"","activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"","footnotes":""},"categories":[1],"tags":[76,64],"class_list":["post-284","post","type-post","status-publish","format-standard","hentry","category-uncategorised","tag-celesteh","tag-supercollider"],"_links":{"self":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/comments?post=284"}],"version-history":[{"count":1,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/284\/revisions"}],"predecessor-version":[{"id":2489,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/posts\/284\/revisions\/2489"}],"wp:attachment":[{"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/media?parent=284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/categories?post=284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.celesteh.com\/blog\/wp-json\/wp\/v2\/tags?post=284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}