style(frontend): apply ultracite 7.12 formatting and lint rules
This commit is contained in:
1 parent
fc4758aa0b
commit
c8e5cff871
109 files changed
+845
-817
No files matched your search
@@ -13,10 +13,10 @@ export async function computeWaveform(
|
||||
const data = audio.getChannelData(0);
|
||||
const block = Math.max(1, Math.floor(data.length / bars));
|
||||
const peaks: number[] = [];
|
||||
for (let i = 0; i < bars; i++) {
|
||||
for (let i = 0; i < bars; i += 1) {
|
||||
const start = i * block;
|
||||
let max = 0;
|
||||
for (let j = 0; j < block; j++) {
|
||||
for (let j = 0; j < block; j += 1) {
|
||||
const value = Math.abs(data[start + j] ?? 0);
|
||||
if (value > max) {
|
||||
max = value;
|
||||
|
||||
Reference in new issue
Block a user