SHARE
TWEET

Untitled

a guest Nov 21st, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2.  
  3. (
  4. var cond;
  5. cond = Condition.new;
  6. s.boot;
  7. s.waitForBoot({
  8. SynthDef(
  9.     name: "Didg",
  10.     ugenGraphFunc: {
  11.         arg frequency, breath=0, breathLevel = 0.5, pitchbend = 1, widthlevel=0.5, cutlevel=4, spreadlevel=1;
  12.         var squarewave1 = LFPulse.ar(freq: (frequency * pitchbend)*spreadlevel, iphase: 0, width: widthlevel, mul: breath * breathLevel, add: 0);
  13.         var clarsound1 = LPF.ar(in: [squarewave1, squarewave1], freq: cutlevel*frequency, mul: 1, add: 0);
  14.         var squarewave2 = LFPulse.ar(freq: (frequency * pitchbend)/spreadlevel, iphase: 0, width: widthlevel, mul: breath * breathLevel, add: 0);
  15.         var clarsound2 = LPF.ar(in: [squarewave2, squarewave2], freq: cutlevel*frequency, mul: 1, add: 0);
  16.         var result = Mix.new([clarsound1, clarsound2]);
  17.         Out.ar(0, squarewave1);
  18.     }
  19. ).add;
  20.    
  21.     s.sync(cond);
  22. ~usedSynth = Synth(
  23.     defName: "Didg",
  24.     args: [
  25.         'frequency', 110,
  26.     ],
  27.     target: s,
  28.     addAction: 'addToHead'
  29. )
  30. });
  31. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top