skip to content

Track

Corresponds to a <sequencer-blam> and uses child <bar-blam> 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-blam> elements belonging to the ancestor <sequencer-blam> are suspended (their sounds aren’t played).

overrides string null

A space-separated list of <track-blam> ids. Tracks (belonging to a common <sequencer-blam>) whose sounds will not play when this <track-blam> 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-blam> element for <track-blam>s.

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-blam> from playing associated source sounds. Does not stop samples dead (like a mute). Instead, the final sound is allowed to play out.

part string

For compositional purposes, you can group <bar-blam>s into parts, using the <part-blam> element. The part prop takes a CSS selector corresponding to the first <part-blam> element it matches. If no part is set, the entire contents of the <track-blam> is considered the “part”. Parts change when the current part comes to its end, so the immediacy of the shift depends on how close to the end of the part the change is made.

for string blam

A space separated list of events the element should be “listening for”. Most HYPERBLAM elements emit a generic blam event.

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 on both the <track-elem> itself and the newly selected <bar-blam>.

blampart

Fired on the <track-elem> whenever a new part (<part-elem>) is chosen. If the part value is falsy, the “part” is the entire structure belonging to the <track-elem>.

Examples

Examples that use the Track element: