ez-web-audio
Version:
Making the Web Audio API super EZ since 2024.
40 lines • 2.13 kB
TypeScript
import { Sound } from './sound';
declare const SampledNote_base: {
new (...args: any[]): {
[x: string]: any;
letter: import('./musical-identity').NoteLetter;
accidental: import('./musical-identity').Accidental;
octave: import('./musical-identity').Octave;
readonly name: string;
frequency: number;
identifier: "C0" | "Db0" | "D0" | "Eb0" | "E0" | "F0" | "Gb0" | "G0" | "Ab0" | "A0" | "Bb0" | "B0" | "C1" | "Db1" | "D1" | "Eb1" | "E1" | "F1" | "Gb1" | "G1" | "Ab1" | "A1" | "Bb1" | "B1" | "C2" | "Db2" | "D2" | "Eb2" | "E2" | "F2" | "Gb2" | "G2" | "Ab2" | "A2" | "Bb2" | "B2" | "C3" | "Db3" | "D3" | "Eb3" | "E3" | "F3" | "Gb3" | "G3" | "Ab3" | "A3" | "Bb3" | "B3" | "C4" | "Db4" | "D4" | "Eb4" | "E4" | "F4" | "Gb4" | "G4" | "Ab4" | "A4" | "Bb4" | "B4" | "C5" | "Db5" | "D5" | "Eb5" | "E5" | "F5" | "Gb5" | "G5" | "Ab5" | "A5" | "Bb5" | "B5" | "C6" | "Db6" | "D6" | "Eb6" | "E6" | "F6" | "Gb6" | "G6" | "Ab6" | "A6" | "Bb6" | "B6" | "C7" | "Db7" | "D7" | "Eb7" | "E7" | "F7" | "Gb7" | "G7" | "Ab7" | "A7" | "Bb7" | "B7" | "C8" | "Db8" | "D8" | "Eb8";
};
} & typeof Sound;
/**
* Provides helper classes that represent musical concepts meant to be used by
* classes from the Audio module.
*
* @public
* @module MusicalConcepts
*/
/**
* Represents a musical note, created from sampled audio.
* When a soundfont is created via the
* {{#crossLink "Audio"}}Audio Service{{/crossLink}}, an instance of this class
* is created for every musical note that is represented in a soundfont. This
* class can be used for any collection of Sound instances where each instance
* needs an awareness of what "musical note" it is (i.e. octave, accidental, etc..).
*
* This class only makes sense when used in the context of a collection, as the
* only functionality it provides over a
* {{#crossLink "Sound"}}Sound{{/crossLink}}, serves to facilitate identification.
*
* @public
* @class SampledNote
* @extends Sound
* @uses MusicalIdentity
*/
export declare class SampledNote extends SampledNote_base {
}
export {};
//# sourceMappingURL=sampled-note.d.ts.map