skip to content

Track

Corresponds to a Sequencer and uses child Bar elements to define repeating rhythmic patterns.

class
Track
extends
Handle
tag
<track-blam>
see

Props

name type default description
solo boolean false

When applied, all other Track elements belonging to the ancestor Sequencer are suspended (their sounds aren’t played).

overrides string null

A space-separated list of Track ids. Tracks (belonging to a common Sequencer) whose sounds will not play when this Track plays a sound. Important for polymetric sequencing, to avoid “collisions”.

from string

A CSS selector representing all elements from which events should be listen to. Defaults to an ancestor Sequencer element for Tracks.

to string

A CSS selector representing all elements that respond to stated events. Typically one or more Sampler-based elements.

suspend boolean false

Stops the Track from playing associated source sounds. Does not stop samples dead (like a mute). Instead, the final sound is allowed to play out.

value string null

Handle-derived elements support special value syntax. Separate with | and one value is chosen at random. Separate with ~ and a value is chosen within the range [x]~[n]. Separate with (a single space) if you are supplying multiple args to an element’s method.

event string blam

The event type to listen for. For many Event-based elements, this is the generic custom event blam.

prop string null

The property (which may be a method or map to an audioParam) to affect at the event.

bypass boolean false

Whether to stop responding to events as they happen.

chance boolean 1

The probability that the event will be responded to. From 0 to 1.

Events

type description
blam

Fired whenever the current bar’s current step makes a sound. For a more regular series of events, use the parent Sequencer’s blam event instead.

Examples

Examples that use the Track element: