@viji-dev/core 0.3.19 → 0.3.21

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { A, V, a, b } from "./index-BKGarA3m.js";
1
+ import { A, V, a, b } from "./index-trkn0FNW.js";
2
2
  export {
3
3
  A as AudioSystem,
4
4
  V as VERSION,
@@ -162,52 +162,152 @@ export const shaderUniforms = {
162
162
  "u_audioPeak": {
163
163
  "type": "float",
164
164
  "category": "Audio",
165
- "description": "Peak volume level (0-1)"
165
+ "description": "Peak amplitude (0-1)"
166
166
  },
167
- "u_audioBass": {
167
+ "u_audioVolumeSmoothed": {
168
168
  "type": "float",
169
169
  "category": "Audio",
170
- "description": "Bass frequency band level (0-1)"
170
+ "description": "Smoothed volume for animation (200ms decay)"
171
+ },
172
+ "u_audioLow": {
173
+ "type": "float",
174
+ "category": "Audio",
175
+ "description": "Low 20-150 Hz (0-1)"
176
+ },
177
+ "u_audioLowMid": {
178
+ "type": "float",
179
+ "category": "Audio",
180
+ "description": "Low-mid 150-400 Hz (0-1)"
171
181
  },
172
182
  "u_audioMid": {
173
183
  "type": "float",
174
184
  "category": "Audio",
175
- "description": "Mid frequency band level (0-1)"
185
+ "description": "Mid 400-2500 Hz (0-1)"
176
186
  },
177
- "u_audioTreble": {
187
+ "u_audioHighMid": {
178
188
  "type": "float",
179
189
  "category": "Audio",
180
- "description": "Treble frequency band level (0-1)"
190
+ "description": "High-mid 2500-8000 Hz (0-1)"
181
191
  },
182
- "u_audioSubBass": {
192
+ "u_audioHigh": {
183
193
  "type": "float",
184
194
  "category": "Audio",
185
- "description": "Sub-bass frequency band 20-60 Hz (0-1)"
195
+ "description": "High 8000-20000 Hz (0-1)"
186
196
  },
187
- "u_audioLowMid": {
197
+ "u_audioLowSmoothed": {
188
198
  "type": "float",
189
199
  "category": "Audio",
190
- "description": "Low-mid frequency band 250-500 Hz (0-1)"
200
+ "description": "Smoothed low band (0-1)"
191
201
  },
192
- "u_audioHighMid": {
202
+ "u_audioLowMidSmoothed": {
203
+ "type": "float",
204
+ "category": "Audio",
205
+ "description": "Smoothed low-mid band (0-1)"
206
+ },
207
+ "u_audioMidSmoothed": {
208
+ "type": "float",
209
+ "category": "Audio",
210
+ "description": "Smoothed mid band (0-1)"
211
+ },
212
+ "u_audioHighMidSmoothed": {
213
+ "type": "float",
214
+ "category": "Audio",
215
+ "description": "Smoothed high-mid band (0-1)"
216
+ },
217
+ "u_audioHighSmoothed": {
218
+ "type": "float",
219
+ "category": "Audio",
220
+ "description": "Smoothed high band (0-1)"
221
+ },
222
+ "u_audioKick": {
223
+ "type": "float",
224
+ "category": "Audio",
225
+ "description": "Kick energy (0-1)"
226
+ },
227
+ "u_audioSnare": {
228
+ "type": "float",
229
+ "category": "Audio",
230
+ "description": "Snare energy (0-1)"
231
+ },
232
+ "u_audioHat": {
233
+ "type": "float",
234
+ "category": "Audio",
235
+ "description": "Hi-hat energy (0-1)"
236
+ },
237
+ "u_audioAny": {
238
+ "type": "float",
239
+ "category": "Audio",
240
+ "description": "Any beat energy (0-1)"
241
+ },
242
+ "u_audioKickSmoothed": {
243
+ "type": "float",
244
+ "category": "Audio",
245
+ "description": "Smoothed kick energy (0-1)"
246
+ },
247
+ "u_audioSnareSmoothed": {
248
+ "type": "float",
249
+ "category": "Audio",
250
+ "description": "Smoothed snare energy (0-1)"
251
+ },
252
+ "u_audioAnySmoothed": {
253
+ "type": "float",
254
+ "category": "Audio",
255
+ "description": "Smoothed any-beat energy (0-1)"
256
+ },
257
+ "u_audioKickTrigger": {
258
+ "type": "bool",
259
+ "category": "Audio",
260
+ "description": "True on kick beat frame"
261
+ },
262
+ "u_audioSnareTrigger": {
263
+ "type": "bool",
264
+ "category": "Audio",
265
+ "description": "True on snare beat frame"
266
+ },
267
+ "u_audioHatTrigger": {
268
+ "type": "bool",
269
+ "category": "Audio",
270
+ "description": "True on hi-hat beat frame"
271
+ },
272
+ "u_audioAnyTrigger": {
273
+ "type": "bool",
274
+ "category": "Audio",
275
+ "description": "True on any beat frame"
276
+ },
277
+ "u_audioBPM": {
193
278
  "type": "float",
194
279
  "category": "Audio",
195
- "description": "High-mid frequency band 2-4 kHz (0-1)"
280
+ "description": "Current BPM (60-240)"
196
281
  },
197
- "u_audioPresence": {
282
+ "u_audioConfidence": {
198
283
  "type": "float",
199
284
  "category": "Audio",
200
- "description": "Presence frequency band 4-6 kHz (0-1)"
285
+ "description": "Beat tracking confidence (0-1)"
201
286
  },
202
- "u_audioBrilliance": {
287
+ "u_audioIsLocked": {
288
+ "type": "bool",
289
+ "category": "Audio",
290
+ "description": "True when beat tracking is locked"
291
+ },
292
+ "u_audioBrightness": {
293
+ "type": "float",
294
+ "category": "Audio",
295
+ "description": "Spectral brightness / centroid (0-1)"
296
+ },
297
+ "u_audioFlatness": {
203
298
  "type": "float",
204
299
  "category": "Audio",
205
- "description": "Brilliance frequency band 6-20 kHz (0-1)"
300
+ "description": "Spectral flatness / noisiness (0-1)"
206
301
  },
207
302
  "u_audioFFT": {
208
303
  "type": "sampler2D",
209
304
  "category": "Audio",
210
- "description": "FFT texture containing 512 frequency bins"
305
+ "description": "FFT frequency spectrum (512 bins, 0-255)"
306
+ },
307
+ "u_audioWaveform": {
308
+ "type": "sampler2D",
309
+ "category": "Audio",
310
+ "description": "Time-domain waveform (fftSize samples, -1 to 1)"
211
311
  },
212
312
  "u_video": {
213
313
  "type": "sampler2D",
@@ -482,37 +582,317 @@ export const shaderUniforms = {
482
582
  "u_face0Bounds": {
483
583
  "type": "vec4",
484
584
  "category": "CV",
485
- "description": "First face bounding box (x, y, width, height)"
585
+ "description": "First face bounding box (x, y, width, height) normalized 0-1"
586
+ },
587
+ "u_face0Center": {
588
+ "type": "vec2",
589
+ "category": "CV",
590
+ "description": "First face bounding box center (x, y) normalized 0-1"
486
591
  },
487
592
  "u_face0HeadPose": {
488
593
  "type": "vec3",
489
594
  "category": "CV",
490
- "description": "First face head rotation (pitch, yaw, roll) in radians"
595
+ "description": "First face head rotation (pitch, yaw, roll) in degrees"
491
596
  },
492
597
  "u_face0Confidence": {
493
598
  "type": "float",
494
599
  "category": "CV",
495
600
  "description": "First face detection confidence (0-1)"
496
601
  },
602
+ "u_face0Neutral": {
603
+ "type": "float",
604
+ "category": "CV",
605
+ "description": "First face neutral expression (0-1)"
606
+ },
497
607
  "u_face0Happy": {
498
608
  "type": "float",
499
609
  "category": "CV",
500
- "description": "First face happy expression confidence (0-1)"
610
+ "description": "First face happy expression (0-1)"
501
611
  },
502
612
  "u_face0Sad": {
503
613
  "type": "float",
504
614
  "category": "CV",
505
- "description": "First face sad expression confidence (0-1)"
615
+ "description": "First face sad expression (0-1)"
506
616
  },
507
617
  "u_face0Angry": {
508
618
  "type": "float",
509
619
  "category": "CV",
510
- "description": "First face angry expression confidence (0-1)"
620
+ "description": "First face angry expression (0-1)"
511
621
  },
512
622
  "u_face0Surprised": {
513
623
  "type": "float",
514
624
  "category": "CV",
515
- "description": "First face surprised expression confidence (0-1)"
625
+ "description": "First face surprised expression (0-1)"
626
+ },
627
+ "u_face0Disgusted": {
628
+ "type": "float",
629
+ "category": "CV",
630
+ "description": "First face disgusted expression (0-1)"
631
+ },
632
+ "u_face0Fearful": {
633
+ "type": "float",
634
+ "category": "CV",
635
+ "description": "First face fearful expression (0-1)"
636
+ },
637
+ "u_face0BrowDownLeft": {
638
+ "type": "float",
639
+ "category": "Brow",
640
+ "description": "u_face0BrowDownLeft uniform"
641
+ },
642
+ "u_face0BrowDownRight": {
643
+ "type": "float",
644
+ "category": "Brow",
645
+ "description": "u_face0BrowDownRight uniform"
646
+ },
647
+ "u_face0BrowInnerUp": {
648
+ "type": "float",
649
+ "category": "Brow",
650
+ "description": "u_face0BrowInnerUp uniform"
651
+ },
652
+ "u_face0BrowOuterUpLeft": {
653
+ "type": "float",
654
+ "category": "Brow",
655
+ "description": "u_face0BrowOuterUpLeft uniform"
656
+ },
657
+ "u_face0BrowOuterUpRight": {
658
+ "type": "float",
659
+ "category": "Brow",
660
+ "description": "u_face0BrowOuterUpRight uniform"
661
+ },
662
+ "u_face0CheekPuff": {
663
+ "type": "float",
664
+ "category": "Cheek",
665
+ "description": "u_face0CheekPuff uniform"
666
+ },
667
+ "u_face0CheekSquintLeft": {
668
+ "type": "float",
669
+ "category": "Cheek",
670
+ "description": "u_face0CheekSquintLeft uniform"
671
+ },
672
+ "u_face0CheekSquintRight": {
673
+ "type": "float",
674
+ "category": "Cheek",
675
+ "description": "u_face0CheekSquintRight uniform"
676
+ },
677
+ "u_face0EyeBlinkLeft": {
678
+ "type": "float",
679
+ "category": "Eye",
680
+ "description": "u_face0EyeBlinkLeft uniform"
681
+ },
682
+ "u_face0EyeBlinkRight": {
683
+ "type": "float",
684
+ "category": "Eye",
685
+ "description": "u_face0EyeBlinkRight uniform"
686
+ },
687
+ "u_face0EyeLookDownLeft": {
688
+ "type": "float",
689
+ "category": "Eye",
690
+ "description": "u_face0EyeLookDownLeft uniform"
691
+ },
692
+ "u_face0EyeLookDownRight": {
693
+ "type": "float",
694
+ "category": "Eye",
695
+ "description": "u_face0EyeLookDownRight uniform"
696
+ },
697
+ "u_face0EyeLookInLeft": {
698
+ "type": "float",
699
+ "category": "Eye",
700
+ "description": "u_face0EyeLookInLeft uniform"
701
+ },
702
+ "u_face0EyeLookInRight": {
703
+ "type": "float",
704
+ "category": "Eye",
705
+ "description": "u_face0EyeLookInRight uniform"
706
+ },
707
+ "u_face0EyeLookOutLeft": {
708
+ "type": "float",
709
+ "category": "Eye",
710
+ "description": "u_face0EyeLookOutLeft uniform"
711
+ },
712
+ "u_face0EyeLookOutRight": {
713
+ "type": "float",
714
+ "category": "Eye",
715
+ "description": "u_face0EyeLookOutRight uniform"
716
+ },
717
+ "u_face0EyeLookUpLeft": {
718
+ "type": "float",
719
+ "category": "Eye",
720
+ "description": "u_face0EyeLookUpLeft uniform"
721
+ },
722
+ "u_face0EyeLookUpRight": {
723
+ "type": "float",
724
+ "category": "Eye",
725
+ "description": "u_face0EyeLookUpRight uniform"
726
+ },
727
+ "u_face0EyeSquintLeft": {
728
+ "type": "float",
729
+ "category": "Eye",
730
+ "description": "u_face0EyeSquintLeft uniform"
731
+ },
732
+ "u_face0EyeSquintRight": {
733
+ "type": "float",
734
+ "category": "Eye",
735
+ "description": "u_face0EyeSquintRight uniform"
736
+ },
737
+ "u_face0EyeWideLeft": {
738
+ "type": "float",
739
+ "category": "Eye",
740
+ "description": "u_face0EyeWideLeft uniform"
741
+ },
742
+ "u_face0EyeWideRight": {
743
+ "type": "float",
744
+ "category": "Eye",
745
+ "description": "u_face0EyeWideRight uniform"
746
+ },
747
+ "u_face0JawForward": {
748
+ "type": "float",
749
+ "category": "Jaw",
750
+ "description": "u_face0JawForward uniform"
751
+ },
752
+ "u_face0JawLeft": {
753
+ "type": "float",
754
+ "category": "Jaw",
755
+ "description": "u_face0JawLeft uniform"
756
+ },
757
+ "u_face0JawOpen": {
758
+ "type": "float",
759
+ "category": "Jaw",
760
+ "description": "u_face0JawOpen uniform"
761
+ },
762
+ "u_face0JawRight": {
763
+ "type": "float",
764
+ "category": "Jaw",
765
+ "description": "u_face0JawRight uniform"
766
+ },
767
+ "u_face0MouthClose": {
768
+ "type": "float",
769
+ "category": "Mouth",
770
+ "description": "u_face0MouthClose uniform"
771
+ },
772
+ "u_face0MouthDimpleLeft": {
773
+ "type": "float",
774
+ "category": "Mouth",
775
+ "description": "u_face0MouthDimpleLeft uniform"
776
+ },
777
+ "u_face0MouthDimpleRight": {
778
+ "type": "float",
779
+ "category": "Mouth",
780
+ "description": "u_face0MouthDimpleRight uniform"
781
+ },
782
+ "u_face0MouthFrownLeft": {
783
+ "type": "float",
784
+ "category": "Mouth",
785
+ "description": "u_face0MouthFrownLeft uniform"
786
+ },
787
+ "u_face0MouthFrownRight": {
788
+ "type": "float",
789
+ "category": "Mouth",
790
+ "description": "u_face0MouthFrownRight uniform"
791
+ },
792
+ "u_face0MouthFunnel": {
793
+ "type": "float",
794
+ "category": "Mouth",
795
+ "description": "u_face0MouthFunnel uniform"
796
+ },
797
+ "u_face0MouthLeft": {
798
+ "type": "float",
799
+ "category": "Mouth",
800
+ "description": "u_face0MouthLeft uniform"
801
+ },
802
+ "u_face0MouthLowerDownLeft": {
803
+ "type": "float",
804
+ "category": "Mouth",
805
+ "description": "u_face0MouthLowerDownLeft uniform"
806
+ },
807
+ "u_face0MouthLowerDownRight": {
808
+ "type": "float",
809
+ "category": "Mouth",
810
+ "description": "u_face0MouthLowerDownRight uniform"
811
+ },
812
+ "u_face0MouthPressLeft": {
813
+ "type": "float",
814
+ "category": "Mouth",
815
+ "description": "u_face0MouthPressLeft uniform"
816
+ },
817
+ "u_face0MouthPressRight": {
818
+ "type": "float",
819
+ "category": "Mouth",
820
+ "description": "u_face0MouthPressRight uniform"
821
+ },
822
+ "u_face0MouthPucker": {
823
+ "type": "float",
824
+ "category": "Mouth",
825
+ "description": "u_face0MouthPucker uniform"
826
+ },
827
+ "u_face0MouthRight": {
828
+ "type": "float",
829
+ "category": "Mouth",
830
+ "description": "u_face0MouthRight uniform"
831
+ },
832
+ "u_face0MouthRollLower": {
833
+ "type": "float",
834
+ "category": "Mouth",
835
+ "description": "u_face0MouthRollLower uniform"
836
+ },
837
+ "u_face0MouthRollUpper": {
838
+ "type": "float",
839
+ "category": "Mouth",
840
+ "description": "u_face0MouthRollUpper uniform"
841
+ },
842
+ "u_face0MouthShrugLower": {
843
+ "type": "float",
844
+ "category": "Mouth",
845
+ "description": "u_face0MouthShrugLower uniform"
846
+ },
847
+ "u_face0MouthShrugUpper": {
848
+ "type": "float",
849
+ "category": "Mouth",
850
+ "description": "u_face0MouthShrugUpper uniform"
851
+ },
852
+ "u_face0MouthSmileLeft": {
853
+ "type": "float",
854
+ "category": "Mouth",
855
+ "description": "u_face0MouthSmileLeft uniform"
856
+ },
857
+ "u_face0MouthSmileRight": {
858
+ "type": "float",
859
+ "category": "Mouth",
860
+ "description": "u_face0MouthSmileRight uniform"
861
+ },
862
+ "u_face0MouthStretchLeft": {
863
+ "type": "float",
864
+ "category": "Mouth",
865
+ "description": "u_face0MouthStretchLeft uniform"
866
+ },
867
+ "u_face0MouthStretchRight": {
868
+ "type": "float",
869
+ "category": "Mouth",
870
+ "description": "u_face0MouthStretchRight uniform"
871
+ },
872
+ "u_face0MouthUpperUpLeft": {
873
+ "type": "float",
874
+ "category": "Mouth",
875
+ "description": "u_face0MouthUpperUpLeft uniform"
876
+ },
877
+ "u_face0MouthUpperUpRight": {
878
+ "type": "float",
879
+ "category": "Mouth",
880
+ "description": "u_face0MouthUpperUpRight uniform"
881
+ },
882
+ "u_face0NoseSneerLeft": {
883
+ "type": "float",
884
+ "category": "Nose & Tongue",
885
+ "description": "u_face0NoseSneerLeft uniform"
886
+ },
887
+ "u_face0NoseSneerRight": {
888
+ "type": "float",
889
+ "category": "Nose & Tongue",
890
+ "description": "u_face0NoseSneerRight uniform"
891
+ },
892
+ "u_face0TongueOut": {
893
+ "type": "float",
894
+ "category": "Nose & Tongue",
895
+ "description": "u_face0TongueOut uniform"
516
896
  },
517
897
  "u_handCount": {
518
898
  "type": "int",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@viji-dev/core",
3
- "version": "0.3.19",
3
+ "version": "0.3.21",
4
4
  "description": "Universal execution engine for Viji Creative scenes",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -80,6 +80,7 @@
80
80
  "@mediapipe/tasks-vision": "^0.10.20",
81
81
  "essentia.js": "^0.1.3",
82
82
  "fft.js": "^4.0.4",
83
- "ml-kmeans": "^6.0.0"
83
+ "ml-kmeans": "^6.0.0",
84
+ "sucrase": "^3.35.1"
84
85
  }
85
86
  }