In the Web Audio API specification, the BiquadFilterNode interface defines filter type constants: https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#BiquadFilterNode-section These need to be exposed to JavaScript in the IDL.
Created attachment 115861 [details] Possible implementation A possible patch for BiquadFilterNode to expose the filter constants in IDL. This was tested on chromium and it works. Did not test with Safari.
That patch isn't needed. If filter is a BiquadFilterNode, then filter.LOWPASS is 0, filter.HIGHPASS is 1, and so on.
filter constants are already defined - closing