Add tests for sidechain and advanced effect parsing
This commit is contained in:
@@ -39,6 +39,16 @@ test('parses output compressor state from a 144-byte file without sidechain stat
|
|||||||
assert.equal(effects.sidechain, undefined);
|
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', () => {
|
test('parses P07-like output dynamics and sidechain state from a 160-byte file', () => {
|
||||||
const fixture = effectsFile(160);
|
const fixture = effectsFile(160);
|
||||||
fixture.view.setFloat32(32, 0.5, true);
|
fixture.view.setFloat32(32, 0.5, true);
|
||||||
|
|||||||
Reference in New Issue
Block a user