Seq(time=1, seq=[1], poly=1)
Generates a rhythmic sequence of trigger signals.
A trigger is an audio signal with a value of 1 surrounded by 0s.
The play() method starts the sequence and is not called at the object creation time.
Parent class : PyoObject
Parameters:
time : float or PyoObject, optional Base time between each trigger in seconds. Defaults to 1. seq : list of ints, optional Sequence of beat durations in time's unit. Defaults to [1]. poly : int, optional Seq polyphony. Denotes how many independent streams are generated by the metronome, allowing overlapping processes. Available only at initialization. Defaults to 1.
Methods:
setTime(x) : Replace the `time` attribute. setSeq(x) ; Replace the `seq` attribute.
Attributes:
time : float or PyoObject. Base time between each trigger in seconds. seq : list of ints. Sequence of beat durations in time's unit.
Notes:
The out() method is bypassed. Seq's signal can not be sent to audio outs. Seq has no `mul` and `add` attributes.
Examples:
>>> s = Server().boot() >>> s.start() >>> env = CosTable([(0,0),(300,1),(1000,.3),(8191,0)]) >>> seq = Seq(time=.25, seq=[2,1,1,2], poly=2).play() >>> tr = TrigRand(seq, min=250, max=500, port=.005) >>> amp = TrigEnv(seq, table=env, dur=.5, mul=.5) >>> a = SineLoop(tr, feedback=0.05, mul=amp).out()
Methods details:
Seq.setTime(x): Replace the `time` attribute. Parameters: x : float or PyoObject New `time` attribute. Seq.setSeq(x): Replace the `seq` attribute. Parameters: x : list of ints New `seq` attribute.