react-audio-wavekit 0.1.7 → 0.1.8
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/README.md +3 -1
- package/dist/_virtual/_commonjsHelpers.cjs +6 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/browser.cjs +7 -0
- package/dist/_virtual/browser.js +7 -0
- package/dist/index.d.ts +7 -5
- package/dist/node_modules/@eshaz/web-worker/cjs/browser.cjs +11 -0
- package/dist/node_modules/@eshaz/web-worker/cjs/browser.js +11 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/WASMAudioDecoderCommon.cjs +168 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/WASMAudioDecoderCommon.js +168 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/WASMAudioDecoderWorker.cjs +90 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/WASMAudioDecoderWorker.js +90 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/utilities.cjs +6 -0
- package/dist/node_modules/@wasm-audio-decoders/common/src/utilities.js +6 -0
- package/dist/node_modules/mpg123-decoder/index.cjs +9 -0
- package/dist/node_modules/mpg123-decoder/index.js +9 -0
- package/dist/node_modules/mpg123-decoder/src/EmscriptenWasm.cjs +0 -0
- package/dist/node_modules/mpg123-decoder/src/EmscriptenWasm.js +0 -0
- package/dist/node_modules/mpg123-decoder/src/MPEGDecoder.cjs +147 -0
- package/dist/node_modules/mpg123-decoder/src/MPEGDecoder.js +147 -0
- package/dist/node_modules/mpg123-decoder/src/MPEGDecoderWebWorker.cjs +20 -0
- package/dist/node_modules/mpg123-decoder/src/MPEGDecoderWebWorker.js +20 -0
- package/dist/node_modules/simple-yenc/dist/esm.cjs +41 -0
- package/dist/node_modules/simple-yenc/dist/esm.js +41 -0
- package/dist/recorder/live-streaming/recorder/recorder-compound.cjs +1 -1
- package/dist/recorder/live-streaming/recorder/recorder-compound.js +1 -1
- package/dist/waveform/index.cjs +13 -11
- package/dist/waveform/index.js +13 -11
- package/dist/waveform/util-audio-decoder.cjs +36 -15
- package/dist/waveform/util-audio-decoder.js +36 -15
- package/dist/waveform/waveform-renderer.cjs +3 -3
- package/dist/waveform/waveform-renderer.js +3 -3
- package/package.json +3 -3
- package/dist/node_modules/automation-events/build/es2019/classes/automation-event-list.cjs +0 -137
- package/dist/node_modules/automation-events/build/es2019/classes/automation-event-list.js +0 -137
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-and-hold-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-and-hold-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-scheduled-values-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-cancel-scheduled-values-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-exponential-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-exponential-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-exponential-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-exponential-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-linear-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-extended-linear-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-linear-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-linear-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-target-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-target-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-curve-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/create-set-value-curve-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/get-end-time-and-value-of-previous-automation-event.cjs +0 -16
- package/dist/node_modules/automation-events/build/es2019/functions/get-end-time-and-value-of-previous-automation-event.js +0 -16
- package/dist/node_modules/automation-events/build/es2019/functions/get-event-time.cjs +0 -16
- package/dist/node_modules/automation-events/build/es2019/functions/get-event-time.js +0 -16
- package/dist/node_modules/automation-events/build/es2019/functions/get-exponential-ramp-value-at-time.cjs +0 -12
- package/dist/node_modules/automation-events/build/es2019/functions/get-exponential-ramp-value-at-time.js +0 -12
- package/dist/node_modules/automation-events/build/es2019/functions/get-linear-ramp-value-at-time.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/get-linear-ramp-value-at-time.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/get-target-value-at-time.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/get-target-value-at-time.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.cjs +0 -8
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-curve-value-at-time.js +0 -8
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-of-automation-event-at-index-at-time.cjs +0 -11
- package/dist/node_modules/automation-events/build/es2019/functions/get-value-of-automation-event-at-index-at-time.js +0 -11
- package/dist/node_modules/automation-events/build/es2019/functions/interpolate-value.cjs +0 -11
- package/dist/node_modules/automation-events/build/es2019/functions/interpolate-value.js +0 -11
- package/dist/node_modules/automation-events/build/es2019/guards/any-ramp-to-value-automation-event.cjs +0 -8
- package/dist/node_modules/automation-events/build/es2019/guards/any-ramp-to-value-automation-event.js +0 -8
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-and-hold-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-and-hold-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-scheduled-values-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/cancel-scheduled-values-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/exponential-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/exponential-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/linear-ramp-to-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/linear-ramp-to-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-target-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-target-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-automation-event.js +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-curve-automation-event.cjs +0 -6
- package/dist/node_modules/automation-events/build/es2019/guards/set-value-curve-automation-event.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/constants.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/constants.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/abort-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/abort-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-active-input-connection-to-audio-node.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-active-input-connection-to-audio-node.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-node-connections.cjs +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-node-connections.js +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-param-connections.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-param-connections.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-worklet-module.cjs +0 -115
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-audio-worklet-module.js +0 -115
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-connection-to-audio-node.cjs +0 -60
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-connection-to-audio-node.js +0 -60
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-passive-input-connection-to-audio-node.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-passive-input-connection-to-audio-node.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-silent-connection.cjs +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/add-silent-connection.js +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-constructor.cjs +0 -73
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-constructor.js +0 -73
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-renderer-factory.cjs +0 -37
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/analyser-node-renderer-factory.js +0 -37
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-constructor.cjs +0 -37
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-constructor.js +0 -37
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-constructor.cjs +0 -103
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-constructor.js +0 -103
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-renderer-factory.cjs +0 -58
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-buffer-source-node-renderer-factory.js +0 -58
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-constructor.cjs +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-constructor.js +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-renderer-factory.cjs +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-destination-node-renderer-factory.js +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-listener-factory.cjs +0 -220
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-listener-factory.js +0 -220
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-node-constructor.cjs +0 -274
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-node-constructor.js +0 -274
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.cjs +0 -152
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-factory.js +0 -152
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.cjs +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/audio-param-renderer.js +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/base-audio-context-constructor.cjs +0 -83
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/base-audio-context-constructor.js +0 -83
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-constructor.cjs +0 -63
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-constructor.js +0 -63
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-renderer-factory.cjs +0 -49
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/biquad-filter-node-renderer-factory.js +0 -49
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/cache-test-result.cjs +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/cache-test-result.js +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-constructor.cjs +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-constructor.js +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-renderer-factory.cjs +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-merger-node-renderer-factory.js +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-constructor.cjs +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-constructor.js +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-renderer-factory.cjs +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/channel-splitter-node-renderer-factory.js +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connect-audio-param.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connect-audio-param.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connected-native-audio-buffer-source-node-factory.cjs +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/connected-native-audio-buffer-source-node-factory.js +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-constructor.cjs +0 -63
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-constructor.js +0 -63
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-renderer-factory.cjs +0 -53
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/constant-source-node-renderer-factory.js +0 -53
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convert-number-to-unsigned-long.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convert-number-to-unsigned-long.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-constructor.cjs +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-constructor.js +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-renderer-factory.cjs +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/convolver-node-renderer-factory.js +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/create-native-offline-audio-context.cjs +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/create-native-offline-audio-context.js +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/data-clone-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/data-clone-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decode-audio-data.cjs +0 -59
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decode-audio-data.js +0 -59
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decrement-cycle-counter.cjs +0 -32
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/decrement-cycle-counter.js +0 -32
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-constructor.cjs +0 -27
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-constructor.js +0 -27
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-renderer-factory.cjs +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delay-node-renderer-factory.js +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delete-active-input-connection-to-audio-node.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/delete-active-input-connection-to-audio-node.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/detect-cycles.cjs +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/detect-cycles.js +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-constructor.cjs +0 -80
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-constructor.js +0 -80
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-renderer-factory.cjs +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/dynamics-compressor-node-renderer-factory.js +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/encoding-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/encoding-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/evaluate-source.cjs +0 -45
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/evaluate-source.js +0 -45
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/event-target-constructor.cjs +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/event-target-constructor.js +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/expose-current-frame-and-current-time.cjs +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/expose-current-frame-and-current-time.js +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/fetch-source.cjs +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/fetch-source.js +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-constructor.cjs +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-constructor.js +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-renderer-factory.cjs +0 -39
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/gain-node-renderer-factory.js +0 -39
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-renderer.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-renderer.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-tail-time.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-node-tail-time.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-param-renderer.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-audio-param-renderer.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-native-context.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-native-context.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-or-create-backup-offline-audio-context.cjs +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-or-create-backup-offline-audio-context.js +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-unrendered-audio-worklet-nodes.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/get-unrendered-audio-worklet-nodes.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-constructor.cjs +0 -27
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-constructor.js +0 -27
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-renderer-factory.cjs +0 -93
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/iir-filter-node-renderer-factory.js +0 -93
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/increment-cycle-counter-factory.cjs +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/increment-cycle-counter-factory.js +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/index-size-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/index-size-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-access-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-access-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-state-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/invalid-state-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-context.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-context.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-node.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-node.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-param.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-audio-param.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-context.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-context.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-offline-audio-context.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-native-offline-audio-context.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-secure-context.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/is-secure-context.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/minimal-base-audio-context-constructor.cjs +0 -43
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/minimal-base-audio-context-constructor.js +0 -43
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/monitor-connections.cjs +0 -59
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/monitor-connections.js +0 -59
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-analyser-node-factory.cjs +0 -24
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-analyser-node-factory.js +0 -24
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-constructor.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-constructor.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-source-node-factory.cjs +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-buffer-source-node-factory.js +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-context-constructor.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-context-constructor.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-destination-node.cjs +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-destination-node.js +0 -51
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-worklet-node-constructor.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-audio-worklet-node-constructor.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-biquad-filter-node.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-biquad-filter-node.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-merger-node-factory.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-merger-node-factory.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-splitter-node.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-channel-splitter-node.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-factory.cjs +0 -25
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-factory.js +0 -25
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-faker-factory.cjs +0 -88
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-constant-source-node-faker-factory.js +0 -88
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-convolver-node-factory.cjs +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-convolver-node-factory.js +0 -34
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-delay-node.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-delay-node.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-dynamics-compressor-node-factory.cjs +0 -23
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-dynamics-compressor-node-factory.js +0 -23
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-gain-node.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-gain-node.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-factory.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-factory.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-faker-factory.cjs +0 -139
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-iir-filter-node-faker-factory.js +0 -139
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-offline-audio-context-constructor.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-offline-audio-context-constructor.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-oscillator-node-factory.cjs +0 -32
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-oscillator-node-factory.js +0 -32
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-factory.cjs +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-factory.js +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-faker-factory.cjs +0 -277
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-panner-node-faker-factory.js +0 -277
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-periodic-wave-factory.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-periodic-wave-factory.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-script-processor-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-script-processor-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-factory.cjs +0 -28
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-factory.js +0 -28
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-faker-factory.cjs +0 -244
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-stereo-panner-node-faker-factory.js +0 -244
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-factory.cjs +0 -48
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-factory.js +0 -48
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-faker-factory.cjs +0 -153
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/native-wave-shaper-node-faker-factory.js +0 -153
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/not-supported-error.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/not-supported-error.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/offline-audio-context-constructor.cjs +0 -71
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/offline-audio-context-constructor.js +0 -71
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-constructor.cjs +0 -90
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-constructor.js +0 -90
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-renderer-factory.cjs +0 -62
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/oscillator-node-renderer-factory.js +0 -62
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-constructor.cjs +0 -109
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-constructor.js +0 -109
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-renderer-factory.cjs +0 -166
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/panner-node-renderer-factory.js +0 -166
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/periodic-wave-constructor.cjs +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/periodic-wave-constructor.js +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.cjs +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-automation.js +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-node.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-node.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-param.cjs +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-inputs-of-audio-param.js +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-native-offline-audio-context.cjs +0 -36
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/render-native-offline-audio-context.js +0 -36
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/set-audio-node-tail-time.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/set-audio-node-tail-time.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/start-rendering.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-constructor.cjs +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-constructor.js +0 -29
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-renderer-factory.cjs +0 -44
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/stereo-panner-node-renderer-factory.js +0 -44
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-buffer-constructor-support.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-buffer-constructor-support.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-worklet-processor-post-message-support.cjs +0 -35
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-audio-worklet-processor-post-message-support.js +0 -35
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-offline-audio-context-current-time-support.cjs +0 -24
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/test-offline-audio-context-current-time-support.js +0 -24
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-constructor.cjs +0 -49
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-constructor.js +0 -49
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-renderer-factory.cjs +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wave-shaper-node-renderer-factory.js +0 -40
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/window.cjs +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/window.js +0 -4
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.cjs +0 -25
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods-out-of-bounds.js +0 -25
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods.cjs +0 -33
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-copy-channel-methods.js +0 -33
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.cjs +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-audio-buffer-source-node-stop-method-nullified-buffer.js +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-channel-merger-node.cjs +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/factories/wrap-channel-merger-node.js +0 -30
- package/dist/node_modules/standardized-audio-context/build/es2019/globals.cjs +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/globals.js +0 -20
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-buffer-source-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-buffer-source-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node-output-connection.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node-output-connection.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-worklet-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/audio-worklet-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/biquad-filter-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/biquad-filter-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/constant-source-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/constant-source-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/delay-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/delay-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/gain-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/gain-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node-faker.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node-faker.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/native-audio-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/oscillator-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/oscillator-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/stereo-panner-node.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/guards/stereo-panner-node.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-active-input-connection-to-audio-param.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-active-input-connection-to-audio-param.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-passive-input-connection-to-audio-param.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/add-passive-input-connection-to-audio-param.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-audio-param-value.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-audio-param-value.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-option.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-option.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-options.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/assign-native-audio-node-options.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/compute-buffer-size.cjs +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/compute-buffer-size.js +0 -9
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/connect-native-audio-node-to-native-audio-node.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/connect-native-audio-node-to-native-audio-node.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-active-audio-node-input-connections.cjs +0 -35
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-active-audio-node-input-connections.js +0 -35
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-audio-graph.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/deactivate-audio-graph.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection-to-audio-param.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection-to-audio-param.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-active-input-connection.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-event-listeners-of-audio-node.cjs +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-event-listeners-of-audio-node.js +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-node.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-node.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-param.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/delete-passive-input-connection-to-audio-param.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/detach-array-buffer.cjs +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/detach-array-buffer.js +0 -21
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/disconnect-native-audio-node-from-native-audio-node.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/disconnect-native-audio-node-from-native-audio-node.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/filter-buffer.cjs +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/filter-buffer.js +0 -26
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-node-connections.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-node-connections.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-param-connections.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-audio-param-connections.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-event-listeners-of-audio-node.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-event-listeners-of-audio-node.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-first-sample.cjs +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-first-sample.js +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-node.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-node.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-param.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-native-audio-param.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-value-for-key.cjs +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/get-value-for-key.js +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/insert-element-in-set.cjs +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/insert-element-in-set.js +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/intercept-connections.cjs +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/intercept-connections.js +0 -8
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-active-audio-node.cjs +0 -5
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-active-audio-node.js +0 -5
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-constructible.cjs +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-constructible.js +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-dc-curve.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-dc-curve.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-owned-by-context.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-owned-by-context.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-part-of-a-cycle.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-part-of-a-cycle.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-passive-audio-node.cjs +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/is-passive-audio-node.js +0 -7
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/overwrite-accessors.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/overwrite-accessors.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/pick-element-from-set.cjs +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/pick-element-from-set.js +0 -15
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-channel-splitter-options.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-channel-splitter-options.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-periodic-wave-options.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/sanitize-periodic-wave-options.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-active.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-active.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive-when-necessary.cjs +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive-when-necessary.js +0 -10
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-internal-state-to-passive.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-value-at-time-until-possible.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/set-value-at-time-until-possible.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/split-import-statements.cjs +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/split-import-statements.js +0 -17
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-analyser-node-get-float-time-domain-data-method-support.cjs +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-analyser-node-get-float-time-domain-data-method-support.js +0 -6
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.cjs +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-copy-channel-methods-out-of-bounds-support.js +0 -11
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-consecutive-calls-support.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-start-method-offset-clamping-support.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-buffer-source-node-stop-method-nullified-buffer-support.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-node-disconnect-method-support.cjs +0 -36
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-node-disconnect-method-support.js +0 -36
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-start-method-negative-parameters-support.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-consecutive-calls-support.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.cjs +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-audio-scheduled-source-node-stop-method-negative-parameters-support.js +0 -12
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-promise-support.cjs +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/test-promise-support.js +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/visit-each-audio-node-once.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/visit-each-audio-node-once.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-analyser-node-get-float-time-domain-data-method.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-analyser-node-get-float-time-domain-data-method.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-get-channel-data-method.cjs +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-get-channel-data-method.js +0 -18
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-consecutive-calls.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-consecutive-calls.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-buffer-source-node-start-method-offset-clamping.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-node-disconnect-method.cjs +0 -61
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-node-disconnect-method.js +0 -61
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-start-method-negative-parameters.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.cjs +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-consecutive-calls.js +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.cjs +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-audio-scheduled-source-node-stop-method-negative-parameters.js +0 -13
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-channel-splitter-node.cjs +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-channel-splitter-node.js +0 -31
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-event-listener.cjs +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-event-listener.js +0 -16
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-iir-filter-node-get-frequency-response-method.cjs +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/helpers/wrap-iir-filter-node-get-frequency-response-method.js +0 -14
- package/dist/node_modules/standardized-audio-context/build/es2019/module.cjs +0 -298
- package/dist/node_modules/standardized-audio-context/build/es2019/module.js +0 -298
|
@@ -1,16 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
if (arrayBuffer.byteLength === 0) {
|
|
5
|
-
throw new Error("Audio blob is empty");
|
|
6
|
-
}
|
|
7
|
-
const offlineContext = new offlineAudioContextConstructor({ numberOfChannels: 1, length: 1, sampleRate: 44100 });
|
|
8
|
-
const audioBuffer = await offlineContext.decodeAudioData(arrayBuffer.slice(0)).catch(() => {
|
|
9
|
-
throw new Error(
|
|
10
|
-
`Unable to decode audio data (type: ${blob.type}, size: ${blob.size} bytes). This may be due to an unsupported audio format or corrupted data.`
|
|
11
|
-
);
|
|
12
|
-
});
|
|
13
|
-
const channelData = audioBuffer.getChannelData(0);
|
|
1
|
+
import "../node_modules/mpg123-decoder/index.js";
|
|
2
|
+
import MPEGDecoder from "../node_modules/mpg123-decoder/src/MPEGDecoder.js";
|
|
3
|
+
function extractPeaksFromChannelData(channelData, sampleCount) {
|
|
14
4
|
const blockSize = Math.floor(channelData.length / sampleCount);
|
|
15
5
|
const peaks = [];
|
|
16
6
|
for (let i = 0; i < sampleCount; i++) {
|
|
@@ -22,8 +12,39 @@ async function decodeAudioBlob(blob, sampleCount) {
|
|
|
22
12
|
peaks.push(sum / blockSize);
|
|
23
13
|
}
|
|
24
14
|
const maxPeak = Math.max(...peaks);
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
return maxPeak > 0 ? peaks.map((p) => p / maxPeak) : peaks;
|
|
16
|
+
}
|
|
17
|
+
async function decodeWithNativeAPI(arrayBuffer) {
|
|
18
|
+
const offlineContext = new OfflineAudioContext(1, 1, 44100);
|
|
19
|
+
return offlineContext.decodeAudioData(arrayBuffer);
|
|
20
|
+
}
|
|
21
|
+
async function decodeWithWASM(arrayBuffer) {
|
|
22
|
+
const decoder = new MPEGDecoder();
|
|
23
|
+
await decoder.ready;
|
|
24
|
+
const result = decoder.decode(new Uint8Array(arrayBuffer));
|
|
25
|
+
const channelData = result.channelData[0];
|
|
26
|
+
decoder.free();
|
|
27
|
+
return channelData;
|
|
28
|
+
}
|
|
29
|
+
async function decodeAudioBlob(blob, sampleCount) {
|
|
30
|
+
const arrayBuffer = await blob.arrayBuffer();
|
|
31
|
+
if (arrayBuffer.byteLength === 0) {
|
|
32
|
+
throw new Error("Audio blob is empty");
|
|
33
|
+
}
|
|
34
|
+
try {
|
|
35
|
+
const audioBuffer = await decodeWithNativeAPI(arrayBuffer);
|
|
36
|
+
const channelData = audioBuffer.getChannelData(0);
|
|
37
|
+
return extractPeaksFromChannelData(channelData, sampleCount);
|
|
38
|
+
} catch {
|
|
39
|
+
}
|
|
40
|
+
try {
|
|
41
|
+
const channelData = await decodeWithWASM(arrayBuffer);
|
|
42
|
+
return extractPeaksFromChannelData(channelData, sampleCount);
|
|
43
|
+
} catch {
|
|
44
|
+
throw new Error(
|
|
45
|
+
`Unable to decode audio data (type: ${blob.type}, size: ${blob.size} bytes). Both native Web Audio API and WASM decoder failed. This may be due to an unsupported audio format or corrupted data.`
|
|
46
|
+
);
|
|
47
|
+
}
|
|
27
48
|
}
|
|
28
49
|
const audioDataCache = /* @__PURE__ */ new WeakMap();
|
|
29
50
|
function getAudioData(blob, sampleCount) {
|
|
@@ -120,9 +120,9 @@ const WaveformRenderer = react.forwardRef(function WaveformRenderer2({ peaks, ap
|
|
|
120
120
|
const mins = Math.floor(seconds / 60);
|
|
121
121
|
const secs = Math.floor(seconds % 60);
|
|
122
122
|
if (mins > 0) {
|
|
123
|
-
return `${mins}
|
|
123
|
+
return `${mins}분 ${secs}초`;
|
|
124
124
|
}
|
|
125
|
-
return `${secs}
|
|
125
|
+
return `${secs}초`;
|
|
126
126
|
};
|
|
127
127
|
const isInteractive = !!onSeek && !!duration && duration > 0;
|
|
128
128
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -130,7 +130,7 @@ const WaveformRenderer = react.forwardRef(function WaveformRenderer2({ peaks, ap
|
|
|
130
130
|
{
|
|
131
131
|
ref: canvasRef,
|
|
132
132
|
role: isInteractive ? "slider" : "img",
|
|
133
|
-
"aria-label": isInteractive ? "
|
|
133
|
+
"aria-label": isInteractive ? "오디오 탐색" : "오디오 파형",
|
|
134
134
|
"aria-valuemin": isInteractive ? 0 : void 0,
|
|
135
135
|
"aria-valuemax": isInteractive ? Math.floor(duration) : void 0,
|
|
136
136
|
"aria-valuenow": isInteractive ? Math.floor(currentTime ?? 0) : void 0,
|
|
@@ -118,9 +118,9 @@ const WaveformRenderer = forwardRef(function WaveformRenderer2({ peaks, appearan
|
|
|
118
118
|
const mins = Math.floor(seconds / 60);
|
|
119
119
|
const secs = Math.floor(seconds % 60);
|
|
120
120
|
if (mins > 0) {
|
|
121
|
-
return `${mins}
|
|
121
|
+
return `${mins}분 ${secs}초`;
|
|
122
122
|
}
|
|
123
|
-
return `${secs}
|
|
123
|
+
return `${secs}초`;
|
|
124
124
|
};
|
|
125
125
|
const isInteractive = !!onSeek && !!duration && duration > 0;
|
|
126
126
|
return /* @__PURE__ */ jsx(
|
|
@@ -128,7 +128,7 @@ const WaveformRenderer = forwardRef(function WaveformRenderer2({ peaks, appearan
|
|
|
128
128
|
{
|
|
129
129
|
ref: canvasRef,
|
|
130
130
|
role: isInteractive ? "slider" : "img",
|
|
131
|
-
"aria-label": isInteractive ? "
|
|
131
|
+
"aria-label": isInteractive ? "오디오 탐색" : "오디오 파형",
|
|
132
132
|
"aria-valuemin": isInteractive ? 0 : void 0,
|
|
133
133
|
"aria-valuemax": isInteractive ? Math.floor(duration) : void 0,
|
|
134
134
|
"aria-valuenow": isInteractive ? Math.floor(currentTime ?? 0) : void 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-audio-wavekit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"license": "CC0-1.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
"vitest": "^4.0.15"
|
|
69
69
|
},
|
|
70
70
|
"dependencies": {
|
|
71
|
+
"mpg123-decoder": "^1.0.3",
|
|
71
72
|
"overlayscrollbars": "^2.13.0",
|
|
72
|
-
"overlayscrollbars-react": "^0.5.6"
|
|
73
|
-
"standardized-audio-context": "^25.3.77"
|
|
73
|
+
"overlayscrollbars-react": "^0.5.6"
|
|
74
74
|
}
|
|
75
75
|
}
|
|
@@ -1,137 +0,0 @@
|
|
|
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;
|
|
@@ -1,137 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,6 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
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;
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
};
|