Update pattern naming logic and corresponding test cases for Ableton Live export
This commit is contained in:
@@ -133,7 +133,7 @@ function project(): ProjectRawData {
|
||||
pattern('a', 1, 2, 0, 60),
|
||||
pattern('b', 2, 1, 0, 36),
|
||||
pattern('a', 3, 1, 1, 64),
|
||||
pattern('c', 3, 1, 0, 67),
|
||||
pattern('c', 3, 2, 0, 67),
|
||||
pattern('b', 1, 1, 0, 38),
|
||||
faderPattern('d', 2),
|
||||
],
|
||||
@@ -183,7 +183,7 @@ test('combines genuine Session scenes, orphan patterns and the repeated Song Arr
|
||||
[
|
||||
['01', 'scene', ['a', 'b', 'c', 'd']],
|
||||
['02', 'scene', ['a', 'b', 'c', 'd']],
|
||||
['B PATTERN 01', 'pattern', ['b']],
|
||||
['PATTERN 01 (B)', 'pattern', ['b']],
|
||||
['PATTERN 03 (A/C)', 'pattern', ['a', 'c']],
|
||||
],
|
||||
);
|
||||
@@ -223,6 +223,7 @@ test('combines genuine Session scenes, orphan patterns and the repeated Song Arr
|
||||
[3],
|
||||
);
|
||||
assert.deepEqual(a1?.lane?.arrangementClips, []);
|
||||
assert.equal(a1?.lane?.sessionClips[0].loopDuration, 4);
|
||||
assert.deepEqual(
|
||||
b0?.lane?.sessionClips.map((clip) => clip.sceneIndex),
|
||||
[0, 2],
|
||||
@@ -236,6 +237,7 @@ test('combines genuine Session scenes, orphan patterns and the repeated Song Arr
|
||||
[3],
|
||||
);
|
||||
assert.deepEqual(c0?.lane?.arrangementClips, []);
|
||||
assert.equal(c0?.lane?.sessionClips[0].loopDuration, 8);
|
||||
});
|
||||
|
||||
test('keeps Session material and leaves Arrangement empty when no Song is present', () => {
|
||||
|
||||
Reference in New Issue
Block a user