EZ Web Audio / ControlTypeMap
Interface: ControlTypeMap
Defined in: controllers/base-param-controller.ts:24
Map of built-in control type names.
Downstream users can extend the set of valid control types via module augmentation. The ControlType union is derived from this map and automatically includes any new entries.
Example
typescript
// In your project's type declarations (e.g., global.d.ts):
declare module 'ez-web-audio' {
interface ControlTypeMap {
customParam: 'customParam'
}
}
// Now ControlType includes 'customParam'
sound.update('customParam').to(0.5).as('ratio')Note: The runtime _update() switch-case does not handle custom types. Users extending ControlType must also provide custom controller logic.
Properties
detune
detune:
"detune"
Defined in: controllers/base-param-controller.ts:27
frequency
frequency:
"frequency"
Defined in: controllers/base-param-controller.ts:25
gain
gain:
"gain"
Defined in: controllers/base-param-controller.ts:26
pan
pan:
"pan"
Defined in: controllers/base-param-controller.ts:28