Sequencer2 objects are used to schedule sequence calls to methods, property changes, and the execution of anonymous functions. Unlike standard Sequencer objects, Sequencer2 supports audio-rate modulation of timing via its rate property.
By default, rate is 1. A value of 2 causes events to occur twice as fast, while 0.5 causes them to occur half as fast. You can map any mono audio signal (an ugen) to the rate property to modulate the speed of events dynamically.
To use a Sequencer2, you must provide a target and a key. The key determines which property or method on the target will be controlled. If the key refers to a method, that method is called; if it refers to a property, that property is assigned a new value from the values array.
kick = Gibberish.instruments.Kick().connect()
seq = Gibberish.Sequencer2({
target: kick,
key: 'note',
values: [110],
timings: [11025],
rate: Gibberish.binops.Add(
1,
Gibberish.oscillators.Sine({ frequency:.25, gain:.75 })
)
}).start()