Add tests for sidechain and advanced effect parsing

This commit is contained in:
2026-07-14 11:50:58 +02:00
parent a5f0959752
commit 481e2b8902

View File

@@ -39,6 +39,16 @@ test('parses output compressor state from a 144-byte file without sidechain stat
assert.equal(effects.sidechain, undefined);
});
test('parses sidechain controls from a 152-byte file without inventing routing', () => {
const fixture = effectsFile(152);
fixture.view.setFloat32(144, 0.25, true);
fixture.view.setFloat32(148, 0.75, true);
const effects = collectEffects([fixture.file]);
assert.deepEqual(effects.sidechain, { length: 0.25, shape: 0.75, routing: undefined });
});
test('parses P07-like output dynamics and sidechain state from a 160-byte file', () => {
const fixture = effectsFile(160);
fixture.view.setFloat32(32, 0.5, true);