Skip to content

Instantly share code, notes, and snippets.

@chadochan
Created January 29, 2019 11:09
Show Gist options
  • Save chadochan/1044a21b656b959c919fe7235a21e0cf to your computer and use it in GitHub Desktop.
Save chadochan/1044a21b656b959c919fe7235a21e0cf to your computer and use it in GitHub Desktop.
PolyPlotter plots an array of sine waves, superposing them for comparison.
PolyPlotter {
*plot {|limbArray = #[9, 17, 21], phaseoffset = 0, superpose = true|
var sinusplot;
sinusplot = { SinOsc.ar(limbArray, phaseoffset) }.plot(1, bounds: Rect(20, 780, 1370, 70));
sinusplot.superpose = superpose;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment