SHARE
TWEET

Untitled

a guest Jul 3rd, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Server.default.record;
  2. s.pauseRecording;
  3.  
  4. (
  5. SynthDef("fm1", {
  6.  
  7.  
  8.     arg bus = 0, freq = 440, carPartial = 1, modPartial = 1, index = 3, mul = 3;
  9.     var mod, car, dist;
  10.  
  11.     mod = SinOsc.ar(freq * modPartial, 0, freq * index * LFNoise1.kr(5.reciprocal).abs);
  12.  
  13.     car = SinOsc.ar((freq * carPartial) + mod, 0, mul);
  14.  
  15.     dist = FreeVerb.ar(car, mix: 1, room: 1).distort*0.5;
  16.  
  17.     Out.ar(bus, dist)}).load(s)!2;
  18.  
  19. )
  20. (
  21.  
  22. Synth("fm1", [\bus, 0, \freq, 20, \carPartial, 2, \modPartial, 2.4]);
  23.  
  24. Synth("fm1", [\bus, 1, \freq, 100, \carPartial, 2, \modPartial, 2.401]);
  25.  
  26. )
  27.  
  28. f = {
  29.  
  30. var n = 24;
  31. var freq = Array.geom(n,60,1.25);
  32. var amp = Array.geom(n,0.5,0.75);
  33. var tim = Array.geom(n,10,1.25);
  34.  
  35. // var tim = Array.geom(n,0.125,1.1); // Smaller tim values for more rhythmic effect – Phase Music
  36. var src = Mix.fill(n, {arg i;
  37. var src = SinOsc.ar([freq[i], freq[i]],4.0.rand,amp[i])*LFGauss.ar([tim.choose,tim.choose],0.35);
  38. // var src = Saw.ar([freq[i], freq[i]],amp[i])*LFGauss.ar([tim.choose,tim.choose],0.35);
  39.  
  40. var mod = SinOsc.ar([freq[(n/2).rand], freq[(n/2).rand]],4.0.rand,amp[i])*LFGauss.ar([tim.choose,tim.choose],0.35);
  41.  
  42. mod*src
  43. });
  44. src*EnvGen.ar(Env.linen(0.0001, 360, 40),doneAction:2)
  45. }
  46.  
  47. g = {(FreeVerb.ar(f)).distort};
  48. g.play;
  49.  
  50.  
  51. {LPF.ar(FreqShift.ar((FreeVerb.ar(f*SinOsc.ar(80, mul:1.4))).distort, freq: 120, mul: 0.2), 300)!2}.play
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top