UNPKG

ez-web-audio

Version:

Making the Web Audio API super EZ since 2024.

31 lines 910 B
import { AcceptableNote } from './musical-identity'; import { SampledNote } from './sampled-note'; /** * Allows multiple SampledNote instances to be loaded up and played via their * `identifier`. * * @public * @class Font */ export declare class Font { notes: SampledNote[]; constructor(notes: SampledNote[]); /** * Gets a note from `notes`, given it's identifier. * * @method getNote * @param {string} identifier The identifier for the note that should be * returned, * @return {SampledNote} The specified Note instance. */ getNote(identifier: string): SampledNote | undefined; /** * Plays a note from `notes`, given it's `identifier`. * * @method play * @param {string} identifier The identifier for the note that should be * played. */ play(identifier: AcceptableNote): void; } //# sourceMappingURL=font.d.ts.map