Tap
Takes a child button element and uses it to trigger any method, or to apply any prop or param value. If aria-pressed is supplied on page load, the button becomes a toggle and the value will switch between true and false.
- class
- Tap
- extends
- Set
- tag
<tap-blam>
Props
| name | type | default | description |
|---|---|---|---|
| event | string | click | The event type to listen for. For many Event-based elements, this is the generic custom event |
| ramp | number | In beats. Where the |
|
| revert | boolean | false | When |
| once | boolean | false | Whether to only handle the event one time. Interesting, compositionally, when paired with a low |
| from | string | A CSS selector representing all elements from which events will be listened to. If not set, the node array defaults to the element’s |
|
| to | string | A CSS selector representing all elements to affect in response to the event. If not set, the node array defaults to the element’s |
|
| value | string | null | Handle-derived elements support special |
| prop | string | null | The property (which may be a method or map to an |
| bypass | boolean | false | Whether to stop responding to events as they happen. |
| chance | boolean | 1 | The probability that the |
Events
| type | description |
|---|---|
| blam | Fired whenever the |
Examples
Examples that use the Tap element:
- Just the samples
- A (minor) pentatonic party
- Breathe and stop
- Slip and slide
- Give the drummer some
- A motif with some mojo
- I wear many hats
- Can one kick it?
- Snare makes the groove
- Getting ghosted
- Saturation shenanigans
- Automayhem
- Ch-ch-ch-chocolate
- Radioactive orb
- Tape emulation
- Make It Fed
- A light lo-fi listen with LFOs
- Hopeless Horror hole