Skip to content

EZ Web Audio / BeatTrackOptions

Interface: BeatTrackOptions

Defined in: packages/core/src/beat-track.ts:12

Extends

Properties

duration?

optional duration: number

Defined in: packages/core/src/beat-track.ts:14


name?

optional name: string

Defined in: packages/core/src/sampler.ts:7

Inherited from

SamplerOptions.name


numBeats?

optional numBeats: number

Defined in: packages/core/src/beat-track.ts:13


wrapWith()?

optional wrapWith: (beat) => Beat

Defined in: packages/core/src/beat-track.ts:25

Parameters

beat

Beat

Returns

Beat

Method

wrapWith wrapWith allows you to run a function on each beat as it is created This function must accept a beat and return a beat. An example use-case appears in the docs site in the "Multisampled Drum Machine" example where this method is used to wrap each beat in an nx-js observable proxy.