@viji-dev/core 0.5.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artist-dts-p5.js +1 -1
- package/dist/artist-dts.js +1 -1
- package/dist/artist-global-p5.d.ts +1 -1
- package/dist/artist-global.d.ts +1 -1
- package/dist/docs-api.js +2 -2
- package/dist/{essentia-wasm.web-aU6UPupF.js → essentia-wasm.web-C58CPq4U.js} +2 -2
- package/dist/{essentia-wasm.web-aU6UPupF.js.map → essentia-wasm.web-C58CPq4U.js.map} +1 -1
- package/dist/{index-_PbbZgmh.js → index-DsJxKERc.js} +43 -22
- package/dist/{index-_PbbZgmh.js.map → index-DsJxKERc.js.map} +1 -1
- package/dist/index.d.ts +18 -11
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -442,9 +442,12 @@ export declare class AudioSystem {
|
|
|
442
442
|
getChannelCount(): number;
|
|
443
443
|
/**
|
|
444
444
|
* Record a tap for the specified instrument onset.
|
|
445
|
-
* `options.skipRecognition`
|
|
446
|
-
*
|
|
447
|
-
*
|
|
445
|
+
* `options.skipRecognition` opts the tap out of the recognition pipeline
|
|
446
|
+
* only (no IOI accumulation, no `tryRecognizePattern`, no `applyPattern`).
|
|
447
|
+
* Mode still flips `'auto' → 'tapping'` so the visual envelope and
|
|
448
|
+
* audio-event filter run; only the pattern-detection pipeline is bypassed.
|
|
449
|
+
* Used by host-side relay of forwarded tap messages where another core
|
|
450
|
+
* owns the authoritative recognition.
|
|
448
451
|
*/
|
|
449
452
|
tapOnset(instrument: InstrumentType, options?: {
|
|
450
453
|
skipRecognition?: boolean;
|
|
@@ -2251,7 +2254,7 @@ declare type TrackingState = 'TRACKING' | 'LOCKED' | 'BREAKDOWN' | 'LOST';
|
|
|
2251
2254
|
/** Returned by `on*` listener registration calls; invoke to unsubscribe. */
|
|
2252
2255
|
export declare type Unsubscribe = () => void;
|
|
2253
2256
|
|
|
2254
|
-
export declare const VERSION = "0.5.
|
|
2257
|
+
export declare const VERSION = "0.5.5";
|
|
2255
2258
|
|
|
2256
2259
|
/**
|
|
2257
2260
|
* Real-time video API: drawable frame, dimensions, and the source-side
|
|
@@ -3023,13 +3026,17 @@ export declare class VijiCore {
|
|
|
3023
3026
|
* First tap switches the instrument from auto to tapping mode.
|
|
3024
3027
|
* If a repeating pattern is recognized, it continues after tapping stops.
|
|
3025
3028
|
*
|
|
3026
|
-
* `options.skipRecognition: true`
|
|
3027
|
-
*
|
|
3028
|
-
* no
|
|
3029
|
-
*
|
|
3030
|
-
*
|
|
3031
|
-
*
|
|
3032
|
-
*
|
|
3029
|
+
* `options.skipRecognition: true` opts the tap out of the **recognition
|
|
3030
|
+
* pipeline only** — no `tapIOIs` accumulation, no `tryRecognizePattern`,
|
|
3031
|
+
* no `applyPattern`, no `handlePatternTap`. Mode still flips
|
|
3032
|
+
* `'auto' → 'tapping'` on the first tap of a session (and back to
|
|
3033
|
+
* `'auto'` on the 5s timeout). The mode flip is load-bearing for
|
|
3034
|
+
* `processFrame`'s drain of `pendingTapEvents`, the audio-event filter
|
|
3035
|
+
* that prevents music+tap doubling, and `onModeChange` consumers. Use
|
|
3036
|
+
* `skipRecognition` when relaying tap messages from another instance
|
|
3037
|
+
* that owns the authoritative recognition (e.g. host receiving
|
|
3038
|
+
* controller taps over WebRTC); the receiving core's pattern is then
|
|
3039
|
+
* driven only by `importSessionState` from the authoritative sender.
|
|
3033
3040
|
*
|
|
3034
3041
|
* The `MIN_TAP_INTERVAL_MS` debounce still applies regardless of the
|
|
3035
3042
|
* `skipRecognition` flag.
|
package/dist/index.js
CHANGED