hyperframes 0.8.160 → 0.8.162
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/{add-OGBTJCU4.js → add-UW7GCPQF.js} +5 -5
- package/dist/{asset-DKQFFGPP.js → asset-TWBPYQOL.js} +2 -2
- package/dist/audio-DJIE4YLH.js +1153 -0
- package/dist/{auth-AQMRAFXN.js → auth-VTCEZYBT.js} +1 -1
- package/dist/{autoUpdate-NFQB7V2X.js → autoUpdate-JA3SV472.js} +2 -2
- package/dist/{backgroundChecks-7JKE2FIU.js → backgroundChecks-J3WJDPQJ.js} +3 -3
- package/dist/backgroundChecksWorker.js +3 -3
- package/dist/beats-QVJVXZV5.js +239 -0
- package/dist/{benchmark-RRU67WEY.js → benchmark-WNBAKOXS.js} +5 -5
- package/dist/{browser-K4TP4ZM2.js → browser-VJOTRIXL.js} +3 -3
- package/dist/{capture-T2TBROMS.js → capture-GUO23PVN.js} +1 -1
- package/dist/{catalog-IMIHQ4KX.js → catalog-SAC4GFIN.js} +5 -5
- package/dist/{catch-up-UY5MJWOG.js → catch-up-T5RIRFJF.js} +4 -4
- package/dist/{check-6NAJSJHQ.js → check-IRETF27J.js} +18 -18
- package/dist/{checkBrowser-JWNQFYTY.js → checkBrowser-5IXR4QCK.js} +14 -14
- package/dist/{chunk-VZ6LCTOZ.js → chunk-3LQEZ4EI.js} +1 -1
- package/dist/{chunk-TU2CQJO3.js → chunk-3NSVHCOH.js} +2 -2
- package/dist/{chunk-D2WGLWIK.js → chunk-5K34RPE5.js} +2 -2
- package/dist/{chunk-IYLHJV34.js → chunk-5UBZPG74.js} +1 -143
- package/dist/{chunk-VD7WQYTO.js → chunk-5YSHR4XC.js} +5 -5
- package/dist/{chunk-D46G5IQH.js → chunk-AAUK5GDI.js} +7 -7
- package/dist/{chunk-GOASXWDD.js → chunk-FF5TAEPT.js} +1 -1
- package/dist/chunk-FFJ5TDRD.js +1181 -0
- package/dist/{chunk-PINFPWRV.js → chunk-GIPNECWL.js} +12 -10
- package/dist/{chunk-KWRBEDJI.js → chunk-GNFWKGSQ.js} +2 -2
- package/dist/{chunk-4VYNMVMC.js → chunk-GS5EXZBV.js} +4 -4
- package/dist/chunk-J4L5TPLS.js +101 -0
- package/dist/{chunk-V2FQQILJ.js → chunk-JJYFRAI4.js} +1 -1
- package/dist/{chunk-IGTGLGML.js → chunk-KAKBRDU4.js} +2 -2
- package/dist/{chunk-TTFDAWCS.js → chunk-KIJO75L4.js} +1 -1
- package/dist/{chunk-3XPVZLAR.js → chunk-NQR5SBXX.js} +1 -1
- package/dist/{chunk-6MCASYIS.js → chunk-ON2HYNGB.js} +4 -4
- package/dist/{chunk-GOTCGKX6.js → chunk-RGYEL7QD.js} +1 -1
- package/dist/{chunk-7OFNPEKR.js → chunk-S6OLD4SL.js} +2 -2
- package/dist/{chunk-FRGYHRP6.js → chunk-T5BG7PYZ.js} +1 -1
- package/dist/{chunk-MYGXKD7A.js → chunk-T65MIV36.js} +2 -2
- package/dist/chunk-TDPVEMBS.js +156 -0
- package/dist/{chunk-SHVDJON6.js → chunk-XWWYGXJ5.js} +1 -1
- package/dist/{chunk-37LNY2EC.js → chunk-YJKUE3LV.js} +1 -1
- package/dist/{chunk-KRE55WLI.js → chunk-YLBV2PXM.js} +1 -1
- package/dist/{chunk-ICZVCVD3.js → chunk-ZEWX3GHP.js} +1 -1
- package/dist/{clean-RRE6PMKZ.js → clean-WB62QULT.js} +6 -6
- package/dist/cli.js +49 -49
- package/dist/{cloud-OIR6K7TS.js → cloud-E5WB4DWZ.js} +4 -4
- package/dist/{compare-E57W737I.js → compare-GHFVHZ5A.js} +11 -11
- package/dist/{component-I2O4AX56.js → component-ZGCC3MHX.js} +3 -3
- package/dist/{compositions-B6NKZHIN.js → compositions-THPEDDIX.js} +5 -5
- package/dist/{delete-DTUNBC6K.js → delete-6FWT7DZX.js} +4 -3
- package/dist/{doctor-SCNB73Z3.js → doctor-RDGDOUC4.js} +3 -3
- package/dist/{events-6LQNRKHZ.js → events-CU6FDXHC.js} +3 -3
- package/dist/{events-Q37UJL36.js → events-VHXICDA2.js} +2 -2
- package/dist/{feedback-FOEBE2OW.js → feedback-PUPN6EKP.js} +5 -5
- package/dist/{figma-54MRTBKH.js → figma-ZKWBF7QH.js} +3 -3
- package/dist/fontLocalizeCli.js +1 -1
- package/dist/{get-EPGHM2SA.js → get-JHIBQRPM.js} +4 -3
- package/dist/{grade-compare-LOJWX6SK.js → grade-compare-GPLUXDPW.js} +11 -11
- package/dist/{help-6FPZI3WP.js → help-GO6RGM37.js} +1 -1
- package/dist/{history-GRXSUA5R.js → history-RUTC4SH5.js} +6 -6
- package/dist/hyperframes-player.global.js +1 -1
- package/dist/{info-LV7DFCLD.js → info-773VXW37.js} +5 -5
- package/dist/{init-3J7BSAC3.js → init-YXSIRYZI.js} +6 -6
- package/dist/{inspect-5RON554C.js → inspect-L4RRJEAA.js} +13 -13
- package/dist/{keyframes-KHXTHI5C.js → keyframes-P5IOQ6AM.js} +6 -6
- package/dist/{layout-DVWWT2TR.js → layout-OH2VTN5E.js} +13 -13
- package/dist/{lint-Q5WFB5ST.js → lint-YEEPVE6Q.js} +6 -6
- package/dist/{list-RFEUTW6N.js → list-QURRZTVN.js} +4 -3
- package/dist/{login-WBHWA4M2.js → login-DFT4L5YY.js} +4 -4
- package/dist/{media-treatment-WRHVNWLS.js → media-treatment-ERQ2PBIN.js} +6 -6
- package/dist/{motionShot-BZLRN3SS.js → motionShot-C2YDYRNB.js} +5 -5
- package/dist/{normalize-audio-4YXE3RIF.js → normalize-audio-R23VODOA.js} +4 -4
- package/dist/{open-MCGYEFML.js → open-GEOB4L3S.js} +4 -4
- package/dist/{play-WXOV3BD7.js → play-BYUS37GA.js} +9 -9
- package/dist/{present-RVG4J6CJ.js → present-BZLRNHDY.js} +9 -9
- package/dist/{preview-PDUQR2JQ.js → preview-TXML6PQ7.js} +5 -5
- package/dist/publish-VX5OH4ST.js +1 -1
- package/dist/{render-5BGU3FXU.js → render-57SXH6NS.js} +7 -7
- package/dist/{render-JNJVFBFF.js → render-JTY7XQFQ.js} +11 -86
- package/dist/skills/hyperframes-cli/references/beats.md +2 -6
- package/dist/{skills-LKJA27ZN.js → skills-2LBVMKVY.js} +5 -5
- package/dist/{skillsUpdateCheck-RFZJKZC4.js → skillsUpdateCheck-5DRXL565.js} +3 -3
- package/dist/{snapshot-EOYA4MLG.js → snapshot-V2L77FCF.js} +13 -13
- package/dist/{staticProjectServer-S3NK3V4S.js → staticProjectServer-4CQ3KDQK.js} +5 -5
- package/dist/studio/assets/{hyperframes-player-CXL23NEv.js → hyperframes-player-CAclPB6q.js} +1 -1
- package/dist/studio/assets/{index-D7BvLHtZ.js → index-B82aOvgB.js} +118 -118
- package/dist/studio/assets/{index-CejKvBNw.js → index-DCwGKghK.js} +1 -1
- package/dist/studio/index.html +1 -1
- package/dist/{studio-api-YM5HLXUS.js → studio-api-RYCDLEOR.js} +3 -3
- package/dist/{studioServer-CEXJK5TC.js → studioServer-B7H7EQ4U.js} +9 -9
- package/dist/{telemetry-7AWYECPL.js → telemetry-WVHWY3DU.js} +3 -3
- package/dist/{timeline-G7H373XX.js → timeline-EDXJ5L45.js} +8 -8
- package/dist/{tokens-GYH7NXXA.js → tokens-UNJONAXT.js} +2 -2
- package/dist/{transcribe-CIC7WAT5.js → transcribe-VX7ZE2IZ.js} +3 -3
- package/dist/{updateCheck-MQ44KGUR.js → updateCheck-NLH5E44Q.js} +2 -2
- package/dist/{upgrade-OL47SID3.js → upgrade-RGQJA2B4.js} +2 -2
- package/dist/{validate-TDCH6X3C.js → validate-4AN4PDV7.js} +11 -11
- package/package.json +2 -3
- package/dist/audio-GK4OVVTH.js +0 -2086
- package/dist/beat-analyzer.global.js +0 -341
- package/dist/beats-C3ZSK2R2.js +0 -322
- package/dist/lib-TPG2ZMAX.js +0 -128
- package/dist/studio/assets/index-Bl_xrA5T.js +0 -1
- /package/dist/{capture-ZPRK3TOZ.js → capture-M5ZAD3BI.js} +0 -0
- /package/dist/{lambda-4KCSMIM6.js → lambda-RAJA6ZNA.js} +0 -0
package/dist/lib-TPG2ZMAX.js
DELETED
|
@@ -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
|
|
File without changes
|