{
   "name" : "SynthDEFaults - Patterns Examples",
   "author" : "unknown",
   "description" : "Patterns examples using SynthDEFaults library",
   "ancestor_list" : [],
   "labels" : [
      "percussion",
      "drums",
      "organ",
      "synthdef",
      "piano",
      "tradicional instrumens",
      "woodwind",
      "brass"
   ],
   "code" : "//\\\\##//\\\\##//\\\\##//\\\\##//\\\\##//\\\\##//\\\\##//\\\\##//\\\\##\r\n//\\\\##//\\\\##                        //\\\\##//\\\\##//\\\\##\r\n//\\\\##//\\\\##      SynthDEFaults     //\\\\##//\\\\##//\\\\##\r\n//\\\\##//\\\\##   Patterns Examples    //\\\\##//\\\\##//\\\\##\r\n//\\\\##//\\\\##                        //\\\\##//\\\\##//\\\\##\r\n//\\\\##//\\\\##//\\\\##//\\\\##//\\\\##//\\\\##//\\\\##//\\\\##//\\\\##\r\n\r\n\r\n/*\r\n- A Collection of Tradicional SynthDefs-\r\n//under GNU GPL 3 as per SuperCollider license\r\n//By Zé Craum\r\n\r\nSynthDefs at: http://sccode.org/1-5aD\r\n\r\nContribuitions, comments, advises, criticisms, etc are very welcome: zecraum at gmail com\r\n*/\r\n\r\n//--//..//--//..//--//..//--//..//--//..//--//..\r\n//--//..       Condesed Examples        //--//..\r\n//--//..//--//..//--//..//--//..//--//..//--//..\r\n\r\n//Pianos\r\nSynth(\\piano_MDA)\r\n//Electric Pianos\r\nSynth(\\Piano_rhodeySC)\r\nSynth(\\everythingrhodes\t)\r\n//Harpsichord\r\nSynth(\\harpsichord_simple)\r\nSynth(\\harpsichord_pluck)\r\n//Organ\r\nSynth(\\organ_tonewheel0)\r\nSynth(\\organ_tonewheel1)\r\nSynth(\\organ_tonewheel2)\r\nSynth(\\organ_tonewheel3)\r\nSynth(\\organ_tonewheel4)\r\nSynth(\\organ_donor)\r\nSynth(\\organ_reed)\r\n//Woodwinds\r\nSynth(\\flute_waveguide)\r\n//Strings\r\nSynth(\\strings)\r\nSynth(\\violin)\r\n//Percussion\r\nSynth(\\kalimba)\r\nSynth(\\marimba1)\r\nSynth(\\bell_tubular)\r\nSynth(\\glockenspiel)\r\nSynth(\\xilophone)\r\nSynth(\\marimba)\r\nSynth(\\prayer_bell)\r\n//Drum Kits\r\nSynth(\\snare909,[\\mul,0.5,\\velocity, rrand(0.5, 1.0)]);\r\nSynth(\\neurosnare, [amp: 0.4]);\r\nSynth(\\hihat)\r\nSynth(\\snare)\r\nSynth(\\kick)\r\nSynth(\\kick1, [amp: 0.4]);\r\nSynth(\\kick2, [amp: 0.4]);\r\nSynth(\\kick3, [amp: 0.4]);\r\nSynth(\\kick_808)\r\nSynth(\\SOSkick)\r\nSynth(\\SOSsnare)\r\nSynth(\\SOShats)\r\nSynth(\\SOStom)\r\nSynth(\\kick_electro)\r\nSynth(\\snare_electro)\r\nSynth(\\hihat_electro)\r\nSynth(\\clap_electro)\r\n//Others\r\nSynth(\\blips1)\r\nSynth(\\sawSynth)\r\nSynth(\\noisy)\r\n~voice = Buffer.read(s, Platform.resourceDir +/+ \"sounds/a11wlk01.wav\"); // remember to free the buffer later.\r\nSynth(\\sampler_PlayBuf, [\\buf, ~voice])\r\nSynth(\\sine_simple)\r\nSynth(\\sine_vintage)\r\nSynth(\\prophet5pwmstrings)\r\n\r\n\r\n//--//..//--//..//--//..//--//..//--//..//--//..\r\n//--//..       Extended Examples        //--//..\r\n//--//..//--//..//--//..//--//..//--//..//--//..\r\n\r\n\r\n//  //  //  //  //  //\r\n////    Pianos    ////\r\n//  //  //  //  //  //\r\n\r\n// Hanon exercise\r\n(\r\np = Pbind(\r\n\t\\instrument, \\piano_MDA,\r\n\t\\octave, 3,\r\n    \\degree, Ppatlace([\r\n        Pseries(0, 1, 8),    // first, third etc. notes\r\n        Pseries(2, 1, 7)    // second, fourth etc. notes\r\n    ], inf),\r\n\t\\legato, 1,\r\n    \\dur, 0.25\r\n).play;\r\n)\r\n\r\n//  //  //  //  //  //  //  //  //\r\n////     Electric Pianos      ////\r\n//  //  //  //  //  //  //  //  //\r\n\r\n(\r\nPbind(\r\n    \\instrument, \\Piano_rhodeySC,\r\n    \\scale, Scale.mixolydian,\r\n    \\octave, 4,\r\n    \\root, 2,\r\n    \\legato, Pseq([0.9, 0.5, 0.5, 0.9, 0.9, 0.9, 0.9, 0.5, 1, 0.5, 1, 0.6, 0.3], inf),\r\n    \\dur, Pseq([1 + (1/3), 1/3, 1/3, 1/7, 6/7, 5/6, 1/6, 1/2, 2/6, 1/6, 2 + 1/2, 1, 1/2], inf),\r\n    \\degree, Pseq([\r\n        [0, 2, 4], 2, 4, 7, 8, 7, 0, [1, 3, 6], 5, [1, 3, 6], Rest(), [-1, 1, 3], [1, 3, 5],\r\n        [0, 2, 4], 2, 4, 8, 9, 7, 0, [1, 3, 6], 5, [1, 3, 6], Rest(), [-1, 1, 3], [1, 3, 5],\r\n    ], inf),\r\n    \\mix, 0.2,\r\n    \\modIndex, 0.2,\r\n    \\lfoSpeed, 0.5,\r\n    \\lfoDepth, 0.4,\r\n    \\vel, Pgauss(0.8, 0.1, inf),\r\n    \\amp, 0.3\r\n).play(TempoClock(1.5));\r\n)\r\n\r\n\r\n(\r\nPfx(\r\n\tPbind(\r\n\t\t\\instrument,\\everythingrhodes,\r\n\t\t\\midinote,Pseq([12,8,7,0,[-12,4,12],[-12,4,12],[-12,4,12],[-11,5,12],[-11,5,12],[-9,7,12],7]+48,inf),\r\n\t\t\\dur,Pseq([0.5,0.5,0.5,0.5,1.5,1.0,1.0,1.0,1.0,2.0,0.5] ,inf),\r\n\t\t\\cutoff,Pstutter(11,Pn(Pseries(500,500,4),inf))\r\n\t),\r\n\t\\choruscompresseffect\r\n).play\r\n)\r\n\r\n//  //  //  //  //  //  //  //\r\n////    Harpsichord     ////\r\n//  //  //  //  //  //  //  //\r\n\r\nSynth(\\harpsichord_simple)\r\n(\r\nPbind(\r\n\t\\instrument, \\harpsichord_simple,\r\n\t\\scale, Scale.harmonicMinor,\r\n\t\\degree, Pseq([0, 1, 2, 3, 4, 5, 6, [-7, -3, 0, 2, 4, 6], 7], inf),\r\n\t\\amp, Pseq([Pn(0.1, 8), 0.06], inf),\r\n\t\\dur, Pseq([0.3, Pn(0.1, 6), 1.3, 1], inf),\r\n\t\\strum, 0.09\r\n).play\r\n)\r\n\r\n\r\n(\r\nPbind(\\instrument, \\harpsichord_pluck,\r\n\t\\degree, Phprand(-14, 14, 50),\r\n\t\\scale, Scale.harmonicMinor,\r\n\t\\dur, Pseq([Pseries(0.02 * 15, -0.02, 15).clip(0.01, 0.1*15), Pseries(0.01, 0.01, 15), ],1),\r\n\t\\db, -10,\r\n\t\\pan, Pseries(-1, 0.08, 30).clip(-1,1) ,\r\n\t).play;\r\n)\r\n\r\n//  //  //  //  //  //  //  //\r\n////       Organs          ////\r\n//  //  //  //  //  //  //  //\r\n\r\n\r\n(\r\nPbind(\r\n\t\t\t\\instrument, \\organ_tonewheel0,\r\n\t\t\t\\dur, Prand([ 4, 8, 2, 2, 1, 1, 0.25,0.25, 0.25], inf)/3,\r\n\t\t\t\\sus, 3.5 ,\r\n\t        \\db, Pwhite(-20, -10),\r\n\t\t\t\\mix, Pwhite(0.05, 0.15),\r\n\t\t\t\\octave, 3,\r\n\t\t\t\\degree, Pgauss(15, 5).round,\r\n\t\t\t\\scale, Scale.harmonicMinor,\r\n\t\t\t\\oct, Pbrown(0.01, 1, 0.01),\r\n\t\t\t\\nazard, Pbrown(0.01, 1, 0.01),\r\n\t\t\t\\blockFlute, Pbrown(0.01, 1, 0.01),\r\n\t\t\t\\tierce, Pbrown(0.01, 1, 0.01),\r\n\t\t\t\\larigot, Pbrown(0.01, 1, 0.01),\r\n\t\t\t\\sifflute, Pbrown(0.01, 1, 0.01),\r\n\t\t).play;\r\n)\r\n\r\n\r\n(\r\nPfx(\r\n\tPfx(\r\n\t\tPbind(\r\n\t\t\t\\instrument, \\organ_tonewheel1,\r\n\t\t\t\\dur, Prand([ 4, 8, 2, 2, 1, 1], inf)/3,\r\n\t\t\t\\sus, 2.5 ,\r\n\t\t\t\\amp, 0.1*(2**Pgauss(0, 0.1)),\r\n\t\t\t\\mix, Pwhite(0.05, 0.15),\r\n\t\t\t\\octave, 3,\r\n\t\t\t\\degree, Pgauss(15, 5).round,\r\n\t\t\t\\scale, Scale.melodicMinor,\r\n\t\t\t\\oct, Pbrown(0.01, 1, 0.01),\r\n\t\t\t\\nazard, Pbrown(0.01, 1, 0.01),\r\n\t\t\t\\blockFlute, Pbrown(0.01, 1, 0.01),\r\n\t\t\t\\tierce, Pbrown(0.01, 1, 0.01),\r\n\t\t\t\\larigot, Pbrown(0.01, 1, 0.01),\r\n\t\t\t\\sifflute, Pbrown(0.01, 1, 0.01),\r\n\t\t),\r\n\t\t\\choruscompresseffect\r\n\t), \\reverb\r\n).play\r\n)\r\n\r\n\r\n\r\n\r\n(\r\nPfx(\r\n\tPbind(\r\n    \\instrument, \\organ_tonewheel3,\r\n    \\dur, Pseq([0.3, 0.15, 0.15], inf)/0.9,\r\n\t\\sus, 1.2,\r\n    \\amp, 0.1*(2**Pgauss(0, 0.1)),\r\n    \\mix, Pwhite(0.05, 0.15),\r\n\t\\octave, 3,\r\n\t\\degree, Prand((0..24), inf)\r\n),\r\n\t\\choruscompresseffect\r\n).play;\r\n)\r\n\r\n\r\n(\r\nPfx(\r\n\tPbind(\r\n    \\instrument, \\organ_tonewheel2,\r\n    \\dur, Pseq([0.3, 0.15, 0.15], inf)/0.9,\r\n\t\\sus, 1.2,\r\n    \\amp, 0.1*(2**Pgauss(0, 0.1)),\r\n    \\mix, Pwhite(0.05, 0.15),\r\n\t\\octave, 3,\r\n\t\\degree, Prand((0..24), inf),\r\n\t\\vrate, 5,\r\n),\r\n\t\\choruscompresseffect\r\n).play;\r\n)\r\n\r\n\r\n(\r\nPbind(\r\n\t\\instrument,\\organ_tonewheel4,\r\n\t\\midinote,Pseq([48,50,52,60,64,67,58,72],inf),\r\n\t\\dur,1.0,\r\n\t\\rq,Pstutter(3,Pn(Pseries(0.75,-0.1,6),inf)),\r\n\t\\lfowidth,Pstutter(7,Pn(Pseries(0.0,0.05,10),inf)),\r\n\t\\cutoff,Pstutter(4,Pn(Pseries(2000,1000,4),inf))\r\n).play\r\n)\r\n\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \\organ_donor,\r\n\t\\sustain,0.9,\r\n\t\\amp, 0.2,\r\n\t\\midinote,Pn(Pshuf([[0,4,7],[-1,2,7],[-3,0,5],[-1,2,7],[2,5,9],[-5,-1,4]]+60),inf),\r\n\t\\dur,Pn(Pshuf([2.0,2.0,4.0,2.0],1),inf),\r\n\t\\lfowidth,Pn(Pseries(0.0,0.001,16),inf),\r\n\t\\lforate,Pn(Pseries(1,0.25,16),inf),\r\n\t\\rq,Pn(Pseries(0.3,-0.01,8),inf),\r\n\t\\cutoff,Pn(Pseries(6000,200,9),inf)\r\n).play\r\n)\r\n\r\n\r\n//  //  //  //  //  //  //  //\r\n////    Woodwinds      ////\r\n//  //  //  //  //  //  //  //\r\n\r\n(\r\nPbind(\r\n    \\instrument, \\organ_reed,\r\n    \\amp, 0.1*(2**Pgauss(0, 0.1)),\r\n    \\dur, 5.0,\r\n    \\legato, 1,\r\n    \\root, 1,\r\n    \\attack, 0.2,\r\n    \\release, 0.2,\r\n    \\degree, Pseq([[-7, -3, 0, 2], [-7, -2, 0, 3], [-7, -1, 1, 4]].mirror1, inf)\r\n).play;\r\n)\r\n\r\n\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \\flute_waveguide,\r\n\t\\degree, Pseq([0, 1, 2, 3, 4], inf),\r\n\t\\dur, Pwhite(0.5, 1),\r\n\t\\amp, Pwhite(0.1, 0.4),\r\n\t\\ipress, Pseq([Pn(0.9, 5), Pn(0.6, 5)], inf),\r\n\t\\ibreath, Pseq([Pn(0.09, 10), Pn(0.01, 10)], inf)\r\n).trace.play\r\n)\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \\waveguideFlute,\r\n\t\\degree, Pbrown(-5, 14, 3),\r\n\t\\dur, Pwrand([1/4, 1/8, 1/2], [0.7, 0.1 ,0.2], inf),\r\n\t\\db, Pwhite(-23,-20 ),\r\n\t//\\ipress, Pseq([Pn(0.9, 5), Pn(0.6, 5)], inf),\r\n\t\\ibreath, Pbrown(0.09, 0.01, 0.005)\r\n).play\r\n)\r\n\r\n//  //  //  //  //  //  //  //\r\n////       Strings         ////\r\n//  //  //  //  //  //  //  //\r\n\r\n(//Need to wait a bit\r\n\tPbind(\r\n        \\instrument, \\strings,\r\n        \\degree, Pseq([\r\n        \t\t\tPn(\\rest, 2),\r\n        \t\t\tPshuf([0, 2, 3, 5], 10),\r\n        \t\t\tPseq([\\rest], { 9.rand })\r\n        \t\t\t], inf)\r\n        \t\t\t+ Prand([0, 0, 0, [0, 3], [0, 1]], inf),\r\n        \\dur, Pseq([1, 2, 0.3, 0.5, 0.5], inf) + (Prand([0.3, 0, 0.2], inf) * 0.1),\r\n        \\detune, Pseg(Pwhite(-2, 2, inf), 1.3)\r\n       ).play\r\n);\r\n\r\n(\r\np = Pbind(\r\n\t\\instrument, \\violin,\r\n\t\\midinote, Prand( Scale.majorPentatonic.degrees, inf) + 60,\r\n\t\\dur, 3,\r\n\t\\legato, 1\r\n).play;\r\n)\r\n\r\n// play a chord (farfisa-like sound)\r\n(\r\n[60, 64, 67].do ({\r\n\t| note |\r\n\tSynth(\\violin, [\\midinote, note]);\r\n})\r\n)\r\n\r\n\r\n\r\n//  //  //  //  //  //  //  //\r\n////      Percussion      ////\r\n//  //  //  //  //  //  //  //\r\n\r\n\r\n(\r\nPbind(\r\n    \\instrument, \\kalimba,\r\n    \\dur, Pseq([0.3, 0.15], inf),\r\n    \\amp, 0.1*(2**Pgauss(0, 0.1)),\r\n    \\mix, Pwhite(0.05, 0.15),\r\n\t\\degree, Pseq([0, -3, [1, 4], 2, Rest(), 1, -3, -2, -4, -2, [0, 5], 1, Rest(), 0, -2, Rest()], inf)\r\n).play;\r\n)\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \"marimba1\",\r\n\t\\degree, Pwhite(-10, 10),\r\n\t\\dur, Pwhite(0.2, 0.3),\r\n\t\\db, Pwhite(-20, -25)\r\n).play;\r\n)\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \\bell_tubular,\r\n\t\\midinote, Prand( (60..72), inf),\r\n\t\\dur, 1\r\n).play;\r\n)\r\n\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \\glockenspiel,\r\n\t\\degree, Prand( (0..7), inf),\r\n\t\\t60, 6,\r\n\t\\dur, 0.25\r\n).play;\r\n)\r\n\r\n// xilophone\r\n(\r\nPbind(\r\n\t\\instrument, \\xilophone,\r\n    \\degree, Prand( (-7..14), inf),\r\n\t\\dur, 0.25\r\n).play;\r\n)\r\n\r\n// marimba\r\n(\r\nPbind(\r\n\t\\instrument, \\marimba,\r\n    \\degree, Prand( (-7..14), inf),\r\n\t\\dur, 0.12\r\n).play;\r\n)\r\n\r\n\r\n\r\n(\r\nPdef(\\bell_1,\r\n  Pmono(\\prayer_bell,\r\n    \\dur, Pseq([8, 20], inf),\r\n    \\freq, Pseq([2500, 500], inf),\r\n    \\amp, 0.5,\r\n    \\lag, 0,\r\n    \\trig, Pseq([0.1], inf) * Pwhite(0.5, 1, inf) * Pwrand([0, 1], [1, 5].normalizeSum, inf),\r\n    \\sing_switch, Pseq((0!4) ++ (1!4), inf)\r\n  )\r\n);\r\n\r\nPdef(\\bell_2,\r\n  Pmono(\\prayer_bell,\r\n    \\dur, Pwhite(8, 20, inf),\r\n    \\trig, Pwhite(0.05, 0.09),\r\n    \\sing_switch, Pwrand([0, 1], [5, 3].normalizeSum, inf),\r\n    \\freq, Prand((240, 360 .. 2000), inf),\r\n    \\amp, 0.5\r\n  )\r\n);\r\n\r\nPdef(\\bell_3,\r\n  Ppar([\r\n    Pmono(\\prayer_bell,\r\n      \\freq, 100,\r\n      \\dur, 1,\r\n      \\trig, 0,\r\n      \\sing_switch, Pwrand([0, 1], [10, 3].normalizeSum, inf),\r\n      \\amp, Pwhite(0.1, 0.5)\r\n    ),\r\n    Pmono(\\prayer_bell,\r\n      \\freq, 200,\r\n      \\dur, 1,\r\n      \\trig, 0,\r\n      \\sing_switch, Pwrand([0, 1], [10, 3].normalizeSum, inf),\r\n      \\amp, Pwhite(0.1, 0.5)\r\n    ),\r\n    Pmono(\\prayer_bell,\r\n      \\freq, 300,\r\n      \\dur, 1,\r\n      \\trig, 0,\r\n      \\sing_switch, Pwrand([0, 1], [10, 3].normalizeSum, inf),\r\n      \\amp, Pwhite(0.1, 0.5)\r\n    )\r\n  ])\r\n);\r\n\r\nPdef(\\bell_1).play;\r\nPdef(\\bell_2).play;\r\nPdef(\\bell_3).play;\r\n//by wondersluyter\r\n//http://sccode.org/wondersluyter\r\n)\r\n\r\n\r\n\r\n//  //  //  //  //  //  //  //\r\n////      Drum Kits      ////\r\n//  //  //  //  //  //  //  //\r\n\r\n(//straight\r\nPpar([\r\n\tPbind(\r\n\t\t\\instrument, \"hihat\",\r\n\t\t\\dur, Pseq([Rest(1/4), 1/4], inf),\r\n\t\t\\ffreq, 9000,\r\n\t\t\\rel, 0.1,\r\n\t\t\\amp, 0.2\r\n\t),\r\n\tPbind(\r\n\t\t\\instrument, \"kick\",\r\n\t\t\\dur, 1/2,\r\n\t\t\\amp, 0.9,\r\n\t\t\\rel, 0.12,\r\n\t\t\\glissf, 0.99\r\n\t),\r\n\t\tPbind(\r\n\t\t\\instrument, \"snare\",\r\n\t\t\\dur, Pseq([Rest(1/2), 1/2], inf),\r\n\t\t\\amp, 0.25,\r\n\t\t\\rel, 0.1\r\n\t)\r\n]).play;\r\n)\r\n\r\n(// a little bit groovy\r\n//Ppar does not need to be used always\r\nPbind(\r\n\t\\instrument, \"hihat\",\r\n\t\\dur, Pseq([Rest(1/4), 1/8], inf),\r\n\t\\att, 0.01,\r\n\t\\rel, 0.1,\r\n\t\\ffreq, 9000,\r\n\t\\pan, 0,\r\n\t\\amp, 0.3\r\n).play;\r\n\r\nPbind(\r\n\t\\instrument, \"snare\",\r\n\t\\dur, Pseq([Rest(1/2), 1/2], inf),\r\n\t\\att, 0.01,\r\n\t\\rel, 0.1,\r\n\t\\sinfreq, 180,\r\n\t\\ffreq, 2000,\r\n\t\\amp, 0.25\r\n\r\n).play;\r\n\r\nPbind(\r\n\t\\instrument, \"kick\",\r\n\t\\dur, Pseq([1/2 + (1/4), 1/4], inf),\r\n\t\\att, 0.01,\r\n\t\\rel, 0.22,\r\n\t\\sinfreq, 60,\r\n\t\\glissf, 0.9,\r\n\t\\amp, 1,\r\n).play;\r\n)\r\n\r\n\r\n\r\n(// \"hard coded\" samba\r\n//Ppar does not need to be used always\r\nPbind(\r\n\t\\instrument, \\SOShats,\r\n\t\\dur, Pseq([ 1/8, Rest(1/8)], inf),\r\n   \\freq, 8000,\r\n\t\\sustain, 0.4,\r\n\t\\db, -35,\r\n).play;\r\n\r\nPbind(\r\n\t\\instrument, \\SOSsnare,\r\n\t\\dur, Pseq([1/4, Rest(1/2), 1/4], inf),\r\n\t\\db, -35,\r\n\r\n).play;\r\n\r\nPbind(\r\n\t\\instrument, \\SOStom,\r\n\t\\dur, Pseq([Rest(1), 1 ], inf),\r\n\t\\db, -20,\r\n\t\\freq, 120,\r\n).play;\r\n\r\nPbind(\r\n\t\\instrument, \\SOSkick,\r\n\t\\dur, Pseq([1/2 + (1/4), 1/4], inf),\r\n    \\freq, 50,\r\n\t\\db, -10,\r\n).play;\r\n)\r\n\r\n\r\n(\r\nvar base;\r\n\r\nbase = Pbind(\\amp, 0.3);\r\n\r\nPpar([\r\n    Pbindf(\r\n        base,\r\n        \\instrument, Pseq([\\kick_electro, \\snare_electro, \\kick_electro, \\kick_electro, \\snare_electro], inf),\r\n        \\dur, Pseq([4, 3, 3, 2, 4], inf)\r\n    ),\r\n    Pbindf(\r\n        base,\r\n        \\instrument, Pseq([Pn(\\hihat_electro, 16), Pn(\\clap_electro, 16)], inf),\r\n        \\dur, Pseq([Rest(2), 2, Rest(2), 2], inf)\r\n    )\r\n]).play(TempoClock(2.3 * 4));\r\n)\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \\kick_808,\r\n\t\\dur, 1/2,\r\n\t\\db, -10,\r\n\t\\rel, 0.7,\r\n\t\\dist, 0.1\r\n).play;\r\n)\r\n\r\n\r\nSynth(\\SOSkick);\r\nSynth(\\SOSsnare);\r\nSynth(\\SOShats);\r\nSynth(\\SOStom);\r\nSynth(\\kick_electro);\r\nSynth(\\snare_electro);\r\nSynth(\\hihat_electro);\r\nSynth(\\clap_electro);\r\n//  //  //  //  //  //  //  //\r\n////       Others         ////\r\n//  //  //  //  //  //  //  //\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \\blips1,\r\n\t\\degree, Pseq([Pn(Pwhite(-10, 10, 1), 12), Pn(Rest(),3) ],inf ),\r\n\t\\dur, 1/4,\r\n\t\\db, -21,\r\n\t\\numharm, Pbrown(5, 40,1),\r\n\t\\beatsPercentage, Pstutter(12, Pseq([1.001, 1.005,  1.1, 1.5, 2, 2.001, 2.5, 3, 3.5, 4, 4.5, 5, 7,], inf)),\r\n\t\\atk, 0.01,\r\n\t\\rel, Pwhite(1/2, 1),\r\n\t\\pan, Pwhite(-1, 1.0)\r\n).play;\r\n//80's like synth\r\n//By Bruno Ruviaro\r\n//https://github.com/brunoruviaro/SynthDefs-for-Patterns/blob/master/blips.scd\r\n//Edits by Zé Craum\r\n)\r\n\r\n\r\n(\r\nPbind(\r\n    \\instrument, \"sawSynth\",\r\n    \\midinote, Pseq([\r\n        [50, 53, 55, 57],\r\n        [53, 56, 58, 60],\r\n\t\tPrand([\r\n\t\t\t[56, 59, 61, 63],\r\n            [49, 52, 54, 56],\r\n\t\t], 1)\r\n\t\t],\r\n        inf\r\n    ),\r\n    \\dur, Prand([1, 3, 4, 4.5], inf),\r\n\t\\att, 0.1,\r\n\t\\rel, Pkey(\\dur) + 1,\r\n\t\\hifreq, 5000,\r\n    \\amp, 0.2\r\n).play;\r\n\r\nPbind(\r\n\t\\instrument, \"sawSynth\",\r\n\t\\midinote, Pseq([36, 32, 32, 37], inf),\r\n\t\\dur, Pseq([1/4, 1/4, 1/2, Rest(3), 1/4], inf),\r\n\t\\ctranspose, [0, -12],\r\n\t\\att, 0.01,\r\n\t\\rel, 0.2,\r\n\t\\amp, 0.4,\r\n\t\\lofreq, 100,\r\n\t\\hifreq, 1000\r\n).play;\r\n)\r\n\r\n~voice = Buffer.read(s, Platform.resourceDir +/+ \"sounds/a11wlk01.wav\"); // remember to free the buffer later.\r\nSynth(\\sampler_PlayBuf, [\\buf, ~voice, \\rel, 14]);\r\nSynth(\\sampler_PlayBuf, [\\buf, ~voice, \\rel, 14, \\midiratio, 5]);\r\n\r\n(\r\nPbind(\\instrument, \\sampler_PlayBuf,\r\n\t\t\\buf, ~voice.bufnum,\r\n\t    \\midiratio, 0,\r\n\t    \\pos, Pbrown(0.0, 1.0, 0.1, inf),\r\n\t\t\\dur, Pwhite(0.07, 0.09, inf),\r\n\t    \\rel, 0.2,\r\n\t\t\\amp, 1.0\r\n\t).play\r\n)\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \\sine_simple,\r\n\t\\degree, Pwhite(0, 14),\r\n\t\\detune, Pbrown(0, 50, 1),\r\n\t\\atk, Pseq([Pn(0.001, 35),Pn(0.01, 20), Pn(0.1, 20)],inf),\r\n\t\\sus, 0.2,\r\n\t\\rel, 0.2,\r\n\t\\db, Pwhite(-30, -20) ,\r\n\t\\dur, 0.1\r\n).play\r\n)\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \\sine_vintage,\r\n\t\\degree, Pwhite(-7, 14),\r\n\t\\atk, Pseq([Pn(0.001, 35),Pn(0.01, 20), Pn(0.1, 20)],inf),\r\n\t\\vdepth, Pseq([Pn(0.0001, 75),Pn(0.01, 75), Pn(0.1, 75)],inf),\r\n\t\\vrate, Pseq([Pn(10, 75),Pn(1, 75), Pn(0.1, 75)],inf),\r\n\t\\sus, 0.2,\r\n\t\\rel, 0.2,\r\n\t\\db, Pwhite(-30, -20) ,\r\n\t\\dur, 0.1\r\n).play\r\n)\r\n\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \"noisy\",\r\n\t\\degree, Pseq([0, 1, 2, 3, 4, -10, -5], inf),\r\n\t\\dur, Pwhite(0.09, 0.15),\r\n\t\\amp, Pwhite(0.05, 0.2)\r\n).play;\r\n)\r\n\r\n\r\n\r\n\r\n(\r\nPbind(\r\n\t\\instrument,\\prophet5pwmstrings,\r\n\t\\midinote,Pseq([0,3,8,7,5,8,7,3]+48,inf),\r\n\t\\dur,Pseq((0.5!8) ++ (0.25!8) ++ (2.0!8),inf),\r\n\t\\lfowidth,Pn(Pseries(0.0,0.025,7),inf),\r\n\t\\lforate,Pn(Pseries(2,1,11),inf),\r\n\t\\rq,Pn(Pseries(0.9,-0.1,5),inf)\r\n).play\r\n)",
   "id" : "1-5aE",
   "is_private" : null
}
