UNPKG

ez-web-audio

Version:

Making the Web Audio API super EZ since 2024.

23 lines 1.31 kB
import { OscillatorOptsFilterValues, Oscillator, OscillatorOpts } from './oscillator'; import { SampledNote } from './sampled-note'; import { Connectable } from './interfaces/connectable'; import { Playable } from './interfaces/playable'; import { Font } from './font'; import { default as frequencyMap } from './utils/frequency-map'; import { MusicallyAware } from './musical-identity'; import { Sampler } from './sampler'; import { Sound } from './sound'; import { Track } from './track'; import { Note } from './note'; export declare function initAudio(): Promise<void>; export declare function getAudioContext(): AudioContext; export declare function createNotes(json?: any): Note[]; export declare function createSound(url: string): Promise<Sound>; export declare function createTrack(url: string): Promise<Track>; export declare function createSampler(urls: string[]): Promise<Sampler>; export declare function createOscillator(options?: OscillatorOpts): Oscillator; export declare function createFont(url: string): Promise<Font>; export declare function createWhiteNoise(): Sound; export { Font, Note, Sound, Sampler, SampledNote, Oscillator, Track, MusicallyAware, frequencyMap, }; export type { Connectable, Playable, OscillatorOpts, OscillatorOptsFilterValues, }; //# sourceMappingURL=index.d.ts.map