react-audio-wavekit 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/node_modules/automation-events/build/es2019/classes/automation-event-list.cjs +137 -0
- package/dist/node_modules/automation-events/build/es2019/classes/automation-event-list.js +137 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-and-hold-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-and-hold-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-scheduled-values-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-scheduled-values-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-exponential-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-exponential-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-exponential-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-exponential-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-linear-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-linear-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-linear-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-linear-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-target-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-target-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-curve-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-curve-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-end-time-and-value-of-previous-automation-event.cjs +16 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-end-time-and-value-of-previous-automation-event.js +16 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-event-time.cjs +16 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-event-time.js +16 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-exponential-ramp-value-at-time.cjs +12 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-exponential-ramp-value-at-time.js +12 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-linear-ramp-value-at-time.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-linear-ramp-value-at-time.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-target-value-at-time.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-target-value-at-time.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.cjs +8 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.js +8 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-of-automation-event-at-index-at-time.cjs +11 -0
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-of-automation-event-at-index-at-time.js +11 -0
- package/dist/node_modules/automation-events/build/es2019/functions/interpolate-value.cjs +11 -0
- package/dist/node_modules/automation-events/build/es2019/functions/interpolate-value.js +11 -0
- package/dist/node_modules/automation-events/build/es2019/guards/any-ramp-to-value-automation-event.cjs +8 -0
- package/dist/node_modules/automation-events/build/es2019/guards/any-ramp-to-value-automation-event.js +8 -0
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-and-hold-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-and-hold-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-scheduled-values-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-scheduled-values-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/exponential-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/exponential-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/linear-ramp-to-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/linear-ramp-to-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-target-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-target-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-automation-event.js +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-curve-automation-event.cjs +6 -0
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-curve-automation-event.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/constants.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/constants.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/abort-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/abort-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-active-input-connection-to-audio-node.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-active-input-connection-to-audio-node.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-node-connections.cjs +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-node-connections.js +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-param-connections.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-param-connections.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-worklet-module.cjs +115 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-worklet-module.js +115 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-connection-to-audio-node.cjs +60 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-connection-to-audio-node.js +60 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-passive-input-connection-to-audio-node.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-passive-input-connection-to-audio-node.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-silent-connection.cjs +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-silent-connection.js +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-constructor.cjs +73 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-constructor.js +73 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-renderer-factory.cjs +37 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-renderer-factory.js +37 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-constructor.cjs +37 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-constructor.js +37 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-constructor.cjs +103 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-constructor.js +103 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-renderer-factory.cjs +58 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-renderer-factory.js +58 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-constructor.cjs +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-constructor.js +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-renderer-factory.cjs +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-renderer-factory.js +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-listener-factory.cjs +220 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-listener-factory.js +220 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-node-constructor.cjs +274 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-node-constructor.js +274 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.cjs +152 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.js +152 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.cjs +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.js +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/base-audio-context-constructor.cjs +83 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/base-audio-context-constructor.js +83 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-constructor.cjs +63 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-constructor.js +63 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-renderer-factory.cjs +49 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-renderer-factory.js +49 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/cache-test-result.cjs +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/cache-test-result.js +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-constructor.cjs +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-constructor.js +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-renderer-factory.cjs +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-renderer-factory.js +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-constructor.cjs +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-constructor.js +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-renderer-factory.cjs +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-renderer-factory.js +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connect-audio-param.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connect-audio-param.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connected-native-audio-buffer-source-node-factory.cjs +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connected-native-audio-buffer-source-node-factory.js +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-constructor.cjs +63 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-constructor.js +63 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-renderer-factory.cjs +53 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-renderer-factory.js +53 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convert-number-to-unsigned-long.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convert-number-to-unsigned-long.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-constructor.cjs +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-constructor.js +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-renderer-factory.cjs +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-renderer-factory.js +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/create-native-offline-audio-context.cjs +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/create-native-offline-audio-context.js +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/data-clone-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/data-clone-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decode-audio-data.cjs +59 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decode-audio-data.js +59 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decrement-cycle-counter.cjs +32 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decrement-cycle-counter.js +32 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-constructor.cjs +27 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-constructor.js +27 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-renderer-factory.cjs +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-renderer-factory.js +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delete-active-input-connection-to-audio-node.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delete-active-input-connection-to-audio-node.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/detect-cycles.cjs +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/detect-cycles.js +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-constructor.cjs +80 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-constructor.js +80 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-renderer-factory.cjs +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-renderer-factory.js +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/encoding-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/encoding-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/evaluate-source.cjs +45 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/evaluate-source.js +45 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/event-target-constructor.cjs +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/event-target-constructor.js +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/expose-current-frame-and-current-time.cjs +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/expose-current-frame-and-current-time.js +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/fetch-source.cjs +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/fetch-source.js +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-constructor.cjs +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-constructor.js +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-renderer-factory.cjs +39 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-renderer-factory.js +39 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-renderer.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-renderer.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-tail-time.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-tail-time.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-param-renderer.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-param-renderer.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-native-context.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-native-context.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-or-create-backup-offline-audio-context.cjs +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-or-create-backup-offline-audio-context.js +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-unrendered-audio-worklet-nodes.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-unrendered-audio-worklet-nodes.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-constructor.cjs +27 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-constructor.js +27 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-renderer-factory.cjs +93 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-renderer-factory.js +93 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/increment-cycle-counter-factory.cjs +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/increment-cycle-counter-factory.js +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/index-size-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/index-size-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-access-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-access-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-state-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-state-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-context.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-context.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-node.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-node.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-param.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-param.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-context.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-context.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-offline-audio-context.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-offline-audio-context.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-secure-context.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-secure-context.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/minimal-base-audio-context-constructor.cjs +43 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/minimal-base-audio-context-constructor.js +43 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/monitor-connections.cjs +59 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/monitor-connections.js +59 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-analyser-node-factory.cjs +24 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-analyser-node-factory.js +24 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-constructor.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-constructor.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-source-node-factory.cjs +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-source-node-factory.js +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-context-constructor.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-context-constructor.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-destination-node.cjs +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-destination-node.js +51 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-worklet-node-constructor.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-worklet-node-constructor.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-biquad-filter-node.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-biquad-filter-node.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-merger-node-factory.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-merger-node-factory.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-splitter-node.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-splitter-node.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-factory.cjs +25 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-factory.js +25 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-faker-factory.cjs +88 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-faker-factory.js +88 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-convolver-node-factory.cjs +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-convolver-node-factory.js +34 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-delay-node.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-delay-node.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-dynamics-compressor-node-factory.cjs +23 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-dynamics-compressor-node-factory.js +23 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-gain-node.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-gain-node.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-factory.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-factory.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-faker-factory.cjs +139 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-faker-factory.js +139 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-offline-audio-context-constructor.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-offline-audio-context-constructor.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-oscillator-node-factory.cjs +32 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-oscillator-node-factory.js +32 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-factory.cjs +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-factory.js +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-faker-factory.cjs +277 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-faker-factory.js +277 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-periodic-wave-factory.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-periodic-wave-factory.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-script-processor-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-script-processor-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-factory.cjs +28 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-factory.js +28 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-faker-factory.cjs +244 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-faker-factory.js +244 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-factory.cjs +48 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-factory.js +48 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-faker-factory.cjs +153 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-faker-factory.js +153 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/not-supported-error.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/not-supported-error.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/offline-audio-context-constructor.cjs +71 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/offline-audio-context-constructor.js +71 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-constructor.cjs +90 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-constructor.js +90 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-renderer-factory.cjs +62 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-renderer-factory.js +62 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-constructor.cjs +109 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-constructor.js +109 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-renderer-factory.cjs +166 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-renderer-factory.js +166 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/periodic-wave-constructor.cjs +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/periodic-wave-constructor.js +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.cjs +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.js +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-node.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-node.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-param.cjs +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-param.js +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-native-offline-audio-context.cjs +36 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-native-offline-audio-context.js +36 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/set-audio-node-tail-time.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/set-audio-node-tail-time.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-constructor.cjs +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-constructor.js +29 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-renderer-factory.cjs +44 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-renderer-factory.js +44 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-buffer-constructor-support.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-buffer-constructor-support.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-worklet-processor-post-message-support.cjs +35 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-worklet-processor-post-message-support.js +35 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-offline-audio-context-current-time-support.cjs +24 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-offline-audio-context-current-time-support.js +24 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-constructor.cjs +49 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-constructor.js +49 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-renderer-factory.cjs +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-renderer-factory.js +40 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/window.cjs +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/window.js +4 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.cjs +25 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.js +25 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods.cjs +33 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods.js +33 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.cjs +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.js +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-channel-merger-node.cjs +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-channel-merger-node.js +30 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/globals.cjs +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/globals.js +20 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-buffer-source-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-buffer-source-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node-output-connection.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node-output-connection.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-worklet-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-worklet-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/biquad-filter-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/biquad-filter-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/constant-source-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/constant-source-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/delay-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/delay-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/gain-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/gain-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node-faker.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node-faker.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/oscillator-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/oscillator-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/stereo-panner-node.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/stereo-panner-node.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-active-input-connection-to-audio-param.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-active-input-connection-to-audio-param.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-passive-input-connection-to-audio-param.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-passive-input-connection-to-audio-param.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-audio-param-value.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-audio-param-value.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-option.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-option.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-options.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-options.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/compute-buffer-size.cjs +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/compute-buffer-size.js +9 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/connect-native-audio-node-to-native-audio-node.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/connect-native-audio-node-to-native-audio-node.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-active-audio-node-input-connections.cjs +35 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-active-audio-node-input-connections.js +35 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-audio-graph.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-audio-graph.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection-to-audio-param.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection-to-audio-param.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-event-listeners-of-audio-node.cjs +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-event-listeners-of-audio-node.js +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-node.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-node.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-param.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-param.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/detach-array-buffer.cjs +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/detach-array-buffer.js +21 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/disconnect-native-audio-node-from-native-audio-node.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/disconnect-native-audio-node-from-native-audio-node.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/filter-buffer.cjs +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/filter-buffer.js +26 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-node-connections.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-node-connections.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-param-connections.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-param-connections.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-event-listeners-of-audio-node.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-event-listeners-of-audio-node.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-first-sample.cjs +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-first-sample.js +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-node.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-node.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-param.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-param.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-value-for-key.cjs +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-value-for-key.js +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/insert-element-in-set.cjs +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/insert-element-in-set.js +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/intercept-connections.cjs +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/intercept-connections.js +8 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-active-audio-node.cjs +5 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-active-audio-node.js +5 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-constructible.cjs +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-constructible.js +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-dc-curve.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-dc-curve.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-owned-by-context.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-owned-by-context.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-part-of-a-cycle.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-part-of-a-cycle.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-passive-audio-node.cjs +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-passive-audio-node.js +7 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/overwrite-accessors.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/overwrite-accessors.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/pick-element-from-set.cjs +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/pick-element-from-set.js +15 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-channel-splitter-options.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-channel-splitter-options.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-periodic-wave-options.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-periodic-wave-options.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-active.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-active.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive-when-necessary.cjs +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive-when-necessary.js +10 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-value-at-time-until-possible.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-value-at-time-until-possible.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/split-import-statements.cjs +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/split-import-statements.js +17 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-analyser-node-get-float-time-domain-data-method-support.cjs +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-analyser-node-get-float-time-domain-data-method-support.js +6 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.cjs +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.js +11 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-node-disconnect-method-support.cjs +36 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-node-disconnect-method-support.js +36 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.cjs +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.js +12 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-promise-support.cjs +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-promise-support.js +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/visit-each-audio-node-once.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/visit-each-audio-node-once.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-analyser-node-get-float-time-domain-data-method.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-analyser-node-get-float-time-domain-data-method.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-get-channel-data-method.cjs +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-get-channel-data-method.js +18 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-consecutive-calls.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-consecutive-calls.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-node-disconnect-method.cjs +61 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-node-disconnect-method.js +61 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.cjs +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.js +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.cjs +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.js +13 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-channel-splitter-node.cjs +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-channel-splitter-node.js +31 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-event-listener.cjs +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-event-listener.js +16 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-iir-filter-node-get-frequency-response-method.cjs +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-iir-filter-node-get-frequency-response-method.js +14 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/module.cjs +298 -0
- package/dist/node_modules/standardized-audio-context/build/es2019/module.js +298 -0
- package/dist/waveform/util-audio-decoder.cjs +2 -1
- package/dist/waveform/util-audio-decoder.js +2 -1
- package/package.json +3 -2
package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.cjs
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const automationEventList = require("../../../../automation-events/build/es2019/classes/automation-event-list.cjs");
|
|
4
|
+
const createAudioParamFactory = (addAudioParamConnections, audioParamAudioNodeStore, audioParamStore, createAudioParamRenderer, createCancelAndHoldAutomationEvent, createCancelScheduledValuesAutomationEvent, createExponentialRampToValueAutomationEvent, createLinearRampToValueAutomationEvent, createSetTargetAutomationEvent, createSetValueAutomationEvent, createSetValueCurveAutomationEvent, nativeAudioContextConstructor, setValueAtTimeUntilPossible) => {
|
|
5
|
+
return (audioNode, isAudioParamOfOfflineAudioContext, nativeAudioParam, maxValue = null, minValue = null) => {
|
|
6
|
+
const defaultValue = nativeAudioParam.value;
|
|
7
|
+
const automationEventList$1 = new automationEventList.AutomationEventList(defaultValue);
|
|
8
|
+
const audioParamRenderer = isAudioParamOfOfflineAudioContext ? createAudioParamRenderer(automationEventList$1) : null;
|
|
9
|
+
const audioParam = {
|
|
10
|
+
get defaultValue() {
|
|
11
|
+
return defaultValue;
|
|
12
|
+
},
|
|
13
|
+
get maxValue() {
|
|
14
|
+
return maxValue === null ? nativeAudioParam.maxValue : maxValue;
|
|
15
|
+
},
|
|
16
|
+
get minValue() {
|
|
17
|
+
return minValue === null ? nativeAudioParam.minValue : minValue;
|
|
18
|
+
},
|
|
19
|
+
get value() {
|
|
20
|
+
return nativeAudioParam.value;
|
|
21
|
+
},
|
|
22
|
+
set value(value) {
|
|
23
|
+
nativeAudioParam.value = value;
|
|
24
|
+
audioParam.setValueAtTime(value, audioNode.context.currentTime);
|
|
25
|
+
},
|
|
26
|
+
cancelAndHoldAtTime(cancelTime) {
|
|
27
|
+
if (typeof nativeAudioParam.cancelAndHoldAtTime === "function") {
|
|
28
|
+
if (audioParamRenderer === null) {
|
|
29
|
+
automationEventList$1.flush(audioNode.context.currentTime);
|
|
30
|
+
}
|
|
31
|
+
automationEventList$1.add(createCancelAndHoldAutomationEvent(cancelTime));
|
|
32
|
+
nativeAudioParam.cancelAndHoldAtTime(cancelTime);
|
|
33
|
+
} else {
|
|
34
|
+
const previousLastEvent = Array.from(automationEventList$1).pop();
|
|
35
|
+
if (audioParamRenderer === null) {
|
|
36
|
+
automationEventList$1.flush(audioNode.context.currentTime);
|
|
37
|
+
}
|
|
38
|
+
automationEventList$1.add(createCancelAndHoldAutomationEvent(cancelTime));
|
|
39
|
+
const currentLastEvent = Array.from(automationEventList$1).pop();
|
|
40
|
+
nativeAudioParam.cancelScheduledValues(cancelTime);
|
|
41
|
+
if (previousLastEvent !== currentLastEvent && currentLastEvent !== void 0) {
|
|
42
|
+
if (currentLastEvent.type === "exponentialRampToValue") {
|
|
43
|
+
nativeAudioParam.exponentialRampToValueAtTime(currentLastEvent.value, currentLastEvent.endTime);
|
|
44
|
+
} else if (currentLastEvent.type === "linearRampToValue") {
|
|
45
|
+
nativeAudioParam.linearRampToValueAtTime(currentLastEvent.value, currentLastEvent.endTime);
|
|
46
|
+
} else if (currentLastEvent.type === "setValue") {
|
|
47
|
+
nativeAudioParam.setValueAtTime(currentLastEvent.value, currentLastEvent.startTime);
|
|
48
|
+
} else if (currentLastEvent.type === "setValueCurve") {
|
|
49
|
+
nativeAudioParam.setValueCurveAtTime(currentLastEvent.values, currentLastEvent.startTime, currentLastEvent.duration);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return audioParam;
|
|
54
|
+
},
|
|
55
|
+
cancelScheduledValues(cancelTime) {
|
|
56
|
+
if (audioParamRenderer === null) {
|
|
57
|
+
automationEventList$1.flush(audioNode.context.currentTime);
|
|
58
|
+
}
|
|
59
|
+
automationEventList$1.add(createCancelScheduledValuesAutomationEvent(cancelTime));
|
|
60
|
+
nativeAudioParam.cancelScheduledValues(cancelTime);
|
|
61
|
+
return audioParam;
|
|
62
|
+
},
|
|
63
|
+
exponentialRampToValueAtTime(value, endTime) {
|
|
64
|
+
if (value === 0) {
|
|
65
|
+
throw new RangeError();
|
|
66
|
+
}
|
|
67
|
+
if (!Number.isFinite(endTime) || endTime < 0) {
|
|
68
|
+
throw new RangeError();
|
|
69
|
+
}
|
|
70
|
+
const currentTime = audioNode.context.currentTime;
|
|
71
|
+
if (audioParamRenderer === null) {
|
|
72
|
+
automationEventList$1.flush(currentTime);
|
|
73
|
+
}
|
|
74
|
+
if (Array.from(automationEventList$1).length === 0) {
|
|
75
|
+
automationEventList$1.add(createSetValueAutomationEvent(defaultValue, currentTime));
|
|
76
|
+
nativeAudioParam.setValueAtTime(defaultValue, currentTime);
|
|
77
|
+
}
|
|
78
|
+
automationEventList$1.add(createExponentialRampToValueAutomationEvent(value, endTime));
|
|
79
|
+
nativeAudioParam.exponentialRampToValueAtTime(value, endTime);
|
|
80
|
+
return audioParam;
|
|
81
|
+
},
|
|
82
|
+
linearRampToValueAtTime(value, endTime) {
|
|
83
|
+
const currentTime = audioNode.context.currentTime;
|
|
84
|
+
if (audioParamRenderer === null) {
|
|
85
|
+
automationEventList$1.flush(currentTime);
|
|
86
|
+
}
|
|
87
|
+
if (Array.from(automationEventList$1).length === 0) {
|
|
88
|
+
automationEventList$1.add(createSetValueAutomationEvent(defaultValue, currentTime));
|
|
89
|
+
nativeAudioParam.setValueAtTime(defaultValue, currentTime);
|
|
90
|
+
}
|
|
91
|
+
automationEventList$1.add(createLinearRampToValueAutomationEvent(value, endTime));
|
|
92
|
+
nativeAudioParam.linearRampToValueAtTime(value, endTime);
|
|
93
|
+
return audioParam;
|
|
94
|
+
},
|
|
95
|
+
setTargetAtTime(target, startTime, timeConstant) {
|
|
96
|
+
if (audioParamRenderer === null) {
|
|
97
|
+
automationEventList$1.flush(audioNode.context.currentTime);
|
|
98
|
+
}
|
|
99
|
+
automationEventList$1.add(createSetTargetAutomationEvent(target, startTime, timeConstant));
|
|
100
|
+
nativeAudioParam.setTargetAtTime(target, startTime, timeConstant);
|
|
101
|
+
return audioParam;
|
|
102
|
+
},
|
|
103
|
+
setValueAtTime(value, startTime) {
|
|
104
|
+
if (audioParamRenderer === null) {
|
|
105
|
+
automationEventList$1.flush(audioNode.context.currentTime);
|
|
106
|
+
}
|
|
107
|
+
automationEventList$1.add(createSetValueAutomationEvent(value, startTime));
|
|
108
|
+
nativeAudioParam.setValueAtTime(value, startTime);
|
|
109
|
+
return audioParam;
|
|
110
|
+
},
|
|
111
|
+
setValueCurveAtTime(values, startTime, duration) {
|
|
112
|
+
const convertedValues = values instanceof Float32Array ? values : new Float32Array(values);
|
|
113
|
+
if (nativeAudioContextConstructor !== null && nativeAudioContextConstructor.name === "webkitAudioContext") {
|
|
114
|
+
const endTime = startTime + duration;
|
|
115
|
+
const sampleRate = audioNode.context.sampleRate;
|
|
116
|
+
const firstSample = Math.ceil(startTime * sampleRate);
|
|
117
|
+
const lastSample = Math.floor(endTime * sampleRate);
|
|
118
|
+
const numberOfInterpolatedValues = lastSample - firstSample;
|
|
119
|
+
const interpolatedValues = new Float32Array(numberOfInterpolatedValues);
|
|
120
|
+
for (let i = 0; i < numberOfInterpolatedValues; i += 1) {
|
|
121
|
+
const theoreticIndex = (convertedValues.length - 1) / duration * ((firstSample + i) / sampleRate - startTime);
|
|
122
|
+
const lowerIndex = Math.floor(theoreticIndex);
|
|
123
|
+
const upperIndex = Math.ceil(theoreticIndex);
|
|
124
|
+
interpolatedValues[i] = lowerIndex === upperIndex ? convertedValues[lowerIndex] : (1 - (theoreticIndex - lowerIndex)) * convertedValues[lowerIndex] + (1 - (upperIndex - theoreticIndex)) * convertedValues[upperIndex];
|
|
125
|
+
}
|
|
126
|
+
if (audioParamRenderer === null) {
|
|
127
|
+
automationEventList$1.flush(audioNode.context.currentTime);
|
|
128
|
+
}
|
|
129
|
+
automationEventList$1.add(createSetValueCurveAutomationEvent(interpolatedValues, startTime, duration));
|
|
130
|
+
nativeAudioParam.setValueCurveAtTime(interpolatedValues, startTime, duration);
|
|
131
|
+
const timeOfLastSample = lastSample / sampleRate;
|
|
132
|
+
if (timeOfLastSample < endTime) {
|
|
133
|
+
setValueAtTimeUntilPossible(audioParam, interpolatedValues[interpolatedValues.length - 1], timeOfLastSample);
|
|
134
|
+
}
|
|
135
|
+
setValueAtTimeUntilPossible(audioParam, convertedValues[convertedValues.length - 1], endTime);
|
|
136
|
+
} else {
|
|
137
|
+
if (audioParamRenderer === null) {
|
|
138
|
+
automationEventList$1.flush(audioNode.context.currentTime);
|
|
139
|
+
}
|
|
140
|
+
automationEventList$1.add(createSetValueCurveAutomationEvent(convertedValues, startTime, duration));
|
|
141
|
+
nativeAudioParam.setValueCurveAtTime(convertedValues, startTime, duration);
|
|
142
|
+
}
|
|
143
|
+
return audioParam;
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
audioParamStore.set(audioParam, nativeAudioParam);
|
|
147
|
+
audioParamAudioNodeStore.set(audioParam, audioNode);
|
|
148
|
+
addAudioParamConnections(audioParam, audioParamRenderer);
|
|
149
|
+
return audioParam;
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
exports.createAudioParamFactory = createAudioParamFactory;
|
package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.js
ADDED
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { AutomationEventList } from "../../../../automation-events/build/es2019/classes/automation-event-list.js";
|
|
2
|
+
const createAudioParamFactory = (addAudioParamConnections, audioParamAudioNodeStore, audioParamStore, createAudioParamRenderer, createCancelAndHoldAutomationEvent, createCancelScheduledValuesAutomationEvent, createExponentialRampToValueAutomationEvent, createLinearRampToValueAutomationEvent, createSetTargetAutomationEvent, createSetValueAutomationEvent, createSetValueCurveAutomationEvent, nativeAudioContextConstructor, setValueAtTimeUntilPossible) => {
|
|
3
|
+
return (audioNode, isAudioParamOfOfflineAudioContext, nativeAudioParam, maxValue = null, minValue = null) => {
|
|
4
|
+
const defaultValue = nativeAudioParam.value;
|
|
5
|
+
const automationEventList = new AutomationEventList(defaultValue);
|
|
6
|
+
const audioParamRenderer = isAudioParamOfOfflineAudioContext ? createAudioParamRenderer(automationEventList) : null;
|
|
7
|
+
const audioParam = {
|
|
8
|
+
get defaultValue() {
|
|
9
|
+
return defaultValue;
|
|
10
|
+
},
|
|
11
|
+
get maxValue() {
|
|
12
|
+
return maxValue === null ? nativeAudioParam.maxValue : maxValue;
|
|
13
|
+
},
|
|
14
|
+
get minValue() {
|
|
15
|
+
return minValue === null ? nativeAudioParam.minValue : minValue;
|
|
16
|
+
},
|
|
17
|
+
get value() {
|
|
18
|
+
return nativeAudioParam.value;
|
|
19
|
+
},
|
|
20
|
+
set value(value) {
|
|
21
|
+
nativeAudioParam.value = value;
|
|
22
|
+
audioParam.setValueAtTime(value, audioNode.context.currentTime);
|
|
23
|
+
},
|
|
24
|
+
cancelAndHoldAtTime(cancelTime) {
|
|
25
|
+
if (typeof nativeAudioParam.cancelAndHoldAtTime === "function") {
|
|
26
|
+
if (audioParamRenderer === null) {
|
|
27
|
+
automationEventList.flush(audioNode.context.currentTime);
|
|
28
|
+
}
|
|
29
|
+
automationEventList.add(createCancelAndHoldAutomationEvent(cancelTime));
|
|
30
|
+
nativeAudioParam.cancelAndHoldAtTime(cancelTime);
|
|
31
|
+
} else {
|
|
32
|
+
const previousLastEvent = Array.from(automationEventList).pop();
|
|
33
|
+
if (audioParamRenderer === null) {
|
|
34
|
+
automationEventList.flush(audioNode.context.currentTime);
|
|
35
|
+
}
|
|
36
|
+
automationEventList.add(createCancelAndHoldAutomationEvent(cancelTime));
|
|
37
|
+
const currentLastEvent = Array.from(automationEventList).pop();
|
|
38
|
+
nativeAudioParam.cancelScheduledValues(cancelTime);
|
|
39
|
+
if (previousLastEvent !== currentLastEvent && currentLastEvent !== void 0) {
|
|
40
|
+
if (currentLastEvent.type === "exponentialRampToValue") {
|
|
41
|
+
nativeAudioParam.exponentialRampToValueAtTime(currentLastEvent.value, currentLastEvent.endTime);
|
|
42
|
+
} else if (currentLastEvent.type === "linearRampToValue") {
|
|
43
|
+
nativeAudioParam.linearRampToValueAtTime(currentLastEvent.value, currentLastEvent.endTime);
|
|
44
|
+
} else if (currentLastEvent.type === "setValue") {
|
|
45
|
+
nativeAudioParam.setValueAtTime(currentLastEvent.value, currentLastEvent.startTime);
|
|
46
|
+
} else if (currentLastEvent.type === "setValueCurve") {
|
|
47
|
+
nativeAudioParam.setValueCurveAtTime(currentLastEvent.values, currentLastEvent.startTime, currentLastEvent.duration);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
return audioParam;
|
|
52
|
+
},
|
|
53
|
+
cancelScheduledValues(cancelTime) {
|
|
54
|
+
if (audioParamRenderer === null) {
|
|
55
|
+
automationEventList.flush(audioNode.context.currentTime);
|
|
56
|
+
}
|
|
57
|
+
automationEventList.add(createCancelScheduledValuesAutomationEvent(cancelTime));
|
|
58
|
+
nativeAudioParam.cancelScheduledValues(cancelTime);
|
|
59
|
+
return audioParam;
|
|
60
|
+
},
|
|
61
|
+
exponentialRampToValueAtTime(value, endTime) {
|
|
62
|
+
if (value === 0) {
|
|
63
|
+
throw new RangeError();
|
|
64
|
+
}
|
|
65
|
+
if (!Number.isFinite(endTime) || endTime < 0) {
|
|
66
|
+
throw new RangeError();
|
|
67
|
+
}
|
|
68
|
+
const currentTime = audioNode.context.currentTime;
|
|
69
|
+
if (audioParamRenderer === null) {
|
|
70
|
+
automationEventList.flush(currentTime);
|
|
71
|
+
}
|
|
72
|
+
if (Array.from(automationEventList).length === 0) {
|
|
73
|
+
automationEventList.add(createSetValueAutomationEvent(defaultValue, currentTime));
|
|
74
|
+
nativeAudioParam.setValueAtTime(defaultValue, currentTime);
|
|
75
|
+
}
|
|
76
|
+
automationEventList.add(createExponentialRampToValueAutomationEvent(value, endTime));
|
|
77
|
+
nativeAudioParam.exponentialRampToValueAtTime(value, endTime);
|
|
78
|
+
return audioParam;
|
|
79
|
+
},
|
|
80
|
+
linearRampToValueAtTime(value, endTime) {
|
|
81
|
+
const currentTime = audioNode.context.currentTime;
|
|
82
|
+
if (audioParamRenderer === null) {
|
|
83
|
+
automationEventList.flush(currentTime);
|
|
84
|
+
}
|
|
85
|
+
if (Array.from(automationEventList).length === 0) {
|
|
86
|
+
automationEventList.add(createSetValueAutomationEvent(defaultValue, currentTime));
|
|
87
|
+
nativeAudioParam.setValueAtTime(defaultValue, currentTime);
|
|
88
|
+
}
|
|
89
|
+
automationEventList.add(createLinearRampToValueAutomationEvent(value, endTime));
|
|
90
|
+
nativeAudioParam.linearRampToValueAtTime(value, endTime);
|
|
91
|
+
return audioParam;
|
|
92
|
+
},
|
|
93
|
+
setTargetAtTime(target, startTime, timeConstant) {
|
|
94
|
+
if (audioParamRenderer === null) {
|
|
95
|
+
automationEventList.flush(audioNode.context.currentTime);
|
|
96
|
+
}
|
|
97
|
+
automationEventList.add(createSetTargetAutomationEvent(target, startTime, timeConstant));
|
|
98
|
+
nativeAudioParam.setTargetAtTime(target, startTime, timeConstant);
|
|
99
|
+
return audioParam;
|
|
100
|
+
},
|
|
101
|
+
setValueAtTime(value, startTime) {
|
|
102
|
+
if (audioParamRenderer === null) {
|
|
103
|
+
automationEventList.flush(audioNode.context.currentTime);
|
|
104
|
+
}
|
|
105
|
+
automationEventList.add(createSetValueAutomationEvent(value, startTime));
|
|
106
|
+
nativeAudioParam.setValueAtTime(value, startTime);
|
|
107
|
+
return audioParam;
|
|
108
|
+
},
|
|
109
|
+
setValueCurveAtTime(values, startTime, duration) {
|
|
110
|
+
const convertedValues = values instanceof Float32Array ? values : new Float32Array(values);
|
|
111
|
+
if (nativeAudioContextConstructor !== null && nativeAudioContextConstructor.name === "webkitAudioContext") {
|
|
112
|
+
const endTime = startTime + duration;
|
|
113
|
+
const sampleRate = audioNode.context.sampleRate;
|
|
114
|
+
const firstSample = Math.ceil(startTime * sampleRate);
|
|
115
|
+
const lastSample = Math.floor(endTime * sampleRate);
|
|
116
|
+
const numberOfInterpolatedValues = lastSample - firstSample;
|
|
117
|
+
const interpolatedValues = new Float32Array(numberOfInterpolatedValues);
|
|
118
|
+
for (let i = 0; i < numberOfInterpolatedValues; i += 1) {
|
|
119
|
+
const theoreticIndex = (convertedValues.length - 1) / duration * ((firstSample + i) / sampleRate - startTime);
|
|
120
|
+
const lowerIndex = Math.floor(theoreticIndex);
|
|
121
|
+
const upperIndex = Math.ceil(theoreticIndex);
|
|
122
|
+
interpolatedValues[i] = lowerIndex === upperIndex ? convertedValues[lowerIndex] : (1 - (theoreticIndex - lowerIndex)) * convertedValues[lowerIndex] + (1 - (upperIndex - theoreticIndex)) * convertedValues[upperIndex];
|
|
123
|
+
}
|
|
124
|
+
if (audioParamRenderer === null) {
|
|
125
|
+
automationEventList.flush(audioNode.context.currentTime);
|
|
126
|
+
}
|
|
127
|
+
automationEventList.add(createSetValueCurveAutomationEvent(interpolatedValues, startTime, duration));
|
|
128
|
+
nativeAudioParam.setValueCurveAtTime(interpolatedValues, startTime, duration);
|
|
129
|
+
const timeOfLastSample = lastSample / sampleRate;
|
|
130
|
+
if (timeOfLastSample < endTime) {
|
|
131
|
+
setValueAtTimeUntilPossible(audioParam, interpolatedValues[interpolatedValues.length - 1], timeOfLastSample);
|
|
132
|
+
}
|
|
133
|
+
setValueAtTimeUntilPossible(audioParam, convertedValues[convertedValues.length - 1], endTime);
|
|
134
|
+
} else {
|
|
135
|
+
if (audioParamRenderer === null) {
|
|
136
|
+
automationEventList.flush(audioNode.context.currentTime);
|
|
137
|
+
}
|
|
138
|
+
automationEventList.add(createSetValueCurveAutomationEvent(convertedValues, startTime, duration));
|
|
139
|
+
nativeAudioParam.setValueCurveAtTime(convertedValues, startTime, duration);
|
|
140
|
+
}
|
|
141
|
+
return audioParam;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
audioParamStore.set(audioParam, nativeAudioParam);
|
|
145
|
+
audioParamAudioNodeStore.set(audioParam, audioNode);
|
|
146
|
+
addAudioParamConnections(audioParam, audioParamRenderer);
|
|
147
|
+
return audioParam;
|
|
148
|
+
};
|
|
149
|
+
};
|
|
150
|
+
export {
|
|
151
|
+
createAudioParamFactory
|
|
152
|
+
};
|
package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.cjs
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createAudioParamRenderer = (automationEventList) => {
|
|
4
|
+
return {
|
|
5
|
+
replay(audioParam) {
|
|
6
|
+
for (const automationEvent of automationEventList) {
|
|
7
|
+
if (automationEvent.type === "exponentialRampToValue") {
|
|
8
|
+
const { endTime, value } = automationEvent;
|
|
9
|
+
audioParam.exponentialRampToValueAtTime(value, endTime);
|
|
10
|
+
} else if (automationEvent.type === "linearRampToValue") {
|
|
11
|
+
const { endTime, value } = automationEvent;
|
|
12
|
+
audioParam.linearRampToValueAtTime(value, endTime);
|
|
13
|
+
} else if (automationEvent.type === "setTarget") {
|
|
14
|
+
const { startTime, target, timeConstant } = automationEvent;
|
|
15
|
+
audioParam.setTargetAtTime(target, startTime, timeConstant);
|
|
16
|
+
} else if (automationEvent.type === "setValue") {
|
|
17
|
+
const { startTime, value } = automationEvent;
|
|
18
|
+
audioParam.setValueAtTime(value, startTime);
|
|
19
|
+
} else if (automationEvent.type === "setValueCurve") {
|
|
20
|
+
const { duration, startTime, values } = automationEvent;
|
|
21
|
+
audioParam.setValueCurveAtTime(values, startTime, duration);
|
|
22
|
+
} else {
|
|
23
|
+
throw new Error("Can't apply an unknown automation.");
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
exports.createAudioParamRenderer = createAudioParamRenderer;
|
package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const createAudioParamRenderer = (automationEventList) => {
|
|
2
|
+
return {
|
|
3
|
+
replay(audioParam) {
|
|
4
|
+
for (const automationEvent of automationEventList) {
|
|
5
|
+
if (automationEvent.type === "exponentialRampToValue") {
|
|
6
|
+
const { endTime, value } = automationEvent;
|
|
7
|
+
audioParam.exponentialRampToValueAtTime(value, endTime);
|
|
8
|
+
} else if (automationEvent.type === "linearRampToValue") {
|
|
9
|
+
const { endTime, value } = automationEvent;
|
|
10
|
+
audioParam.linearRampToValueAtTime(value, endTime);
|
|
11
|
+
} else if (automationEvent.type === "setTarget") {
|
|
12
|
+
const { startTime, target, timeConstant } = automationEvent;
|
|
13
|
+
audioParam.setTargetAtTime(target, startTime, timeConstant);
|
|
14
|
+
} else if (automationEvent.type === "setValue") {
|
|
15
|
+
const { startTime, value } = automationEvent;
|
|
16
|
+
audioParam.setValueAtTime(value, startTime);
|
|
17
|
+
} else if (automationEvent.type === "setValueCurve") {
|
|
18
|
+
const { duration, startTime, values } = automationEvent;
|
|
19
|
+
audioParam.setValueCurveAtTime(values, startTime, duration);
|
|
20
|
+
} else {
|
|
21
|
+
throw new Error("Can't apply an unknown automation.");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export {
|
|
28
|
+
createAudioParamRenderer
|
|
29
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createBaseAudioContextConstructor = (addAudioWorkletModule, analyserNodeConstructor, audioBufferConstructor, audioBufferSourceNodeConstructor, biquadFilterNodeConstructor, channelMergerNodeConstructor, channelSplitterNodeConstructor, constantSourceNodeConstructor, convolverNodeConstructor, decodeAudioData, delayNodeConstructor, dynamicsCompressorNodeConstructor, gainNodeConstructor, iIRFilterNodeConstructor, minimalBaseAudioContextConstructor, oscillatorNodeConstructor, pannerNodeConstructor, periodicWaveConstructor, stereoPannerNodeConstructor, waveShaperNodeConstructor) => {
|
|
4
|
+
return class BaseAudioContext extends minimalBaseAudioContextConstructor {
|
|
5
|
+
constructor(_nativeContext, numberOfChannels) {
|
|
6
|
+
super(_nativeContext, numberOfChannels);
|
|
7
|
+
this._nativeContext = _nativeContext;
|
|
8
|
+
this._audioWorklet = addAudioWorkletModule === void 0 ? void 0 : {
|
|
9
|
+
addModule: (moduleURL, options) => {
|
|
10
|
+
return addAudioWorkletModule(this, moduleURL, options);
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
get audioWorklet() {
|
|
15
|
+
return this._audioWorklet;
|
|
16
|
+
}
|
|
17
|
+
createAnalyser() {
|
|
18
|
+
return new analyserNodeConstructor(this);
|
|
19
|
+
}
|
|
20
|
+
createBiquadFilter() {
|
|
21
|
+
return new biquadFilterNodeConstructor(this);
|
|
22
|
+
}
|
|
23
|
+
createBuffer(numberOfChannels, length, sampleRate) {
|
|
24
|
+
return new audioBufferConstructor({ length, numberOfChannels, sampleRate });
|
|
25
|
+
}
|
|
26
|
+
createBufferSource() {
|
|
27
|
+
return new audioBufferSourceNodeConstructor(this);
|
|
28
|
+
}
|
|
29
|
+
createChannelMerger(numberOfInputs = 6) {
|
|
30
|
+
return new channelMergerNodeConstructor(this, { numberOfInputs });
|
|
31
|
+
}
|
|
32
|
+
createChannelSplitter(numberOfOutputs = 6) {
|
|
33
|
+
return new channelSplitterNodeConstructor(this, { numberOfOutputs });
|
|
34
|
+
}
|
|
35
|
+
createConstantSource() {
|
|
36
|
+
return new constantSourceNodeConstructor(this);
|
|
37
|
+
}
|
|
38
|
+
createConvolver() {
|
|
39
|
+
return new convolverNodeConstructor(this);
|
|
40
|
+
}
|
|
41
|
+
createDelay(maxDelayTime = 1) {
|
|
42
|
+
return new delayNodeConstructor(this, { maxDelayTime });
|
|
43
|
+
}
|
|
44
|
+
createDynamicsCompressor() {
|
|
45
|
+
return new dynamicsCompressorNodeConstructor(this);
|
|
46
|
+
}
|
|
47
|
+
createGain() {
|
|
48
|
+
return new gainNodeConstructor(this);
|
|
49
|
+
}
|
|
50
|
+
createIIRFilter(feedforward, feedback) {
|
|
51
|
+
return new iIRFilterNodeConstructor(this, { feedback, feedforward });
|
|
52
|
+
}
|
|
53
|
+
createOscillator() {
|
|
54
|
+
return new oscillatorNodeConstructor(this);
|
|
55
|
+
}
|
|
56
|
+
createPanner() {
|
|
57
|
+
return new pannerNodeConstructor(this);
|
|
58
|
+
}
|
|
59
|
+
createPeriodicWave(real, imag, constraints = { disableNormalization: false }) {
|
|
60
|
+
return new periodicWaveConstructor(this, { ...constraints, imag, real });
|
|
61
|
+
}
|
|
62
|
+
createStereoPanner() {
|
|
63
|
+
return new stereoPannerNodeConstructor(this);
|
|
64
|
+
}
|
|
65
|
+
createWaveShaper() {
|
|
66
|
+
return new waveShaperNodeConstructor(this);
|
|
67
|
+
}
|
|
68
|
+
decodeAudioData(audioData, successCallback, errorCallback) {
|
|
69
|
+
return decodeAudioData(this._nativeContext, audioData).then((audioBuffer) => {
|
|
70
|
+
if (typeof successCallback === "function") {
|
|
71
|
+
successCallback(audioBuffer);
|
|
72
|
+
}
|
|
73
|
+
return audioBuffer;
|
|
74
|
+
}, (err) => {
|
|
75
|
+
if (typeof errorCallback === "function") {
|
|
76
|
+
errorCallback(err);
|
|
77
|
+
}
|
|
78
|
+
throw err;
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
exports.createBaseAudioContextConstructor = createBaseAudioContextConstructor;
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
const createBaseAudioContextConstructor = (addAudioWorkletModule, analyserNodeConstructor, audioBufferConstructor, audioBufferSourceNodeConstructor, biquadFilterNodeConstructor, channelMergerNodeConstructor, channelSplitterNodeConstructor, constantSourceNodeConstructor, convolverNodeConstructor, decodeAudioData, delayNodeConstructor, dynamicsCompressorNodeConstructor, gainNodeConstructor, iIRFilterNodeConstructor, minimalBaseAudioContextConstructor, oscillatorNodeConstructor, pannerNodeConstructor, periodicWaveConstructor, stereoPannerNodeConstructor, waveShaperNodeConstructor) => {
|
|
2
|
+
return class BaseAudioContext extends minimalBaseAudioContextConstructor {
|
|
3
|
+
constructor(_nativeContext, numberOfChannels) {
|
|
4
|
+
super(_nativeContext, numberOfChannels);
|
|
5
|
+
this._nativeContext = _nativeContext;
|
|
6
|
+
this._audioWorklet = addAudioWorkletModule === void 0 ? void 0 : {
|
|
7
|
+
addModule: (moduleURL, options) => {
|
|
8
|
+
return addAudioWorkletModule(this, moduleURL, options);
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
get audioWorklet() {
|
|
13
|
+
return this._audioWorklet;
|
|
14
|
+
}
|
|
15
|
+
createAnalyser() {
|
|
16
|
+
return new analyserNodeConstructor(this);
|
|
17
|
+
}
|
|
18
|
+
createBiquadFilter() {
|
|
19
|
+
return new biquadFilterNodeConstructor(this);
|
|
20
|
+
}
|
|
21
|
+
createBuffer(numberOfChannels, length, sampleRate) {
|
|
22
|
+
return new audioBufferConstructor({ length, numberOfChannels, sampleRate });
|
|
23
|
+
}
|
|
24
|
+
createBufferSource() {
|
|
25
|
+
return new audioBufferSourceNodeConstructor(this);
|
|
26
|
+
}
|
|
27
|
+
createChannelMerger(numberOfInputs = 6) {
|
|
28
|
+
return new channelMergerNodeConstructor(this, { numberOfInputs });
|
|
29
|
+
}
|
|
30
|
+
createChannelSplitter(numberOfOutputs = 6) {
|
|
31
|
+
return new channelSplitterNodeConstructor(this, { numberOfOutputs });
|
|
32
|
+
}
|
|
33
|
+
createConstantSource() {
|
|
34
|
+
return new constantSourceNodeConstructor(this);
|
|
35
|
+
}
|
|
36
|
+
createConvolver() {
|
|
37
|
+
return new convolverNodeConstructor(this);
|
|
38
|
+
}
|
|
39
|
+
createDelay(maxDelayTime = 1) {
|
|
40
|
+
return new delayNodeConstructor(this, { maxDelayTime });
|
|
41
|
+
}
|
|
42
|
+
createDynamicsCompressor() {
|
|
43
|
+
return new dynamicsCompressorNodeConstructor(this);
|
|
44
|
+
}
|
|
45
|
+
createGain() {
|
|
46
|
+
return new gainNodeConstructor(this);
|
|
47
|
+
}
|
|
48
|
+
createIIRFilter(feedforward, feedback) {
|
|
49
|
+
return new iIRFilterNodeConstructor(this, { feedback, feedforward });
|
|
50
|
+
}
|
|
51
|
+
createOscillator() {
|
|
52
|
+
return new oscillatorNodeConstructor(this);
|
|
53
|
+
}
|
|
54
|
+
createPanner() {
|
|
55
|
+
return new pannerNodeConstructor(this);
|
|
56
|
+
}
|
|
57
|
+
createPeriodicWave(real, imag, constraints = { disableNormalization: false }) {
|
|
58
|
+
return new periodicWaveConstructor(this, { ...constraints, imag, real });
|
|
59
|
+
}
|
|
60
|
+
createStereoPanner() {
|
|
61
|
+
return new stereoPannerNodeConstructor(this);
|
|
62
|
+
}
|
|
63
|
+
createWaveShaper() {
|
|
64
|
+
return new waveShaperNodeConstructor(this);
|
|
65
|
+
}
|
|
66
|
+
decodeAudioData(audioData, successCallback, errorCallback) {
|
|
67
|
+
return decodeAudioData(this._nativeContext, audioData).then((audioBuffer) => {
|
|
68
|
+
if (typeof successCallback === "function") {
|
|
69
|
+
successCallback(audioBuffer);
|
|
70
|
+
}
|
|
71
|
+
return audioBuffer;
|
|
72
|
+
}, (err) => {
|
|
73
|
+
if (typeof errorCallback === "function") {
|
|
74
|
+
errorCallback(err);
|
|
75
|
+
}
|
|
76
|
+
throw err;
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export {
|
|
82
|
+
createBaseAudioContextConstructor
|
|
83
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const constants = require("../constants.cjs");
|
|
4
|
+
const DEFAULT_OPTIONS = {
|
|
5
|
+
Q: 1,
|
|
6
|
+
channelCount: 2,
|
|
7
|
+
channelCountMode: "max",
|
|
8
|
+
channelInterpretation: "speakers",
|
|
9
|
+
detune: 0,
|
|
10
|
+
frequency: 350,
|
|
11
|
+
gain: 0,
|
|
12
|
+
type: "lowpass"
|
|
13
|
+
};
|
|
14
|
+
const createBiquadFilterNodeConstructor = (audioNodeConstructor, createAudioParam, createBiquadFilterNodeRenderer, createInvalidAccessError, createNativeBiquadFilterNode, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime) => {
|
|
15
|
+
return class BiquadFilterNode extends audioNodeConstructor {
|
|
16
|
+
constructor(context, options) {
|
|
17
|
+
const nativeContext = getNativeContext(context);
|
|
18
|
+
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
19
|
+
const nativeBiquadFilterNode = createNativeBiquadFilterNode(nativeContext, mergedOptions);
|
|
20
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
21
|
+
const biquadFilterNodeRenderer = isOffline ? createBiquadFilterNodeRenderer() : null;
|
|
22
|
+
super(context, false, nativeBiquadFilterNode, biquadFilterNodeRenderer);
|
|
23
|
+
this._Q = createAudioParam(this, isOffline, nativeBiquadFilterNode.Q, constants.MOST_POSITIVE_SINGLE_FLOAT, constants.MOST_NEGATIVE_SINGLE_FLOAT);
|
|
24
|
+
this._detune = createAudioParam(this, isOffline, nativeBiquadFilterNode.detune, 1200 * Math.log2(constants.MOST_POSITIVE_SINGLE_FLOAT), -1200 * Math.log2(constants.MOST_POSITIVE_SINGLE_FLOAT));
|
|
25
|
+
this._frequency = createAudioParam(this, isOffline, nativeBiquadFilterNode.frequency, context.sampleRate / 2, 0);
|
|
26
|
+
this._gain = createAudioParam(this, isOffline, nativeBiquadFilterNode.gain, 40 * Math.log10(constants.MOST_POSITIVE_SINGLE_FLOAT), constants.MOST_NEGATIVE_SINGLE_FLOAT);
|
|
27
|
+
this._nativeBiquadFilterNode = nativeBiquadFilterNode;
|
|
28
|
+
setAudioNodeTailTime(this, 1);
|
|
29
|
+
}
|
|
30
|
+
get detune() {
|
|
31
|
+
return this._detune;
|
|
32
|
+
}
|
|
33
|
+
get frequency() {
|
|
34
|
+
return this._frequency;
|
|
35
|
+
}
|
|
36
|
+
get gain() {
|
|
37
|
+
return this._gain;
|
|
38
|
+
}
|
|
39
|
+
get Q() {
|
|
40
|
+
return this._Q;
|
|
41
|
+
}
|
|
42
|
+
get type() {
|
|
43
|
+
return this._nativeBiquadFilterNode.type;
|
|
44
|
+
}
|
|
45
|
+
set type(value) {
|
|
46
|
+
this._nativeBiquadFilterNode.type = value;
|
|
47
|
+
}
|
|
48
|
+
getFrequencyResponse(frequencyHz, magResponse, phaseResponse) {
|
|
49
|
+
try {
|
|
50
|
+
this._nativeBiquadFilterNode.getFrequencyResponse(frequencyHz, magResponse, phaseResponse);
|
|
51
|
+
} catch (err) {
|
|
52
|
+
if (err.code === 11) {
|
|
53
|
+
throw createInvalidAccessError();
|
|
54
|
+
}
|
|
55
|
+
throw err;
|
|
56
|
+
}
|
|
57
|
+
if (frequencyHz.length !== magResponse.length || magResponse.length !== phaseResponse.length) {
|
|
58
|
+
throw createInvalidAccessError();
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
exports.createBiquadFilterNodeConstructor = createBiquadFilterNodeConstructor;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT } from "../constants.js";
|
|
2
|
+
const DEFAULT_OPTIONS = {
|
|
3
|
+
Q: 1,
|
|
4
|
+
channelCount: 2,
|
|
5
|
+
channelCountMode: "max",
|
|
6
|
+
channelInterpretation: "speakers",
|
|
7
|
+
detune: 0,
|
|
8
|
+
frequency: 350,
|
|
9
|
+
gain: 0,
|
|
10
|
+
type: "lowpass"
|
|
11
|
+
};
|
|
12
|
+
const createBiquadFilterNodeConstructor = (audioNodeConstructor, createAudioParam, createBiquadFilterNodeRenderer, createInvalidAccessError, createNativeBiquadFilterNode, getNativeContext, isNativeOfflineAudioContext, setAudioNodeTailTime) => {
|
|
13
|
+
return class BiquadFilterNode extends audioNodeConstructor {
|
|
14
|
+
constructor(context, options) {
|
|
15
|
+
const nativeContext = getNativeContext(context);
|
|
16
|
+
const mergedOptions = { ...DEFAULT_OPTIONS, ...options };
|
|
17
|
+
const nativeBiquadFilterNode = createNativeBiquadFilterNode(nativeContext, mergedOptions);
|
|
18
|
+
const isOffline = isNativeOfflineAudioContext(nativeContext);
|
|
19
|
+
const biquadFilterNodeRenderer = isOffline ? createBiquadFilterNodeRenderer() : null;
|
|
20
|
+
super(context, false, nativeBiquadFilterNode, biquadFilterNodeRenderer);
|
|
21
|
+
this._Q = createAudioParam(this, isOffline, nativeBiquadFilterNode.Q, MOST_POSITIVE_SINGLE_FLOAT, MOST_NEGATIVE_SINGLE_FLOAT);
|
|
22
|
+
this._detune = createAudioParam(this, isOffline, nativeBiquadFilterNode.detune, 1200 * Math.log2(MOST_POSITIVE_SINGLE_FLOAT), -1200 * Math.log2(MOST_POSITIVE_SINGLE_FLOAT));
|
|
23
|
+
this._frequency = createAudioParam(this, isOffline, nativeBiquadFilterNode.frequency, context.sampleRate / 2, 0);
|
|
24
|
+
this._gain = createAudioParam(this, isOffline, nativeBiquadFilterNode.gain, 40 * Math.log10(MOST_POSITIVE_SINGLE_FLOAT), MOST_NEGATIVE_SINGLE_FLOAT);
|
|
25
|
+
this._nativeBiquadFilterNode = nativeBiquadFilterNode;
|
|
26
|
+
setAudioNodeTailTime(this, 1);
|
|
27
|
+
}
|
|
28
|
+
get detune() {
|
|
29
|
+
return this._detune;
|
|
30
|
+
}
|
|
31
|
+
get frequency() {
|
|
32
|
+
return this._frequency;
|
|
33
|
+
}
|
|
34
|
+
get gain() {
|
|
35
|
+
return this._gain;
|
|
36
|
+
}
|
|
37
|
+
get Q() {
|
|
38
|
+
return this._Q;
|
|
39
|
+
}
|
|
40
|
+
get type() {
|
|
41
|
+
return this._nativeBiquadFilterNode.type;
|
|
42
|
+
}
|
|
43
|
+
set type(value) {
|
|
44
|
+
this._nativeBiquadFilterNode.type = value;
|
|
45
|
+
}
|
|
46
|
+
getFrequencyResponse(frequencyHz, magResponse, phaseResponse) {
|
|
47
|
+
try {
|
|
48
|
+
this._nativeBiquadFilterNode.getFrequencyResponse(frequencyHz, magResponse, phaseResponse);
|
|
49
|
+
} catch (err) {
|
|
50
|
+
if (err.code === 11) {
|
|
51
|
+
throw createInvalidAccessError();
|
|
52
|
+
}
|
|
53
|
+
throw err;
|
|
54
|
+
}
|
|
55
|
+
if (frequencyHz.length !== magResponse.length || magResponse.length !== phaseResponse.length) {
|
|
56
|
+
throw createInvalidAccessError();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
export {
|
|
62
|
+
createBiquadFilterNodeConstructor
|
|
63
|
+
};
|