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
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createExtendedExponentialRampToValueAutomationEvent = require("../functions/create-extended-exponential-ramp-to-value-automation-event.cjs");
|
|
4
|
+
const createExtendedLinearRampToValueAutomationEvent = require("../functions/create-extended-linear-ramp-to-value-automation-event.cjs");
|
|
5
|
+
const createSetValueAutomationEvent = require("../functions/create-set-value-automation-event.cjs");
|
|
6
|
+
const createSetValueCurveAutomationEvent = require("../functions/create-set-value-curve-automation-event.cjs");
|
|
7
|
+
const getEndTimeAndValueOfPreviousAutomationEvent = require("../functions/get-end-time-and-value-of-previous-automation-event.cjs");
|
|
8
|
+
const getEventTime = require("../functions/get-event-time.cjs");
|
|
9
|
+
const getExponentialRampValueAtTime = require("../functions/get-exponential-ramp-value-at-time.cjs");
|
|
10
|
+
const getLinearRampValueAtTime = require("../functions/get-linear-ramp-value-at-time.cjs");
|
|
11
|
+
const getTargetValueAtTime = require("../functions/get-target-value-at-time.cjs");
|
|
12
|
+
const getValueCurveValueAtTime = require("../functions/get-value-curve-value-at-time.cjs");
|
|
13
|
+
const getValueOfAutomationEventAtIndexAtTime = require("../functions/get-value-of-automation-event-at-index-at-time.cjs");
|
|
14
|
+
const anyRampToValueAutomationEvent = require("../guards/any-ramp-to-value-automation-event.cjs");
|
|
15
|
+
const cancelAndHoldAutomationEvent = require("../guards/cancel-and-hold-automation-event.cjs");
|
|
16
|
+
const cancelScheduledValuesAutomationEvent = require("../guards/cancel-scheduled-values-automation-event.cjs");
|
|
17
|
+
const exponentialRampToValueAutomationEvent = require("../guards/exponential-ramp-to-value-automation-event.cjs");
|
|
18
|
+
const linearRampToValueAutomationEvent = require("../guards/linear-ramp-to-value-automation-event.cjs");
|
|
19
|
+
const setTargetAutomationEvent = require("../guards/set-target-automation-event.cjs");
|
|
20
|
+
const setValueAutomationEvent = require("../guards/set-value-automation-event.cjs");
|
|
21
|
+
const setValueCurveAutomationEvent = require("../guards/set-value-curve-automation-event.cjs");
|
|
22
|
+
class AutomationEventList {
|
|
23
|
+
constructor(defaultValue) {
|
|
24
|
+
this._automationEvents = [];
|
|
25
|
+
this._currenTime = 0;
|
|
26
|
+
this._defaultValue = defaultValue;
|
|
27
|
+
}
|
|
28
|
+
[Symbol.iterator]() {
|
|
29
|
+
return this._automationEvents[Symbol.iterator]();
|
|
30
|
+
}
|
|
31
|
+
add(automationEvent) {
|
|
32
|
+
const eventTime = getEventTime.getEventTime(automationEvent);
|
|
33
|
+
if (cancelAndHoldAutomationEvent.isCancelAndHoldAutomationEvent(automationEvent) || cancelScheduledValuesAutomationEvent.isCancelScheduledValuesAutomationEvent(automationEvent)) {
|
|
34
|
+
const index = this._automationEvents.findIndex((currentAutomationEvent) => {
|
|
35
|
+
if (cancelScheduledValuesAutomationEvent.isCancelScheduledValuesAutomationEvent(automationEvent) && setValueCurveAutomationEvent.isSetValueCurveAutomationEvent(currentAutomationEvent)) {
|
|
36
|
+
return currentAutomationEvent.startTime + currentAutomationEvent.duration >= eventTime;
|
|
37
|
+
}
|
|
38
|
+
return getEventTime.getEventTime(currentAutomationEvent) >= eventTime;
|
|
39
|
+
});
|
|
40
|
+
const removedAutomationEvent = this._automationEvents[index];
|
|
41
|
+
if (index !== -1) {
|
|
42
|
+
this._automationEvents = this._automationEvents.slice(0, index);
|
|
43
|
+
}
|
|
44
|
+
if (cancelAndHoldAutomationEvent.isCancelAndHoldAutomationEvent(automationEvent)) {
|
|
45
|
+
const lastAutomationEvent = this._automationEvents[this._automationEvents.length - 1];
|
|
46
|
+
if (removedAutomationEvent !== void 0 && anyRampToValueAutomationEvent.isAnyRampToValueAutomationEvent(removedAutomationEvent)) {
|
|
47
|
+
if (lastAutomationEvent !== void 0 && setTargetAutomationEvent.isSetTargetAutomationEvent(lastAutomationEvent)) {
|
|
48
|
+
throw new Error("The internal list is malformed.");
|
|
49
|
+
}
|
|
50
|
+
const startTime = lastAutomationEvent === void 0 ? removedAutomationEvent.insertTime : setValueCurveAutomationEvent.isSetValueCurveAutomationEvent(lastAutomationEvent) ? lastAutomationEvent.startTime + lastAutomationEvent.duration : getEventTime.getEventTime(lastAutomationEvent);
|
|
51
|
+
const startValue = lastAutomationEvent === void 0 ? this._defaultValue : setValueCurveAutomationEvent.isSetValueCurveAutomationEvent(lastAutomationEvent) ? lastAutomationEvent.values[lastAutomationEvent.values.length - 1] : lastAutomationEvent.value;
|
|
52
|
+
const value = exponentialRampToValueAutomationEvent.isExponentialRampToValueAutomationEvent(removedAutomationEvent) ? getExponentialRampValueAtTime.getExponentialRampValueAtTime(eventTime, startTime, startValue, removedAutomationEvent) : getLinearRampValueAtTime.getLinearRampValueAtTime(eventTime, startTime, startValue, removedAutomationEvent);
|
|
53
|
+
const truncatedAutomationEvent = exponentialRampToValueAutomationEvent.isExponentialRampToValueAutomationEvent(removedAutomationEvent) ? createExtendedExponentialRampToValueAutomationEvent.createExtendedExponentialRampToValueAutomationEvent(value, eventTime, this._currenTime) : createExtendedLinearRampToValueAutomationEvent.createExtendedLinearRampToValueAutomationEvent(value, eventTime, this._currenTime);
|
|
54
|
+
this._automationEvents.push(truncatedAutomationEvent);
|
|
55
|
+
}
|
|
56
|
+
if (lastAutomationEvent !== void 0 && setTargetAutomationEvent.isSetTargetAutomationEvent(lastAutomationEvent)) {
|
|
57
|
+
this._automationEvents.push(createSetValueAutomationEvent.createSetValueAutomationEvent(this.getValue(eventTime), eventTime));
|
|
58
|
+
}
|
|
59
|
+
if (lastAutomationEvent !== void 0 && setValueCurveAutomationEvent.isSetValueCurveAutomationEvent(lastAutomationEvent) && lastAutomationEvent.startTime + lastAutomationEvent.duration > eventTime) {
|
|
60
|
+
const duration = eventTime - lastAutomationEvent.startTime;
|
|
61
|
+
const ratio = (lastAutomationEvent.values.length - 1) / lastAutomationEvent.duration;
|
|
62
|
+
const length = Math.max(2, 1 + Math.ceil(duration * ratio));
|
|
63
|
+
const fraction = duration / (length - 1) * ratio;
|
|
64
|
+
const values = lastAutomationEvent.values.slice(0, length);
|
|
65
|
+
if (fraction < 1) {
|
|
66
|
+
for (let i = 1; i < length; i += 1) {
|
|
67
|
+
const factor = fraction * i % 1;
|
|
68
|
+
values[i] = lastAutomationEvent.values[i - 1] * (1 - factor) + lastAutomationEvent.values[i] * factor;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
this._automationEvents[this._automationEvents.length - 1] = createSetValueCurveAutomationEvent.createSetValueCurveAutomationEvent(values, lastAutomationEvent.startTime, duration);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
} else {
|
|
75
|
+
const index = this._automationEvents.findIndex((currentAutomationEvent) => getEventTime.getEventTime(currentAutomationEvent) > eventTime);
|
|
76
|
+
const previousAutomationEvent = index === -1 ? this._automationEvents[this._automationEvents.length - 1] : this._automationEvents[index - 1];
|
|
77
|
+
if (previousAutomationEvent !== void 0 && setValueCurveAutomationEvent.isSetValueCurveAutomationEvent(previousAutomationEvent) && getEventTime.getEventTime(previousAutomationEvent) + previousAutomationEvent.duration > eventTime) {
|
|
78
|
+
return false;
|
|
79
|
+
}
|
|
80
|
+
const persistentAutomationEvent = exponentialRampToValueAutomationEvent.isExponentialRampToValueAutomationEvent(automationEvent) ? createExtendedExponentialRampToValueAutomationEvent.createExtendedExponentialRampToValueAutomationEvent(automationEvent.value, automationEvent.endTime, this._currenTime) : linearRampToValueAutomationEvent.isLinearRampToValueAutomationEvent(automationEvent) ? createExtendedLinearRampToValueAutomationEvent.createExtendedLinearRampToValueAutomationEvent(automationEvent.value, eventTime, this._currenTime) : automationEvent;
|
|
81
|
+
if (index === -1) {
|
|
82
|
+
this._automationEvents.push(persistentAutomationEvent);
|
|
83
|
+
} else {
|
|
84
|
+
if (setValueCurveAutomationEvent.isSetValueCurveAutomationEvent(automationEvent) && eventTime + automationEvent.duration > getEventTime.getEventTime(this._automationEvents[index])) {
|
|
85
|
+
return false;
|
|
86
|
+
}
|
|
87
|
+
this._automationEvents.splice(index, 0, persistentAutomationEvent);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return true;
|
|
91
|
+
}
|
|
92
|
+
flush(time) {
|
|
93
|
+
const index = this._automationEvents.findIndex((currentAutomationEvent) => getEventTime.getEventTime(currentAutomationEvent) > time);
|
|
94
|
+
if (index > 1) {
|
|
95
|
+
const remainingAutomationEvents = this._automationEvents.slice(index - 1);
|
|
96
|
+
const firstRemainingAutomationEvent = remainingAutomationEvents[0];
|
|
97
|
+
if (setTargetAutomationEvent.isSetTargetAutomationEvent(firstRemainingAutomationEvent)) {
|
|
98
|
+
remainingAutomationEvents.unshift(createSetValueAutomationEvent.createSetValueAutomationEvent(getValueOfAutomationEventAtIndexAtTime.getValueOfAutomationEventAtIndexAtTime(this._automationEvents, index - 2, firstRemainingAutomationEvent.startTime, this._defaultValue), firstRemainingAutomationEvent.startTime));
|
|
99
|
+
}
|
|
100
|
+
this._automationEvents = remainingAutomationEvents;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
getValue(time) {
|
|
104
|
+
if (this._automationEvents.length === 0) {
|
|
105
|
+
return this._defaultValue;
|
|
106
|
+
}
|
|
107
|
+
const indexOfNextEvent = this._automationEvents.findIndex((automationEvent) => getEventTime.getEventTime(automationEvent) > time);
|
|
108
|
+
const nextAutomationEvent = this._automationEvents[indexOfNextEvent];
|
|
109
|
+
const indexOfCurrentEvent = (indexOfNextEvent === -1 ? this._automationEvents.length : indexOfNextEvent) - 1;
|
|
110
|
+
const currentAutomationEvent = this._automationEvents[indexOfCurrentEvent];
|
|
111
|
+
if (currentAutomationEvent !== void 0 && setTargetAutomationEvent.isSetTargetAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === void 0 || !anyRampToValueAutomationEvent.isAnyRampToValueAutomationEvent(nextAutomationEvent) || nextAutomationEvent.insertTime > time)) {
|
|
112
|
+
return getTargetValueAtTime.getTargetValueAtTime(time, getValueOfAutomationEventAtIndexAtTime.getValueOfAutomationEventAtIndexAtTime(this._automationEvents, indexOfCurrentEvent - 1, currentAutomationEvent.startTime, this._defaultValue), currentAutomationEvent);
|
|
113
|
+
}
|
|
114
|
+
if (currentAutomationEvent !== void 0 && setValueAutomationEvent.isSetValueAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === void 0 || !anyRampToValueAutomationEvent.isAnyRampToValueAutomationEvent(nextAutomationEvent))) {
|
|
115
|
+
return currentAutomationEvent.value;
|
|
116
|
+
}
|
|
117
|
+
if (currentAutomationEvent !== void 0 && setValueCurveAutomationEvent.isSetValueCurveAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === void 0 || !anyRampToValueAutomationEvent.isAnyRampToValueAutomationEvent(nextAutomationEvent) || currentAutomationEvent.startTime + currentAutomationEvent.duration > time)) {
|
|
118
|
+
if (time < currentAutomationEvent.startTime + currentAutomationEvent.duration) {
|
|
119
|
+
return getValueCurveValueAtTime.getValueCurveValueAtTime(time, currentAutomationEvent);
|
|
120
|
+
}
|
|
121
|
+
return currentAutomationEvent.values[currentAutomationEvent.values.length - 1];
|
|
122
|
+
}
|
|
123
|
+
if (currentAutomationEvent !== void 0 && anyRampToValueAutomationEvent.isAnyRampToValueAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === void 0 || !anyRampToValueAutomationEvent.isAnyRampToValueAutomationEvent(nextAutomationEvent))) {
|
|
124
|
+
return currentAutomationEvent.value;
|
|
125
|
+
}
|
|
126
|
+
if (nextAutomationEvent !== void 0 && exponentialRampToValueAutomationEvent.isExponentialRampToValueAutomationEvent(nextAutomationEvent)) {
|
|
127
|
+
const [startTime, value] = getEndTimeAndValueOfPreviousAutomationEvent.getEndTimeAndValueOfPreviousAutomationEvent(this._automationEvents, indexOfCurrentEvent, currentAutomationEvent, nextAutomationEvent, this._defaultValue);
|
|
128
|
+
return getExponentialRampValueAtTime.getExponentialRampValueAtTime(time, startTime, value, nextAutomationEvent);
|
|
129
|
+
}
|
|
130
|
+
if (nextAutomationEvent !== void 0 && linearRampToValueAutomationEvent.isLinearRampToValueAutomationEvent(nextAutomationEvent)) {
|
|
131
|
+
const [startTime, value] = getEndTimeAndValueOfPreviousAutomationEvent.getEndTimeAndValueOfPreviousAutomationEvent(this._automationEvents, indexOfCurrentEvent, currentAutomationEvent, nextAutomationEvent, this._defaultValue);
|
|
132
|
+
return getLinearRampValueAtTime.getLinearRampValueAtTime(time, startTime, value, nextAutomationEvent);
|
|
133
|
+
}
|
|
134
|
+
return this._defaultValue;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
exports.AutomationEventList = AutomationEventList;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { createExtendedExponentialRampToValueAutomationEvent } from "../functions/create-extended-exponential-ramp-to-value-automation-event.js";
|
|
2
|
+
import { createExtendedLinearRampToValueAutomationEvent } from "../functions/create-extended-linear-ramp-to-value-automation-event.js";
|
|
3
|
+
import { createSetValueAutomationEvent } from "../functions/create-set-value-automation-event.js";
|
|
4
|
+
import { createSetValueCurveAutomationEvent } from "../functions/create-set-value-curve-automation-event.js";
|
|
5
|
+
import { getEndTimeAndValueOfPreviousAutomationEvent } from "../functions/get-end-time-and-value-of-previous-automation-event.js";
|
|
6
|
+
import { getEventTime } from "../functions/get-event-time.js";
|
|
7
|
+
import { getExponentialRampValueAtTime } from "../functions/get-exponential-ramp-value-at-time.js";
|
|
8
|
+
import { getLinearRampValueAtTime } from "../functions/get-linear-ramp-value-at-time.js";
|
|
9
|
+
import { getTargetValueAtTime } from "../functions/get-target-value-at-time.js";
|
|
10
|
+
import { getValueCurveValueAtTime } from "../functions/get-value-curve-value-at-time.js";
|
|
11
|
+
import { getValueOfAutomationEventAtIndexAtTime } from "../functions/get-value-of-automation-event-at-index-at-time.js";
|
|
12
|
+
import { isAnyRampToValueAutomationEvent } from "../guards/any-ramp-to-value-automation-event.js";
|
|
13
|
+
import { isCancelAndHoldAutomationEvent } from "../guards/cancel-and-hold-automation-event.js";
|
|
14
|
+
import { isCancelScheduledValuesAutomationEvent } from "../guards/cancel-scheduled-values-automation-event.js";
|
|
15
|
+
import { isExponentialRampToValueAutomationEvent } from "../guards/exponential-ramp-to-value-automation-event.js";
|
|
16
|
+
import { isLinearRampToValueAutomationEvent } from "../guards/linear-ramp-to-value-automation-event.js";
|
|
17
|
+
import { isSetTargetAutomationEvent } from "../guards/set-target-automation-event.js";
|
|
18
|
+
import { isSetValueAutomationEvent } from "../guards/set-value-automation-event.js";
|
|
19
|
+
import { isSetValueCurveAutomationEvent } from "../guards/set-value-curve-automation-event.js";
|
|
20
|
+
class AutomationEventList {
|
|
21
|
+
constructor(defaultValue) {
|
|
22
|
+
this._automationEvents = [];
|
|
23
|
+
this._currenTime = 0;
|
|
24
|
+
this._defaultValue = defaultValue;
|
|
25
|
+
}
|
|
26
|
+
[Symbol.iterator]() {
|
|
27
|
+
return this._automationEvents[Symbol.iterator]();
|
|
28
|
+
}
|
|
29
|
+
add(automationEvent) {
|
|
30
|
+
const eventTime = getEventTime(automationEvent);
|
|
31
|
+
if (isCancelAndHoldAutomationEvent(automationEvent) || isCancelScheduledValuesAutomationEvent(automationEvent)) {
|
|
32
|
+
const index = this._automationEvents.findIndex((currentAutomationEvent) => {
|
|
33
|
+
if (isCancelScheduledValuesAutomationEvent(automationEvent) && isSetValueCurveAutomationEvent(currentAutomationEvent)) {
|
|
34
|
+
return currentAutomationEvent.startTime + currentAutomationEvent.duration >= eventTime;
|
|
35
|
+
}
|
|
36
|
+
return getEventTime(currentAutomationEvent) >= eventTime;
|
|
37
|
+
});
|
|
38
|
+
const removedAutomationEvent = this._automationEvents[index];
|
|
39
|
+
if (index !== -1) {
|
|
40
|
+
this._automationEvents = this._automationEvents.slice(0, index);
|
|
41
|
+
}
|
|
42
|
+
if (isCancelAndHoldAutomationEvent(automationEvent)) {
|
|
43
|
+
const lastAutomationEvent = this._automationEvents[this._automationEvents.length - 1];
|
|
44
|
+
if (removedAutomationEvent !== void 0 && isAnyRampToValueAutomationEvent(removedAutomationEvent)) {
|
|
45
|
+
if (lastAutomationEvent !== void 0 && isSetTargetAutomationEvent(lastAutomationEvent)) {
|
|
46
|
+
throw new Error("The internal list is malformed.");
|
|
47
|
+
}
|
|
48
|
+
const startTime = lastAutomationEvent === void 0 ? removedAutomationEvent.insertTime : isSetValueCurveAutomationEvent(lastAutomationEvent) ? lastAutomationEvent.startTime + lastAutomationEvent.duration : getEventTime(lastAutomationEvent);
|
|
49
|
+
const startValue = lastAutomationEvent === void 0 ? this._defaultValue : isSetValueCurveAutomationEvent(lastAutomationEvent) ? lastAutomationEvent.values[lastAutomationEvent.values.length - 1] : lastAutomationEvent.value;
|
|
50
|
+
const value = isExponentialRampToValueAutomationEvent(removedAutomationEvent) ? getExponentialRampValueAtTime(eventTime, startTime, startValue, removedAutomationEvent) : getLinearRampValueAtTime(eventTime, startTime, startValue, removedAutomationEvent);
|
|
51
|
+
const truncatedAutomationEvent = isExponentialRampToValueAutomationEvent(removedAutomationEvent) ? createExtendedExponentialRampToValueAutomationEvent(value, eventTime, this._currenTime) : createExtendedLinearRampToValueAutomationEvent(value, eventTime, this._currenTime);
|
|
52
|
+
this._automationEvents.push(truncatedAutomationEvent);
|
|
53
|
+
}
|
|
54
|
+
if (lastAutomationEvent !== void 0 && isSetTargetAutomationEvent(lastAutomationEvent)) {
|
|
55
|
+
this._automationEvents.push(createSetValueAutomationEvent(this.getValue(eventTime), eventTime));
|
|
56
|
+
}
|
|
57
|
+
if (lastAutomationEvent !== void 0 && isSetValueCurveAutomationEvent(lastAutomationEvent) && lastAutomationEvent.startTime + lastAutomationEvent.duration > eventTime) {
|
|
58
|
+
const duration = eventTime - lastAutomationEvent.startTime;
|
|
59
|
+
const ratio = (lastAutomationEvent.values.length - 1) / lastAutomationEvent.duration;
|
|
60
|
+
const length = Math.max(2, 1 + Math.ceil(duration * ratio));
|
|
61
|
+
const fraction = duration / (length - 1) * ratio;
|
|
62
|
+
const values = lastAutomationEvent.values.slice(0, length);
|
|
63
|
+
if (fraction < 1) {
|
|
64
|
+
for (let i = 1; i < length; i += 1) {
|
|
65
|
+
const factor = fraction * i % 1;
|
|
66
|
+
values[i] = lastAutomationEvent.values[i - 1] * (1 - factor) + lastAutomationEvent.values[i] * factor;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
this._automationEvents[this._automationEvents.length - 1] = createSetValueCurveAutomationEvent(values, lastAutomationEvent.startTime, duration);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
} else {
|
|
73
|
+
const index = this._automationEvents.findIndex((currentAutomationEvent) => getEventTime(currentAutomationEvent) > eventTime);
|
|
74
|
+
const previousAutomationEvent = index === -1 ? this._automationEvents[this._automationEvents.length - 1] : this._automationEvents[index - 1];
|
|
75
|
+
if (previousAutomationEvent !== void 0 && isSetValueCurveAutomationEvent(previousAutomationEvent) && getEventTime(previousAutomationEvent) + previousAutomationEvent.duration > eventTime) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
const persistentAutomationEvent = isExponentialRampToValueAutomationEvent(automationEvent) ? createExtendedExponentialRampToValueAutomationEvent(automationEvent.value, automationEvent.endTime, this._currenTime) : isLinearRampToValueAutomationEvent(automationEvent) ? createExtendedLinearRampToValueAutomationEvent(automationEvent.value, eventTime, this._currenTime) : automationEvent;
|
|
79
|
+
if (index === -1) {
|
|
80
|
+
this._automationEvents.push(persistentAutomationEvent);
|
|
81
|
+
} else {
|
|
82
|
+
if (isSetValueCurveAutomationEvent(automationEvent) && eventTime + automationEvent.duration > getEventTime(this._automationEvents[index])) {
|
|
83
|
+
return false;
|
|
84
|
+
}
|
|
85
|
+
this._automationEvents.splice(index, 0, persistentAutomationEvent);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
flush(time) {
|
|
91
|
+
const index = this._automationEvents.findIndex((currentAutomationEvent) => getEventTime(currentAutomationEvent) > time);
|
|
92
|
+
if (index > 1) {
|
|
93
|
+
const remainingAutomationEvents = this._automationEvents.slice(index - 1);
|
|
94
|
+
const firstRemainingAutomationEvent = remainingAutomationEvents[0];
|
|
95
|
+
if (isSetTargetAutomationEvent(firstRemainingAutomationEvent)) {
|
|
96
|
+
remainingAutomationEvents.unshift(createSetValueAutomationEvent(getValueOfAutomationEventAtIndexAtTime(this._automationEvents, index - 2, firstRemainingAutomationEvent.startTime, this._defaultValue), firstRemainingAutomationEvent.startTime));
|
|
97
|
+
}
|
|
98
|
+
this._automationEvents = remainingAutomationEvents;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
getValue(time) {
|
|
102
|
+
if (this._automationEvents.length === 0) {
|
|
103
|
+
return this._defaultValue;
|
|
104
|
+
}
|
|
105
|
+
const indexOfNextEvent = this._automationEvents.findIndex((automationEvent) => getEventTime(automationEvent) > time);
|
|
106
|
+
const nextAutomationEvent = this._automationEvents[indexOfNextEvent];
|
|
107
|
+
const indexOfCurrentEvent = (indexOfNextEvent === -1 ? this._automationEvents.length : indexOfNextEvent) - 1;
|
|
108
|
+
const currentAutomationEvent = this._automationEvents[indexOfCurrentEvent];
|
|
109
|
+
if (currentAutomationEvent !== void 0 && isSetTargetAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === void 0 || !isAnyRampToValueAutomationEvent(nextAutomationEvent) || nextAutomationEvent.insertTime > time)) {
|
|
110
|
+
return getTargetValueAtTime(time, getValueOfAutomationEventAtIndexAtTime(this._automationEvents, indexOfCurrentEvent - 1, currentAutomationEvent.startTime, this._defaultValue), currentAutomationEvent);
|
|
111
|
+
}
|
|
112
|
+
if (currentAutomationEvent !== void 0 && isSetValueAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === void 0 || !isAnyRampToValueAutomationEvent(nextAutomationEvent))) {
|
|
113
|
+
return currentAutomationEvent.value;
|
|
114
|
+
}
|
|
115
|
+
if (currentAutomationEvent !== void 0 && isSetValueCurveAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === void 0 || !isAnyRampToValueAutomationEvent(nextAutomationEvent) || currentAutomationEvent.startTime + currentAutomationEvent.duration > time)) {
|
|
116
|
+
if (time < currentAutomationEvent.startTime + currentAutomationEvent.duration) {
|
|
117
|
+
return getValueCurveValueAtTime(time, currentAutomationEvent);
|
|
118
|
+
}
|
|
119
|
+
return currentAutomationEvent.values[currentAutomationEvent.values.length - 1];
|
|
120
|
+
}
|
|
121
|
+
if (currentAutomationEvent !== void 0 && isAnyRampToValueAutomationEvent(currentAutomationEvent) && (nextAutomationEvent === void 0 || !isAnyRampToValueAutomationEvent(nextAutomationEvent))) {
|
|
122
|
+
return currentAutomationEvent.value;
|
|
123
|
+
}
|
|
124
|
+
if (nextAutomationEvent !== void 0 && isExponentialRampToValueAutomationEvent(nextAutomationEvent)) {
|
|
125
|
+
const [startTime, value] = getEndTimeAndValueOfPreviousAutomationEvent(this._automationEvents, indexOfCurrentEvent, currentAutomationEvent, nextAutomationEvent, this._defaultValue);
|
|
126
|
+
return getExponentialRampValueAtTime(time, startTime, value, nextAutomationEvent);
|
|
127
|
+
}
|
|
128
|
+
if (nextAutomationEvent !== void 0 && isLinearRampToValueAutomationEvent(nextAutomationEvent)) {
|
|
129
|
+
const [startTime, value] = getEndTimeAndValueOfPreviousAutomationEvent(this._automationEvents, indexOfCurrentEvent, currentAutomationEvent, nextAutomationEvent, this._defaultValue);
|
|
130
|
+
return getLinearRampValueAtTime(time, startTime, value, nextAutomationEvent);
|
|
131
|
+
}
|
|
132
|
+
return this._defaultValue;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
export {
|
|
136
|
+
AutomationEventList
|
|
137
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createCancelAndHoldAutomationEvent = (cancelTime) => {
|
|
4
|
+
return { cancelTime, type: "cancelAndHold" };
|
|
5
|
+
};
|
|
6
|
+
exports.createCancelAndHoldAutomationEvent = createCancelAndHoldAutomationEvent;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createCancelScheduledValuesAutomationEvent = (cancelTime) => {
|
|
4
|
+
return { cancelTime, type: "cancelScheduledValues" };
|
|
5
|
+
};
|
|
6
|
+
exports.createCancelScheduledValuesAutomationEvent = createCancelScheduledValuesAutomationEvent;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createExponentialRampToValueAutomationEvent = (value, endTime) => {
|
|
4
|
+
return { endTime, type: "exponentialRampToValue", value };
|
|
5
|
+
};
|
|
6
|
+
exports.createExponentialRampToValueAutomationEvent = createExponentialRampToValueAutomationEvent;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createExtendedExponentialRampToValueAutomationEvent = (value, endTime, insertTime) => {
|
|
4
|
+
return { endTime, insertTime, type: "exponentialRampToValue", value };
|
|
5
|
+
};
|
|
6
|
+
exports.createExtendedExponentialRampToValueAutomationEvent = createExtendedExponentialRampToValueAutomationEvent;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createExtendedLinearRampToValueAutomationEvent = (value, endTime, insertTime) => {
|
|
4
|
+
return { endTime, insertTime, type: "linearRampToValue", value };
|
|
5
|
+
};
|
|
6
|
+
exports.createExtendedLinearRampToValueAutomationEvent = createExtendedLinearRampToValueAutomationEvent;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createLinearRampToValueAutomationEvent = (value, endTime) => {
|
|
4
|
+
return { endTime, type: "linearRampToValue", value };
|
|
5
|
+
};
|
|
6
|
+
exports.createLinearRampToValueAutomationEvent = createLinearRampToValueAutomationEvent;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createSetTargetAutomationEvent = (target, startTime, timeConstant) => {
|
|
4
|
+
return { startTime, target, timeConstant, type: "setTarget" };
|
|
5
|
+
};
|
|
6
|
+
exports.createSetTargetAutomationEvent = createSetTargetAutomationEvent;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createSetValueAutomationEvent = (value, startTime) => {
|
|
4
|
+
return { startTime, type: "setValue", value };
|
|
5
|
+
};
|
|
6
|
+
exports.createSetValueAutomationEvent = createSetValueAutomationEvent;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const createSetValueCurveAutomationEvent = (values, startTime, duration) => {
|
|
4
|
+
return { duration, startTime, type: "setValueCurve", values };
|
|
5
|
+
};
|
|
6
|
+
exports.createSetValueCurveAutomationEvent = createSetValueCurveAutomationEvent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const getValueOfAutomationEventAtIndexAtTime = require("./get-value-of-automation-event-at-index-at-time.cjs");
|
|
4
|
+
const anyRampToValueAutomationEvent = require("../guards/any-ramp-to-value-automation-event.cjs");
|
|
5
|
+
const setValueAutomationEvent = require("../guards/set-value-automation-event.cjs");
|
|
6
|
+
const setValueCurveAutomationEvent = require("../guards/set-value-curve-automation-event.cjs");
|
|
7
|
+
const getEndTimeAndValueOfPreviousAutomationEvent = (automationEvents, index, currentAutomationEvent, nextAutomationEvent, defaultValue) => {
|
|
8
|
+
return currentAutomationEvent === void 0 ? [nextAutomationEvent.insertTime, defaultValue] : anyRampToValueAutomationEvent.isAnyRampToValueAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.endTime, currentAutomationEvent.value] : setValueAutomationEvent.isSetValueAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.startTime, currentAutomationEvent.value] : setValueCurveAutomationEvent.isSetValueCurveAutomationEvent(currentAutomationEvent) ? [
|
|
9
|
+
currentAutomationEvent.startTime + currentAutomationEvent.duration,
|
|
10
|
+
currentAutomationEvent.values[currentAutomationEvent.values.length - 1]
|
|
11
|
+
] : [
|
|
12
|
+
currentAutomationEvent.startTime,
|
|
13
|
+
getValueOfAutomationEventAtIndexAtTime.getValueOfAutomationEventAtIndexAtTime(automationEvents, index - 1, currentAutomationEvent.startTime, defaultValue)
|
|
14
|
+
];
|
|
15
|
+
};
|
|
16
|
+
exports.getEndTimeAndValueOfPreviousAutomationEvent = getEndTimeAndValueOfPreviousAutomationEvent;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getValueOfAutomationEventAtIndexAtTime } from "./get-value-of-automation-event-at-index-at-time.js";
|
|
2
|
+
import { isAnyRampToValueAutomationEvent } from "../guards/any-ramp-to-value-automation-event.js";
|
|
3
|
+
import { isSetValueAutomationEvent } from "../guards/set-value-automation-event.js";
|
|
4
|
+
import { isSetValueCurveAutomationEvent } from "../guards/set-value-curve-automation-event.js";
|
|
5
|
+
const getEndTimeAndValueOfPreviousAutomationEvent = (automationEvents, index, currentAutomationEvent, nextAutomationEvent, defaultValue) => {
|
|
6
|
+
return currentAutomationEvent === void 0 ? [nextAutomationEvent.insertTime, defaultValue] : isAnyRampToValueAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.endTime, currentAutomationEvent.value] : isSetValueAutomationEvent(currentAutomationEvent) ? [currentAutomationEvent.startTime, currentAutomationEvent.value] : isSetValueCurveAutomationEvent(currentAutomationEvent) ? [
|
|
7
|
+
currentAutomationEvent.startTime + currentAutomationEvent.duration,
|
|
8
|
+
currentAutomationEvent.values[currentAutomationEvent.values.length - 1]
|
|
9
|
+
] : [
|
|
10
|
+
currentAutomationEvent.startTime,
|
|
11
|
+
getValueOfAutomationEventAtIndexAtTime(automationEvents, index - 1, currentAutomationEvent.startTime, defaultValue)
|
|
12
|
+
];
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
getEndTimeAndValueOfPreviousAutomationEvent
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const cancelAndHoldAutomationEvent = require("../guards/cancel-and-hold-automation-event.cjs");
|
|
4
|
+
const cancelScheduledValuesAutomationEvent = require("../guards/cancel-scheduled-values-automation-event.cjs");
|
|
5
|
+
const exponentialRampToValueAutomationEvent = require("../guards/exponential-ramp-to-value-automation-event.cjs");
|
|
6
|
+
const linearRampToValueAutomationEvent = require("../guards/linear-ramp-to-value-automation-event.cjs");
|
|
7
|
+
const getEventTime = (automationEvent) => {
|
|
8
|
+
if (cancelAndHoldAutomationEvent.isCancelAndHoldAutomationEvent(automationEvent) || cancelScheduledValuesAutomationEvent.isCancelScheduledValuesAutomationEvent(automationEvent)) {
|
|
9
|
+
return automationEvent.cancelTime;
|
|
10
|
+
}
|
|
11
|
+
if (exponentialRampToValueAutomationEvent.isExponentialRampToValueAutomationEvent(automationEvent) || linearRampToValueAutomationEvent.isLinearRampToValueAutomationEvent(automationEvent)) {
|
|
12
|
+
return automationEvent.endTime;
|
|
13
|
+
}
|
|
14
|
+
return automationEvent.startTime;
|
|
15
|
+
};
|
|
16
|
+
exports.getEventTime = getEventTime;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { isCancelAndHoldAutomationEvent } from "../guards/cancel-and-hold-automation-event.js";
|
|
2
|
+
import { isCancelScheduledValuesAutomationEvent } from "../guards/cancel-scheduled-values-automation-event.js";
|
|
3
|
+
import { isExponentialRampToValueAutomationEvent } from "../guards/exponential-ramp-to-value-automation-event.js";
|
|
4
|
+
import { isLinearRampToValueAutomationEvent } from "../guards/linear-ramp-to-value-automation-event.js";
|
|
5
|
+
const getEventTime = (automationEvent) => {
|
|
6
|
+
if (isCancelAndHoldAutomationEvent(automationEvent) || isCancelScheduledValuesAutomationEvent(automationEvent)) {
|
|
7
|
+
return automationEvent.cancelTime;
|
|
8
|
+
}
|
|
9
|
+
if (isExponentialRampToValueAutomationEvent(automationEvent) || isLinearRampToValueAutomationEvent(automationEvent)) {
|
|
10
|
+
return automationEvent.endTime;
|
|
11
|
+
}
|
|
12
|
+
return automationEvent.startTime;
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
getEventTime
|
|
16
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const getExponentialRampValueAtTime = (time, startTime, valueAtStartTime, { endTime, value }) => {
|
|
4
|
+
if (valueAtStartTime === value) {
|
|
5
|
+
return value;
|
|
6
|
+
}
|
|
7
|
+
if (0 < valueAtStartTime && 0 < value || valueAtStartTime < 0 && value < 0) {
|
|
8
|
+
return valueAtStartTime * (value / valueAtStartTime) ** ((time - startTime) / (endTime - startTime));
|
|
9
|
+
}
|
|
10
|
+
return 0;
|
|
11
|
+
};
|
|
12
|
+
exports.getExponentialRampValueAtTime = getExponentialRampValueAtTime;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const getExponentialRampValueAtTime = (time, startTime, valueAtStartTime, { endTime, value }) => {
|
|
2
|
+
if (valueAtStartTime === value) {
|
|
3
|
+
return value;
|
|
4
|
+
}
|
|
5
|
+
if (0 < valueAtStartTime && 0 < value || valueAtStartTime < 0 && value < 0) {
|
|
6
|
+
return valueAtStartTime * (value / valueAtStartTime) ** ((time - startTime) / (endTime - startTime));
|
|
7
|
+
}
|
|
8
|
+
return 0;
|
|
9
|
+
};
|
|
10
|
+
export {
|
|
11
|
+
getExponentialRampValueAtTime
|
|
12
|
+
};
|
package/dist/node_modules/automation-events/build/es2019/functions/get-linear-ramp-value-at-time.cjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const getLinearRampValueAtTime = (time, startTime, valueAtStartTime, { endTime, value }) => {
|
|
4
|
+
return valueAtStartTime + (time - startTime) / (endTime - startTime) * (value - valueAtStartTime);
|
|
5
|
+
};
|
|
6
|
+
exports.getLinearRampValueAtTime = getLinearRampValueAtTime;
|
package/dist/node_modules/automation-events/build/es2019/functions/get-target-value-at-time.cjs
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const getTargetValueAtTime = (time, valueAtStartTime, { startTime, target, timeConstant }) => {
|
|
4
|
+
return target + (valueAtStartTime - target) * Math.exp((startTime - time) / timeConstant);
|
|
5
|
+
};
|
|
6
|
+
exports.getTargetValueAtTime = getTargetValueAtTime;
|
package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.cjs
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const interpolateValue = require("./interpolate-value.cjs");
|
|
4
|
+
const getValueCurveValueAtTime = (time, { duration, startTime, values }) => {
|
|
5
|
+
const theoreticIndex = (time - startTime) / duration * (values.length - 1);
|
|
6
|
+
return interpolateValue.interpolateValue(values, theoreticIndex);
|
|
7
|
+
};
|
|
8
|
+
exports.getValueCurveValueAtTime = getValueCurveValueAtTime;
|
package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { interpolateValue } from "./interpolate-value.js";
|
|
2
|
+
const getValueCurveValueAtTime = (time, { duration, startTime, values }) => {
|
|
3
|
+
const theoreticIndex = (time - startTime) / duration * (values.length - 1);
|
|
4
|
+
return interpolateValue(values, theoreticIndex);
|
|
5
|
+
};
|
|
6
|
+
export {
|
|
7
|
+
getValueCurveValueAtTime
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const getTargetValueAtTime = require("./get-target-value-at-time.cjs");
|
|
4
|
+
const anyRampToValueAutomationEvent = require("../guards/any-ramp-to-value-automation-event.cjs");
|
|
5
|
+
const setValueAutomationEvent = require("../guards/set-value-automation-event.cjs");
|
|
6
|
+
const setValueCurveAutomationEvent = require("../guards/set-value-curve-automation-event.cjs");
|
|
7
|
+
const getValueOfAutomationEventAtIndexAtTime = (automationEvents, index, time, defaultValue) => {
|
|
8
|
+
const automationEvent = automationEvents[index];
|
|
9
|
+
return automationEvent === void 0 ? defaultValue : anyRampToValueAutomationEvent.isAnyRampToValueAutomationEvent(automationEvent) || setValueAutomationEvent.isSetValueAutomationEvent(automationEvent) ? automationEvent.value : setValueCurveAutomationEvent.isSetValueCurveAutomationEvent(automationEvent) ? automationEvent.values[automationEvent.values.length - 1] : getTargetValueAtTime.getTargetValueAtTime(time, getValueOfAutomationEventAtIndexAtTime(automationEvents, index - 1, automationEvent.startTime, defaultValue), automationEvent);
|
|
10
|
+
};
|
|
11
|
+
exports.getValueOfAutomationEventAtIndexAtTime = getValueOfAutomationEventAtIndexAtTime;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { getTargetValueAtTime } from "./get-target-value-at-time.js";
|
|
2
|
+
import { isAnyRampToValueAutomationEvent } from "../guards/any-ramp-to-value-automation-event.js";
|
|
3
|
+
import { isSetValueAutomationEvent } from "../guards/set-value-automation-event.js";
|
|
4
|
+
import { isSetValueCurveAutomationEvent } from "../guards/set-value-curve-automation-event.js";
|
|
5
|
+
const getValueOfAutomationEventAtIndexAtTime = (automationEvents, index, time, defaultValue) => {
|
|
6
|
+
const automationEvent = automationEvents[index];
|
|
7
|
+
return automationEvent === void 0 ? defaultValue : isAnyRampToValueAutomationEvent(automationEvent) || isSetValueAutomationEvent(automationEvent) ? automationEvent.value : isSetValueCurveAutomationEvent(automationEvent) ? automationEvent.values[automationEvent.values.length - 1] : getTargetValueAtTime(time, getValueOfAutomationEventAtIndexAtTime(automationEvents, index - 1, automationEvent.startTime, defaultValue), automationEvent);
|
|
8
|
+
};
|
|
9
|
+
export {
|
|
10
|
+
getValueOfAutomationEventAtIndexAtTime
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const interpolateValue = (values, theoreticIndex) => {
|
|
4
|
+
const lowerIndex = Math.floor(theoreticIndex);
|
|
5
|
+
const upperIndex = Math.ceil(theoreticIndex);
|
|
6
|
+
if (lowerIndex === upperIndex) {
|
|
7
|
+
return values[lowerIndex];
|
|
8
|
+
}
|
|
9
|
+
return (1 - (theoreticIndex - lowerIndex)) * values[lowerIndex] + (1 - (upperIndex - theoreticIndex)) * values[upperIndex];
|
|
10
|
+
};
|
|
11
|
+
exports.interpolateValue = interpolateValue;
|