skip to content

Bank

Organizes samples into a single bank for provisioning a sample-based instrument like Pads or Notes.

class
Bank
extends
Handle
tag
<bank-blam>
see

Props

name type default description
event string blamready

By default, the Bank 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.

to string

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

prop string null

Not applicable for Bank.

value string null

Not applicable for Bank.

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’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: