hyperframes 0.8.160 → 0.8.161

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.
Files changed (100) hide show
  1. package/dist/{add-OGBTJCU4.js → add-7U5TQGSQ.js} +5 -5
  2. package/dist/{asset-DKQFFGPP.js → asset-N3JO5LHY.js} +2 -2
  3. package/dist/audio-QNPSENQR.js +1131 -0
  4. package/dist/{auth-AQMRAFXN.js → auth-HINUM4A7.js} +1 -1
  5. package/dist/{autoUpdate-NFQB7V2X.js → autoUpdate-AAMND4XK.js} +2 -2
  6. package/dist/{backgroundChecks-7JKE2FIU.js → backgroundChecks-FXIEHPND.js} +3 -3
  7. package/dist/backgroundChecksWorker.js +3 -3
  8. package/dist/beats-UZNREIRU.js +239 -0
  9. package/dist/{benchmark-RRU67WEY.js → benchmark-YM3QXPH6.js} +5 -5
  10. package/dist/{browser-K4TP4ZM2.js → browser-SD3T2XMH.js} +3 -3
  11. package/dist/{capture-T2TBROMS.js → capture-GUO23PVN.js} +1 -1
  12. package/dist/{catalog-IMIHQ4KX.js → catalog-6PF7KZAZ.js} +5 -5
  13. package/dist/{catch-up-UY5MJWOG.js → catch-up-5LTQTD3X.js} +4 -4
  14. package/dist/{check-6NAJSJHQ.js → check-NE2YXJR2.js} +18 -18
  15. package/dist/{checkBrowser-JWNQFYTY.js → checkBrowser-XDTXDEYO.js} +14 -14
  16. package/dist/{chunk-VD7WQYTO.js → chunk-5YSHR4XC.js} +5 -5
  17. package/dist/{chunk-FRGYHRP6.js → chunk-7ZKEOQ5N.js} +1 -1
  18. package/dist/{chunk-D46G5IQH.js → chunk-AHNJMWMU.js} +7 -7
  19. package/dist/{chunk-D2WGLWIK.js → chunk-AY2FEJDR.js} +2 -2
  20. package/dist/{chunk-V2FQQILJ.js → chunk-CGOGEA62.js} +1 -1
  21. package/dist/chunk-FFJ5TDRD.js +1181 -0
  22. package/dist/{chunk-GOASXWDD.js → chunk-G5AZMSQP.js} +1 -1
  23. package/dist/{chunk-PINFPWRV.js → chunk-GIPNECWL.js} +12 -10
  24. package/dist/{chunk-4VYNMVMC.js → chunk-H4VXLZ6O.js} +4 -4
  25. package/dist/{chunk-KRE55WLI.js → chunk-HM4PLNTX.js} +1 -1
  26. package/dist/{chunk-MYGXKD7A.js → chunk-I6CVW5CA.js} +2 -2
  27. package/dist/{chunk-VZ6LCTOZ.js → chunk-IL6C7T5X.js} +1 -1
  28. package/dist/{chunk-ICZVCVD3.js → chunk-KZPG4DXX.js} +1 -1
  29. package/dist/{chunk-6MCASYIS.js → chunk-ON2HYNGB.js} +4 -4
  30. package/dist/{chunk-IGTGLGML.js → chunk-PYMYGIZ4.js} +2 -2
  31. package/dist/{chunk-7OFNPEKR.js → chunk-PZH7FTRZ.js} +2 -2
  32. package/dist/{chunk-GOTCGKX6.js → chunk-RGYEL7QD.js} +1 -1
  33. package/dist/{chunk-3XPVZLAR.js → chunk-SAS6XBY5.js} +1 -1
  34. package/dist/{chunk-KWRBEDJI.js → chunk-TXG6W4X4.js} +2 -2
  35. package/dist/{chunk-TTFDAWCS.js → chunk-VYTGK5YA.js} +1 -1
  36. package/dist/{chunk-37LNY2EC.js → chunk-WDUEIP22.js} +1 -1
  37. package/dist/{chunk-TU2CQJO3.js → chunk-WNXVPPMV.js} +2 -2
  38. package/dist/{chunk-SHVDJON6.js → chunk-XWWYGXJ5.js} +1 -1
  39. package/dist/{clean-RRE6PMKZ.js → clean-4Y4G3YV3.js} +6 -6
  40. package/dist/cli.js +49 -49
  41. package/dist/{cloud-OIR6K7TS.js → cloud-BWXJB2B7.js} +4 -4
  42. package/dist/{compare-E57W737I.js → compare-OLLJBVNL.js} +11 -11
  43. package/dist/{component-I2O4AX56.js → component-ULSAC45J.js} +3 -3
  44. package/dist/{compositions-B6NKZHIN.js → compositions-G2JTQBTJ.js} +5 -5
  45. package/dist/{delete-DTUNBC6K.js → delete-BONV4XUI.js} +2 -2
  46. package/dist/{doctor-SCNB73Z3.js → doctor-EMLC4VZ4.js} +3 -3
  47. package/dist/{events-6LQNRKHZ.js → events-LF2J436R.js} +3 -3
  48. package/dist/{events-Q37UJL36.js → events-ZFGAA5UD.js} +2 -2
  49. package/dist/{feedback-FOEBE2OW.js → feedback-WKCUQE6T.js} +5 -5
  50. package/dist/{figma-54MRTBKH.js → figma-VJKG252Z.js} +3 -3
  51. package/dist/fontLocalizeCli.js +1 -1
  52. package/dist/{get-EPGHM2SA.js → get-OINAGI2B.js} +2 -2
  53. package/dist/{grade-compare-LOJWX6SK.js → grade-compare-DY5VFXPK.js} +11 -11
  54. package/dist/{help-6FPZI3WP.js → help-HHB7JRZA.js} +1 -1
  55. package/dist/{history-GRXSUA5R.js → history-D44JJBBC.js} +6 -6
  56. package/dist/hyperframes-player.global.js +1 -1
  57. package/dist/{info-LV7DFCLD.js → info-2WZLISAR.js} +5 -5
  58. package/dist/{init-3J7BSAC3.js → init-UYZS2WXQ.js} +6 -6
  59. package/dist/{inspect-5RON554C.js → inspect-IEFCB4PT.js} +13 -13
  60. package/dist/{keyframes-KHXTHI5C.js → keyframes-FS43QHM2.js} +6 -6
  61. package/dist/{layout-DVWWT2TR.js → layout-AK2A7Q46.js} +13 -13
  62. package/dist/{lint-Q5WFB5ST.js → lint-JRJUSZO7.js} +6 -6
  63. package/dist/{list-RFEUTW6N.js → list-BKKGPT7E.js} +2 -2
  64. package/dist/{login-WBHWA4M2.js → login-QJZTUDDO.js} +4 -4
  65. package/dist/{media-treatment-WRHVNWLS.js → media-treatment-473OM7G7.js} +6 -6
  66. package/dist/{motionShot-BZLRN3SS.js → motionShot-C2YDYRNB.js} +5 -5
  67. package/dist/{normalize-audio-4YXE3RIF.js → normalize-audio-M3KVTFTQ.js} +4 -4
  68. package/dist/{open-MCGYEFML.js → open-363TDMEP.js} +4 -4
  69. package/dist/{play-WXOV3BD7.js → play-2UB33EGB.js} +9 -9
  70. package/dist/{present-RVG4J6CJ.js → present-F3ASSDJX.js} +9 -9
  71. package/dist/{preview-PDUQR2JQ.js → preview-EF76WIHK.js} +5 -5
  72. package/dist/publish-VX5OH4ST.js +1 -1
  73. package/dist/{render-JNJVFBFF.js → render-GL72Z2W2.js} +6 -6
  74. package/dist/{render-5BGU3FXU.js → render-GUBYSVQD.js} +7 -7
  75. package/dist/skills/hyperframes-cli/references/beats.md +2 -6
  76. package/dist/{skills-LKJA27ZN.js → skills-7XI4DHLN.js} +5 -5
  77. package/dist/{skillsUpdateCheck-RFZJKZC4.js → skillsUpdateCheck-34WOCMHV.js} +3 -3
  78. package/dist/{snapshot-EOYA4MLG.js → snapshot-SGTO2OQ4.js} +13 -13
  79. package/dist/{staticProjectServer-S3NK3V4S.js → staticProjectServer-4CQ3KDQK.js} +5 -5
  80. package/dist/studio/assets/{hyperframes-player-CXL23NEv.js → hyperframes-player-C8VFb4NS.js} +1 -1
  81. package/dist/studio/assets/{index-D7BvLHtZ.js → index-J8Bpbg6o.js} +118 -118
  82. package/dist/studio/assets/{index-CejKvBNw.js → index-RZnZPb-B.js} +1 -1
  83. package/dist/studio/index.html +1 -1
  84. package/dist/{studio-api-YM5HLXUS.js → studio-api-RYCDLEOR.js} +3 -3
  85. package/dist/{studioServer-CEXJK5TC.js → studioServer-VIIVGFZH.js} +9 -9
  86. package/dist/{telemetry-7AWYECPL.js → telemetry-YKVYLJSB.js} +3 -3
  87. package/dist/{timeline-G7H373XX.js → timeline-LDRA7QZ3.js} +8 -8
  88. package/dist/{tokens-GYH7NXXA.js → tokens-ZAOFRU55.js} +2 -2
  89. package/dist/{transcribe-CIC7WAT5.js → transcribe-CJXUHTAS.js} +3 -3
  90. package/dist/{updateCheck-MQ44KGUR.js → updateCheck-TIRFQBSI.js} +2 -2
  91. package/dist/{upgrade-OL47SID3.js → upgrade-7R5G3MNO.js} +2 -2
  92. package/dist/{validate-TDCH6X3C.js → validate-VGEPWGQO.js} +11 -11
  93. package/package.json +2 -3
  94. package/dist/audio-GK4OVVTH.js +0 -2086
  95. package/dist/beat-analyzer.global.js +0 -341
  96. package/dist/beats-C3ZSK2R2.js +0 -322
  97. package/dist/lib-TPG2ZMAX.js +0 -128
  98. package/dist/studio/assets/index-Bl_xrA5T.js +0 -1
  99. /package/dist/{capture-ZPRK3TOZ.js → capture-M5ZAD3BI.js} +0 -0
  100. /package/dist/{lambda-4KCSMIM6.js → lambda-RAJA6ZNA.js} +0 -0
@@ -1,128 +0,0 @@
1
- import { createRequire as __hf_createRequire } from "node:module";
2
- import { fileURLToPath as __hf_fileURLToPath } from "node:url";
3
- import { dirname as __hf_dirname } from "node:path";
4
- var require = __hf_createRequire(import.meta.url);
5
- var __filename = __hf_fileURLToPath(import.meta.url);
6
- var __dirname = __hf_dirname(__filename);
7
- import {
8
- __commonJS
9
- } from "./chunk-M2WBOQ2Q.js";
10
-
11
- // ../../node_modules/.bun/bpm-detective@2.0.5/node_modules/bpm-detective/lib/detect.js
12
- var require_detect = __commonJS({
13
- "../../node_modules/.bun/bpm-detective@2.0.5/node_modules/bpm-detective/lib/detect.js"(exports) {
14
- "use strict";
15
- Object.defineProperty(exports, "__esModule", {
16
- value: true
17
- });
18
- exports.default = detect;
19
- var OfflineContext = window.OfflineAudioContext || window.webkitOfflineAudioContext;
20
- function detect(buffer) {
21
- var source = getLowPassSource(buffer);
22
- source.start(0);
23
- return [findPeaks, identifyIntervals, groupByTempo(buffer.sampleRate), getTopCandidate].reduce(function(state, fn) {
24
- return fn(state);
25
- }, source.buffer.getChannelData(0));
26
- }
27
- function getTopCandidate(candidates) {
28
- return candidates.sort(function(a, b) {
29
- return b.count - a.count;
30
- }).splice(0, 5)[0].tempo;
31
- }
32
- function getLowPassSource(buffer) {
33
- var length = buffer.length, numberOfChannels = buffer.numberOfChannels, sampleRate = buffer.sampleRate;
34
- var context = new OfflineContext(numberOfChannels, length, sampleRate);
35
- var source = context.createBufferSource();
36
- source.buffer = buffer;
37
- var filter = context.createBiquadFilter();
38
- filter.type = "lowpass";
39
- source.connect(filter);
40
- filter.connect(context.destination);
41
- return source;
42
- }
43
- function findPeaks(data) {
44
- var peaks = [];
45
- var threshold = 0.9;
46
- var minThresold = 0.3;
47
- var minPeaks = 15;
48
- while (peaks.length < minPeaks && threshold >= minThresold) {
49
- peaks = findPeaksAtThreshold(data, threshold);
50
- threshold -= 0.05;
51
- }
52
- if (peaks.length < minPeaks) {
53
- throw new Error("Could not find enough samples for a reliable detection.");
54
- }
55
- return peaks;
56
- }
57
- function findPeaksAtThreshold(data, threshold) {
58
- var peaks = [];
59
- for (var i = 0, l = data.length; i < l; i += 1) {
60
- if (data[i] > threshold) {
61
- peaks.push(i);
62
- i += 1e4;
63
- }
64
- }
65
- return peaks;
66
- }
67
- function identifyIntervals(peaks) {
68
- var intervals = [];
69
- peaks.forEach(function(peak, index) {
70
- var _loop = function _loop2(i2) {
71
- var interval = peaks[index + i2] - peak;
72
- var foundInterval = intervals.some(function(intervalCount) {
73
- if (intervalCount.interval === interval) {
74
- return intervalCount.count += 1;
75
- }
76
- });
77
- if (!foundInterval) {
78
- intervals.push({
79
- interval,
80
- count: 1
81
- });
82
- }
83
- };
84
- for (var i = 0; i < 10; i += 1) {
85
- _loop(i);
86
- }
87
- });
88
- return intervals;
89
- }
90
- function groupByTempo(sampleRate) {
91
- return function(intervalCounts) {
92
- var tempoCounts = [];
93
- intervalCounts.forEach(function(intervalCount) {
94
- if (intervalCount.interval !== 0) {
95
- var theoreticalTempo = 60 / (intervalCount.interval / sampleRate);
96
- while (theoreticalTempo < 90) {
97
- theoreticalTempo *= 2;
98
- }
99
- while (theoreticalTempo > 180) {
100
- theoreticalTempo /= 2;
101
- }
102
- theoreticalTempo = Math.round(theoreticalTempo);
103
- var foundTempo = tempoCounts.some(function(tempoCount) {
104
- if (tempoCount.tempo === theoreticalTempo) {
105
- return tempoCount.count += intervalCount.count;
106
- }
107
- });
108
- if (!foundTempo) {
109
- tempoCounts.push({
110
- tempo: theoreticalTempo,
111
- count: intervalCount.count
112
- });
113
- }
114
- }
115
- });
116
- return tempoCounts;
117
- };
118
- }
119
- }
120
- });
121
-
122
- // ../../node_modules/.bun/bpm-detective@2.0.5/node_modules/bpm-detective/lib/index.js
123
- var require_lib = __commonJS({
124
- "../../node_modules/.bun/bpm-detective@2.0.5/node_modules/bpm-detective/lib/index.js"(exports, module) {
125
- module.exports = require_detect().default;
126
- }
127
- });
128
- export default require_lib();
@@ -1 +0,0 @@
1
- import{h as P}from"./index-D7BvLHtZ.js";function j(c,d){for(var s=0;s<d.length;s++){const a=d[s];if(typeof a!="string"&&!Array.isArray(a)){for(const i in a)if(i!=="default"&&!(i in c)){const l=Object.getOwnPropertyDescriptor(a,i);l&&Object.defineProperty(c,i,l.get?l:{enumerable:!0,get:()=>a[i]})}}}return Object.freeze(Object.defineProperty(c,Symbol.toStringTag,{value:"Module"}))}var v={},w;function k(){if(w)return v;w=1,Object.defineProperty(v,"__esModule",{value:!0}),v.default=d;var c=window.OfflineAudioContext||window.webkitOfflineAudioContext;function d(e){var r=a(e);return r.start(0),[i,y,O(e.sampleRate),s].reduce(function(t,o){return o(t)},r.buffer.getChannelData(0))}function s(e){return e.sort(function(r,t){return t.count-r.count}).splice(0,5)[0].tempo}function a(e){var r=e.length,t=e.numberOfChannels,o=e.sampleRate,n=new c(t,r,o),u=n.createBufferSource();u.buffer=e;var f=n.createBiquadFilter();return f.type="lowpass",u.connect(f),f.connect(n.destination),u}function i(e){for(var r=[],t=.9,o=.3,n=15;r.length<n&&t>=o;)r=l(e,t),t-=.05;if(r.length<n)throw new Error("Could not find enough samples for a reliable detection.");return r}function l(e,r){for(var t=[],o=0,n=e.length;o<n;o+=1)e[o]>r&&(t.push(o),o+=1e4);return t}function y(e){var r=[];return e.forEach(function(t,o){for(var n=function(x){var h=e[o+x]-t,_=r.some(function(g){if(g.interval===h)return g.count+=1});_||r.push({interval:h,count:1})},u=0;u<10;u+=1)n(u)}),r}function O(e){return function(r){var t=[];return r.forEach(function(o){if(o.interval!==0){for(var n=60/(o.interval/e);n<90;)n*=2;for(;n>180;)n/=2;n=Math.round(n);var u=t.some(function(f){if(f.tempo===n)return f.count+=o.count});u||t.push({tempo:n,count:o.count})}}),t}}return v}var p,b;function q(){return b||(b=1,p=k().default),p}var m=q();const A=P(m),D=j({__proto__:null,default:A},[m]);export{D as i};
File without changes