rsc3/doc-schelp/HelpSource/Classes/T2K.schelp

33 lines
594 B
Text
Raw Permalink Normal View History

2022-08-24 13:53:18 +00:00
class:: T2K
summary:: Audio rate trigger to control rate trigger converter
categories:: UGens>Conversion, UGens>Triggers
related:: Classes/T2A, Classes/K2A, Classes/A2K
description::
Converts audio rate trigger into control rate trigger, using the maximum trigger in the input during each control period.
classmethods::
method:: kr
argument:: in
input signal.
examples::
code::
// this does not work:
(
{
var trig = Dust.ar(4);
Trig.kr(trig, 0.1) * SinOsc.ar(800) * 0.1
}.play;
)
// this works:
(
{
var trig = T2K.kr(Dust.ar(4));
Trig.kr(trig, 0.1) * SinOsc.ar(800) * 0.1
}.play;
)
::