import type { SoundModule, SoundModuleParams, Module, ModuleName } from './SoundModule'; import type { OscillatorModuleParams, Glide, GlideParams, GlideType, Oscillator, OscillatorParams, OscillatorCustomType } from './OscillatorModule'; import type { OneshotModuleParams, OneshotSetting, OneshotSettings, OneshotErrorText } from './OneshotModule'; import type { NoiseModuleParams, NoiseType } from './NoiseModule'; import type { AudioModuleParams, AudioBufferSprite } from './AudioModule'; import type { MediaModuleParams } from './MediaModule'; import type { StreamModuleParams, MediaStreamTrackAudioSourceNode } from './StreamModule'; import type { Part, Sequence, MMLSyntaxError, Tree, TokenType, TokenMap, Token, MMLScheduleWorkerMessageEventType, MMLScheduleWorkerMessageEventData } from './MML'; import type { AnalyserParams, Domain, DataType, FFTSize, Visualizer, VisualizerParams, Color, GraphicsApi, Gradient, Gradients, Shape, Font, GraphicsStyles, SpectrumScale, TimeOverview, TimeOverviewParams, MouseEventTypes, DragMode, DragCallbackFunction, CurrentTimeStyles, Time, TimeParams, FFT, FFTParams, Spectrogram, SpectrogramParams, Spectrum, SpectrumParams, AmplitudeSpectrum, AmplitudeSpectrumParams, AmplitudeSpectrumUnit, PhaseSpectrum, PhaseSpectrumParams, PhaseSpectrumUnit } from './SoundModule/Analyser'; import type { RecorderParams, RecordType, QuantizationBit, WaveExportType, Frame, Channel, RecorderProcessorMessageEventData } from './SoundModule/Recorder'; import type { AutopannerParams } from './SoundModule/Effectors/Autopanner'; import type { BitCrusherParams } from './SoundModule/Effectors/BitCrusher'; import type { ChorusParams, ChorusType } from './SoundModule/Effectors/Chorus'; import type { CompressorParams } from './SoundModule/Effectors/Compressor'; import type { DelayParams, DelayType } from './SoundModule/Effectors/Delay'; import type { EnvelopeGenerator, EnvelopeGeneratorParams } from './SoundModule/Effectors/EnvelopeGenerator'; import type { EqualizerParams } from './SoundModule/Effectors/Equalizer'; import type { FilterParams } from './SoundModule/Effectors/Filter'; import type { FlangerParams, FlangerType } from './SoundModule/Effectors/Flanger'; import type { FuzzParams } from './SoundModule/Effectors/Fuzz'; import type { HarmonizerParams, HarmonizerType, HarmonizerMode } from './SoundModule/Effectors/Harmonizer'; import type { ListenerParams } from './SoundModule/Effectors/Listener'; import type { NoiseGateParams } from './SoundModule/Effectors/NoiseGate'; import type { NoiseSuppressorParams } from './SoundModule/Effectors/NoiseSuppressor'; import type { OverDriveParams } from './SoundModule/Effectors/OverDrive'; import type { PannerParams, Position3D } from './SoundModule/Effectors/Panner'; import type { PhaserParams, PhaserType, PhaserNumberOfStages, PhaserFilterConnectionType } from './SoundModule/Effectors/Phaser'; import type { PitchShifterParams } from './SoundModule/Effectors/PitchShifter'; import type { PreampParams, PreampType, PreampCurve } from './SoundModule/Effectors/Preamp'; import type { Marshall, MarshallParams, PreEqualizerParams as MarshallPreEqualizerParams, PostEqualizerParams as MarshallPostEqualizerParams } from './SoundModule/Effectors/Preamps/Marshall'; import type { MesaBoogie, MesaBoogieParams, PreEqualizerParams as MesaBoogiePreEqualizerParams, PostEqualizerParams as MesaBoogiePostEqualizerParams } from './SoundModule/Effectors/Preamps/MesaBoogie'; import type { Fender, FenderParams, PreEqualizerParams as FenderPreEqualizerParams, PostFilterParams as FenderPostFilterParams, SpeakerInches as FenderSpeakerInches } from './SoundModule/Effectors/Preamps/Fender'; import type { CabinetParams } from './SoundModule/Effectors/Preamps/Cabinet'; import type { ReverbParams, ReverbErrorText } from './SoundModule/Effectors/Reverb'; import type { RingmodulatorParams } from './SoundModule/Effectors/Ringmodulator'; import type { SlicerParams, SlicerType } from './SoundModule/Effectors/Slicer'; import type { StereoParams } from './SoundModule/Effectors/Stereo'; import type { TremoloParams, TremoloType } from './SoundModule/Effectors/Tremolo'; import type { VocalCancelerParams, VocalCancelerAlgorithm } from './SoundModule/Effectors/VocalCanceler'; import type { WahParams } from './SoundModule/Effectors/Wah'; import type { PitchChar, ConvertedTime, FileEvent, FileReaderType, FileReaderErrorText, WindowFunction } from './XSound'; import type { FrozenArray, Inputs, Outputs, Parameters } from './worklet'; import './types'; import { SoundModuleProcessor } from './SoundModule'; import { OscillatorModule, OscillatorModuleProcessor } from './OscillatorModule'; import { OneshotModule, OneshotModuleProcessor } from './OneshotModule'; import { NoiseModule, NoiseModuleProcessor } from './NoiseModule'; import { AudioModule, AudioModuleProcessor } from './AudioModule'; import { MediaModule, MediaModuleProcessor } from './MediaModule'; import { StreamModule, StreamModuleProcessor } from './StreamModule'; import { ProcessorModule } from './ProcessorModule'; import { MixerModule, MixerModuleProcessor } from './MixerModule'; import { MIDI } from './MIDI'; import { MML } from './MML'; import { Analyser } from './SoundModule/Analyser'; import { Recorder, RecorderProcessor } from './SoundModule/Recorder'; import { Effector } from './SoundModule/Effectors/Effector'; import { StereoEffector } from './SoundModule/Effectors/StereoEffector'; import { Autopanner } from './SoundModule/Effectors/Autopanner'; import { BitCrusher } from './SoundModule/Effectors/BitCrusher'; import { Chorus } from './SoundModule/Effectors/Chorus'; import { Compressor } from './SoundModule/Effectors/Compressor'; import { Delay } from './SoundModule/Effectors/Delay'; import { Equalizer } from './SoundModule/Effectors/Equalizer'; import { Filter } from './SoundModule/Effectors/Filter'; import { Flanger } from './SoundModule/Effectors/Flanger'; import { Fuzz } from './SoundModule/Effectors/Fuzz'; import { Harmonizer } from './SoundModule/Effectors/Harmonizer'; import { Listener } from './SoundModule/Effectors/Listener'; import { NoiseGate } from './SoundModule/Effectors/NoiseGate'; import { NoiseSuppressor } from './SoundModule/Effectors/NoiseSuppressor'; import { OverDrive } from './SoundModule/Effectors/OverDrive'; import { Panner } from './SoundModule/Effectors/Panner'; import { Phaser } from './SoundModule/Effectors/Phaser'; import { PitchShifter } from './SoundModule/Effectors/PitchShifter'; import { Preamp } from './SoundModule/Effectors/Preamp'; import { Reverb } from './SoundModule/Effectors/Reverb'; import { Ringmodulator } from './SoundModule/Effectors/Ringmodulator'; import { Slicer } from './SoundModule/Effectors/Slicer'; import { Stereo } from './SoundModule/Effectors/Stereo'; import { Tremolo } from './SoundModule/Effectors/Tremolo'; import { VocalCanceler } from './SoundModule/Effectors/VocalCanceler'; import { Wah } from './SoundModule/Effectors/Wah'; import { NoiseGateProcessor } from './SoundModule/Effectors/AudioWorkletProcessors/NoiseGateProcessor'; import { NoiseSuppressorProcessor } from './SoundModule/Effectors/AudioWorkletProcessors/NoiseSuppressorProcessor'; import { PitchShifterProcessor } from './SoundModule/Effectors/AudioWorkletProcessors/PitchShifterProcessor'; import { VocalCancelerProcessor } from './SoundModule/Effectors/AudioWorkletProcessors/VocalCancelerProcessor'; export type Source = OscillatorModule | OneshotModule | NoiseModule | AudioModule | MediaModule | StreamModule | ProcessorModule | MixerModule | Analyser | MIDI | MML; export type SourceName = 'oscillator' | 'oneshot' | 'noise' | 'audio' | 'media' | 'stream' | 'processor' | 'mixer' | 'analyser' | 'midi' | 'mml'; declare const sources: { [sourceName: string]: Source | null; }; /** * This function gets instance of `Source`. * This functions is overloaded for type interface and type check. * @param {SourceName|string} sourceName This argument selects instance for sound source. * @return {Source|null} */ declare function XSound(sourceName: 'oscillator'): OscillatorModule; declare function XSound(sourceName: 'oneshot'): OneshotModule; declare function XSound(sourceName: 'noise'): NoiseModule; declare function XSound(sourceName: 'audio'): AudioModule; declare function XSound(sourceName: 'media'): MediaModule; declare function XSound(sourceName: 'stream'): StreamModule; declare function XSound(sourceName: 'processor'): ProcessorModule; declare function XSound(sourceName: 'mixer'): MixerModule; declare function XSound(sourceName: 'analyser'): Analyser; declare function XSound(sourceName: 'midi'): MIDI; declare function XSound(sourceName: 'mml'): MML; declare namespace XSound { var SAMPLE_RATE: number; var EQUAL_TEMPERAMENT: 12; var FREQUENCY_RATIO: 1.0594630943592953; var MIN_A: 27.5; var QUARTER_NOT: 4; var HALF_UP: "+"; var HALF_DOWN: "-"; var DOT: "."; var isPitchChar: typeof import("./XSound").isPitchChar; var computeIndex: typeof import("./XSound").computeIndex; var computeHz: typeof import("./XSound").computeHz; var computeFrequency: typeof import("./XSound").computeFrequency; var computePlaybackRate: typeof import("./XSound").computePlaybackRate; var windowFunction: typeof import("./XSound").windowFunction; var fft: typeof import("./XSound").fft; var ifft: typeof import("./XSound").ifft; var spectrum: typeof import("./XSound").spectrum; var toDecibels: typeof import("./XSound").toDecibels; var fromDecibels: typeof import("./XSound").fromDecibels; var ajax: typeof import("./XSound").ajax; var convertTime: typeof import("./XSound").convertTime; var decode: typeof import("./XSound").decode; var permission: typeof import("./XSound").permission; var requestFullscreen: typeof import("./XSound").requestFullscreen; var exitFullscreen: typeof import("./XSound").exitFullscreen; var read: typeof import("./XSound").read; var drop: typeof import("./XSound").drop; var file: typeof import("./XSound").file; var toFrequencies: typeof import("./XSound").toFrequencies; var toTextFile: typeof import("./XSound").toTextFile; var Analyser: typeof import("./main").Analyser; var Recorder: typeof import("./main").Recorder; var Effector: typeof import("./main").Effector; var StereoEffector: typeof import("./main").StereoEffector; var Autopanner: typeof import("./main").Autopanner; var BitCrusher: typeof import("./main").BitCrusher; var Chorus: typeof import("./main").Chorus; var Compressor: typeof import("./main").Compressor; var Delay: typeof import("./main").Delay; var Equalizer: typeof import("./main").Equalizer; var Filter: typeof import("./main").Filter; var Flanger: typeof import("./main").Flanger; var Fuzz: typeof import("./main").Fuzz; var Harmonizer: typeof import("./main").Harmonizer; var Listener: typeof import("./main").Listener; var NoiseGate: typeof import("./main").NoiseGate; var NoiseSuppressor: typeof import("./main").NoiseSuppressor; var OverDrive: typeof import("./main").OverDrive; var Panner: typeof import("./main").Panner; var Phaser: typeof import("./main").Phaser; var PitchShifter: typeof import("./main").PitchShifter; var Preamp: typeof import("./main").Preamp; var Reverb: typeof import("./main").Reverb; var Ringmodulator: typeof import("./main").Ringmodulator; var Slicer: typeof import("./main").Slicer; var Stereo: typeof import("./main").Stereo; var Tremolo: typeof import("./main").Tremolo; var VocalCanceler: typeof import("./main").VocalCanceler; var Wah: typeof import("./main").Wah; var setup: () => Promise; var promise: () => Promise; var clone: () => { (sourceName: "oscillator"): OscillatorModule; (sourceName: "oneshot"): OneshotModule; (sourceName: "noise"): NoiseModule; (sourceName: "audio"): AudioModule; (sourceName: "media"): MediaModule; (sourceName: "stream"): StreamModule; (sourceName: "processor"): ProcessorModule; (sourceName: "mixer"): MixerModule; (sourceName: "analyser"): Analyser; (sourceName: "midi"): MIDI; (sourceName: "mml"): MML; free(unusedSources: Source[]): void; }; var free: (unusedSources: Source[]) => void; var noConflict: (deep: boolean) => typeof XSound; var get: () => AudioContext; var getCurrentTime: () => number; } export type { SoundModule, SoundModuleParams, SoundModuleProcessor, Module, ModuleName, OscillatorModule, OscillatorModuleParams, Glide, GlideParams, GlideType, Oscillator, OscillatorParams, OscillatorCustomType, OscillatorModuleProcessor, OneshotModule, OneshotModuleParams, OneshotSetting, OneshotSettings, OneshotErrorText, OneshotModuleProcessor, NoiseModule, NoiseModuleParams, NoiseType, NoiseModuleProcessor, AudioModule, AudioModuleParams, AudioBufferSprite, AudioModuleProcessor, MediaModule, MediaModuleParams, MediaModuleProcessor, StreamModule, StreamModuleParams, StreamModuleProcessor, MediaStreamTrackAudioSourceNode, ProcessorModule, MixerModule, MixerModuleProcessor, MIDI, MML, Part, Sequence, MMLSyntaxError, Tree, TokenType, TokenMap, Token, MMLScheduleWorkerMessageEventType, MMLScheduleWorkerMessageEventData, Analyser, AnalyserParams, Domain, DataType, FFTSize, Color, Visualizer, VisualizerParams, GraphicsApi, Gradient, Gradients, Shape, Font, GraphicsStyles, SpectrumScale, TimeOverview, TimeOverviewParams, MouseEventTypes, DragMode, DragCallbackFunction, CurrentTimeStyles, Time, TimeParams, FFT, FFTParams, Spectrogram, SpectrogramParams, Spectrum, SpectrumParams, AmplitudeSpectrum, AmplitudeSpectrumParams, AmplitudeSpectrumUnit, PhaseSpectrum, PhaseSpectrumParams, PhaseSpectrumUnit, Recorder, RecorderParams, RecordType, QuantizationBit, WaveExportType, Frame, Channel, RecorderProcessor, RecorderProcessorMessageEventData, Effector, StereoEffector, Autopanner, AutopannerParams, BitCrusher, BitCrusherParams, Chorus, ChorusParams, ChorusType, Compressor, CompressorParams, Delay, DelayParams, DelayType, EnvelopeGenerator, EnvelopeGeneratorParams, Equalizer, EqualizerParams, Filter, FilterParams, Flanger, FlangerParams, FlangerType, Fuzz, FuzzParams, Harmonizer, HarmonizerParams, HarmonizerType, HarmonizerMode, Listener, ListenerParams, NoiseGate, NoiseGateParams, NoiseGateProcessor, NoiseSuppressor, NoiseSuppressorParams, NoiseSuppressorProcessor, OverDrive, OverDriveParams, Panner, PannerParams, Position3D, Phaser, PhaserParams, PhaserType, PhaserNumberOfStages, PhaserFilterConnectionType, PitchShifter, PitchShifterParams, PitchShifterProcessor, Preamp, PreampParams, PreampType, PreampCurve, Marshall, MarshallParams, MarshallPreEqualizerParams, MarshallPostEqualizerParams, MesaBoogie, MesaBoogieParams, MesaBoogiePreEqualizerParams, MesaBoogiePostEqualizerParams, Fender, FenderParams, FenderPreEqualizerParams, FenderPostFilterParams, FenderSpeakerInches, CabinetParams, Reverb, ReverbParams, ReverbErrorText, Ringmodulator, RingmodulatorParams, Slicer, SlicerParams, SlicerType, Stereo, StereoParams, Tremolo, TremoloParams, TremoloType, VocalCanceler, VocalCancelerParams, VocalCancelerAlgorithm, VocalCancelerProcessor, Wah, WahParams, PitchChar, ConvertedTime, FileEvent, FileReaderType, FileReaderErrorText, WindowFunction, FrozenArray, Inputs, Outputs, Parameters }; export { XSound, XSound as X }; //# sourceMappingURL=main.d.ts.map