Skip to content

Commit

Permalink
Merge pull request supercollider#157 from LFSaw/topic/fix-MCLD_helpfiles
Browse files Browse the repository at this point in the history
Added clarifications to WaveLoss helpfile
  • Loading branch information
LFSaw authored Aug 11, 2017
2 parents 147ce2f + c539f4a commit 06257c6
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions source/MCLDUGens/sc/HelpSource/Classes/WaveLoss.schelp
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@ categories:: UGens>Filters>Nonlinear
related:: Classes/Squiz

DESCRIPTION::
Uses the zero-crossings to divide an audio stream into tiny segments, and simply discards a fraction of the segments (replacing them with silence). The technique was described in a lecture by Trevor Wishart.
Divide an audio stream into tiny segments, using the signal's zero-crossings as segment boundaries, and discard a fraction of them (i.e. replace them with silence of the same length).
The technique was described by Trevor Wishart in a lecture.

Parameters: the filter drops strong::drop:: out of strong::outof:: chunks. strong::mode:: can be 1 to drop chunks in a simple deterministic fashion (e.g. always dropping the first 30 out of a set of 40 segments), or 2 to drop chunks randomly but in an appropriate proportion.
Parameters: the filter drops strong::drop:: out of strong::outof:: chunks. strong::mode:: can be code::1:: to drop chunks in a simple deterministic fashion (e.g. always dropping the first code::30:: out of a set of code::40:: segments), or code::2:: to drop chunks randomly but in an appropriate proportion.

CLASSMETHODS::

METHOD:: ar
METHOD:: ar, kr
argument:: in
argument:: drop
number of waves to drop within each region of code::outof:: waves
argument:: outof
number of waves within which code::drop:: numbers are silenced
argument:: mode
list::
## code::1:: drops chunks in a simple deterministic fashion (i.e. always drop the first code::n:: out of code::m:: segments)
## code::2:: drops waves randomly in determined proportion.
::
argument:: mul
argument:: add

METHOD:: kr
argument:: in
argument:: drop
argument:: outof
argument:: mode
argument:: mul
argument:: add


EXAMPLES::

code::
s.boot;
// Move the mouse left/right to see the gradation of the effect.
// Move the mouse left/right to see the gradation of the effect.
// Move up or down to choose mode. The modes sound very different.
(
x = {
Expand Down Expand Up @@ -59,7 +59,7 @@ x = {
var sig, mode, woo;
sig = PlayBuf.ar(1, b.bufnum, BufRateScale.kr(b.bufnum) * 0.75, startPos: 92898, loop: 1);
woo = {
WaveLoss.ar(sig,
WaveLoss.ar(sig,
EnvGen.kr(Env.new([199, 199, 150, 150, 199, 250], [20, 40, 60, 60, 100]), doneAction:2)
+ (FSinOsc.kr(0.2 + XLine.kr(0.001, [1.3, 1.7], 90), 0, 50) * XLine.kr(0.00000001, 1, 60))
,
Expand Down

0 comments on commit 06257c6

Please sign in to comment.