superclass: UGen

BinaryOpUGens are created as the result of a binary operator applied to a UGen. 

( *;


The use of the binary operators * and thresh above each instantiate a BinaryOpUGen. Do not confuse the operators themselves (which are methods) with the resulting BinaryOpUGen, which is an object. When applied to other classes they may not return new objects, and can behave in a more straightforward manner. See for example SimpleNumber.

There are helpfiles for each the different operators, listed below.

The operators >, >=, <, and <= are particularly useful for triggering. They should not be confused with their use in conditionals. Compare

(1 > 0).if({"1 is greater than 0".postln}); // > returns a boolean


( // trigger an envelope


var trig;

trig = > 0.1;,, trig, doneAction: 0) 



}.play(s);) // > outputs 0 or 1

See the individual helpfiles for more detail.

The following operators have their own helpfiles:

+ - * / ** absdif amclip atan2 clip2 difsqr excess fold2 hypot hypotApx max min ring1 ring2 ring3 ring4 round scaleneg sqrdif sqrsum sumsqr thresh trunc wrap2

Berlin: clubs bars cafes nightlife going out