skip to content

Bank

Organizes samples into a single bank for provisioning a sample-based instrument like Pad or Note.

class
Bank
extends
Handle
tag
<bank-blam>
see

Props

name type default description
event blamready

By default, the <bank-blam> fetches and converts constituent samples on the blamready event, which is fired on the window when all elements have been defined.

from string

A CSS selector representing all elements from which events should be listened to. Defaults to window for <bank-blam>.

to string

A CSS selector representing all elements to affect in response to the event. Defaults to the <bank-blam> element itself, in this case, and should not be altered.

prop string null

Not applicable for <bank-blam>.

for string blam

A space separated list of events the element should be “listening for”. Most HYPERBLAM elements emit a generic blam 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
blambank

Fired when all the <bank-blam>’s samples have been converted to buffers and are ready for use. The data contains the buffers as sounds.

Examples

Examples that use the Bank element: