beta
cables is under heavy development.
There might be one or another bug, please let us know about it!
ClockSequencerPattern
Ops.WebAudio.ClockSequencerPattern
Related ops:Ops.Array.ParseArray  
Namespace: Ops.WebAudio
sequence triggers by defining a pattern (like a drum machine)

summary (oneliner)

This op allows you to create trigger patterns in conjuction with the ParseArray op.

If your array contains a 0, the step containing it will not pass a trigger through.

If you do not pass an array, triggers will be passed through.

An example:
If you choose a step size of 6 and use an array that looks like this [1, 0, 0, 0.5, 0, 0], every third step will be triggered. Step number 0 will output a "Sequenced Value" of 1, where as step number 3 will output a value of 0.5. These values can be used to modulate parameters, e.g.: using it to control the volume of a sequenced sound. Please refer to the example for a musical use case.

doc

issues

youtube id

collections

related ops

Inputs

Clock Trigger Input (Trigger)

trigger input


Sequence Array (Array)

pattern to be sequenced in array form. 0 does not trigger. e.g.: [1, 0, 1, 0] triggers every 1st and 3rd trigger


Steps index (integer /Number)

Steps (string /Number)

number of steps until pattern is repeated


Reset (Trigger)

restarts the sequence if triggered


Outputs

Sequence Trigger Output (Trigger)

output trigger


Sequenced Value (Number)

the current step value on trigger


Current Step (Number)

the index of the step


Caught a mistake or want to contribute to the documentation?

Edit Documentationcancel save
ClockSequencerPattern example:


Credits


Changelog


created op
2021-02-09 - simod

Ops.User.simod.ClockArrayTrigger renamed to Ops.WebAudio.ClockArrayTrigger
2021-02-09 - simod

Ops.WebAudio.ClockArrayTrigger renamed to Ops.WebAudio.ClockSequencerPattern
2021-02-10 - cables

Examples using ClockSequencerPattern

Public Patches using ClockSequencerPattern