{
   "code" : "(\r\n// Pulse doesn't respond well to being frequency modulated - loads of weird low freq noise\r\n{ Pulse.ar(SinOsc.ar(XLine.kr(1,8000,20)).range(1,2000))*0.2 !2}.play\r\n)\r\n\r\n(\r\n// LFPulse doesn't sound like an analogue synth due to loads of aliasing\r\n{ LFPulse.ar(SinOsc.ar(XLine.kr(1,8000,20)).range(1,2000))-0.5*0.4 !2}.play\r\n)\r\n\r\n(\r\n// But you can also produce a good approximation of a pulse wave by clipping a \r\n// high-amplitude sine wave.  Clipper8 (from sc3-plugins) allows you to do this \r\n// in a band-limited way.  This sounds much more like a frequency modulated analogue\r\n// oscillator.\r\n{ Clipper8.ar(SinOsc.ar(SinOsc.ar(XLine.kr(1,8000,20)).range(0,2000), 0, 10), -0.2, 0.2) !2}.play\r\n// note: there are two SinOscs - the inner one is the modulator and the outer one is\r\n// clipped to make the pulse wave\r\n)\r\n\r\n(\r\n// with PWM too\r\n{ Clipper8.ar(SinOsc.ar(SinOsc.ar(XLine.kr(1,8000,20)).range(50,1000), 0, 10)+LFTri.ar(8,mul:9.9), -0.2, 0.2) !2}.play\r\n)",
   "id" : "1-T",
   "is_private" : null,
   "labels" : [
      "analogue",
      "fm",
      "pulse"
   ],
   "ancestor_list" : [],
   "description" : "The standard Pulse UGen doesn't sound very good when its pitch is modulated at audio frequencies.  This example shows how to produce a band-limited pulse wave that can be modulated at audio rate, producing a better approximation to the kind of FM effects that an analogue modular synth can produce.\r\n\r\nRequires sc3-plugins.",
   "author" : "nathanielvirgo",
   "name" : "Frequency modulated pulse"
}
