Classes
Namespaces
Members
- 
    static,constantVowelWorm.AUDIO
- 
    
    Representative of the current mode VowelWorm is in. In this case, an audio element
- 
    static,constantVowelWorm.DEFAULT_MAX_FORMANT_CHILDnumber
- 
    
    The maximum formant expected to be found for a female speaker
- 
    static,constantVowelWorm.DEFAULT_MAX_FORMANT_FEMALEnumber
- 
    
    The maximum formant expected to be found for a female speaker
- 
    static,constantVowelWorm.DEFAULT_MAX_FORMANT_MALEnumber
- 
    
    The maximum formant expected to be found for a male speaker
- 
    static,constantVowelWorm.HANNING_SHIFTnumber
- 
    
    The amount the Hanning window needs to be shifted to line up correctly.- See:
- TODO
- 
        - This should be proportional to the window size.
 
 
- 
    static,constantVowelWorm.REMOTE_URL
- 
    
    Representative of the current mode VowelWorm is in. In this case, a remote URL turned into a source node
- 
    static,constantVowelWorm.STREAM
- 
    
    Representative of the current mode VowelWorm is in. In this case, a media stream
- 
    static,constantVowelWorm.VIDEO
- 
    
    Representative of the current mode VowelWorm is in. In this case, a video element
Methods
- 
    staticVowelWorm.convolve(m, y){Array.<number>}
- 
    
    
    Performs a convolution on two arraysName Type Description mArray.<number> yArray.<number> 
- 
    staticVowelWorm.decibelsToLinear(dB){number}
- 
    
    
    Returns the linear magnitude of the given decibels value.Name Type Description dBnumber the value in dB to convert - TODO
- 
        - — If we can find a generic representation somewhere of this algorithm, we can remove this license
 
 Returns:linear magnitude
 
- 
    staticVowelWorm.hann(vals, window_size){Array.<number>}
- 
    
    
    Applies a hanning window to the given dataset, returning a new array. You may want to shift the values to get them to line up with the FFT.Name Type Description valsArray.<number> The values to change window_sizenumber the size of the window Returns:new values
 ExampleVowelWorm.hann([...], 75).shift(VowelWorm.HANNING_SHIFT);
- 
    staticVowelWorm.module(name, callback)
- 
    
    
    Adds a module to instances of VowelWorm.instance, as called by `new VowelWorm.instance(...);`Name Type Description namestring the name of module to add callbackVowelWorm~createModule Called if successful. `this` references the module, so you can add properties to it. The instance itself is passed as the only argument, for easy access to core functions. - See:
- 
        - attachModuleToInstance
- modules
- instances
 
 Throws:An Error when trying to create a module with a pre-existing property name
- 
    staticVowelWorm.removeModule(name)
- 
    
    
    Removes a module from all current and future VowelWorm instances. Used primarily for testing purposes.Name Type Description namestring The name of the module to remove 
- 
    staticVowelWorm.savitzkyGolay(y, window_size, order){Array.<number>}
- 
    
    
    Applies the Savitsky-Golay filter to the given array uses numeric javascript Adapted from http://wiki.scipy.org/Cookbook/SavitzkyGolayName Type Description yArray.<number> The values to smooth window_sizenumber The window size. ordernumber The...? TODO Returns:plotted gives you a smooth curve version of an parameter array
 
Type Definitions
- 
    createModule(instance)
- 
    
    
    Callback used by VowelWorm.moduleName Type Description instancewindow.VowelWorm.instance