big thread about these operators from last year…:
I use the equivalent of |>
everywhere (for me it’s =>
) and feel we should add this to the class library.
There are also at least a couple variants that are needed - @Jordan proposed a .tap
adverb so that |>.tap
is
{ |that| that.(this); this }
so you can write for example:
{
SinOsc.ar() * Env.perc() |> FreeVerb.ar(_)
|>.tap DetectSilence.ar(_)
}
2 Likes