EZ Web Audio / BeatTrackOptions
Interface: BeatTrackOptions
Defined in: packages/core/src/beat-track.ts:12
Extends
Properties
duration?
optionalduration:number
Defined in: packages/core/src/beat-track.ts:14
name?
optionalname:string
Defined in: packages/core/src/sampler.ts:7
Inherited from
numBeats?
optionalnumBeats:number
Defined in: packages/core/src/beat-track.ts:13
wrapWith()?
optionalwrapWith: (beat) =>Beat
Defined in: packages/core/src/beat-track.ts:25
Parameters
beat
Returns
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.