Update sample inclusion details for Ableton export and add test case for pad classification
This commit is contained in:
@@ -208,6 +208,20 @@ test('uses one hybrid classification for Arrangement and Session exports', () =>
|
||||
assert.deepEqual(trackShape(arrangement.tracks), trackShape(session.tracks));
|
||||
});
|
||||
|
||||
test('classifies a pad from its distinct pitches across every exported scene', () => {
|
||||
const data = project();
|
||||
data.scenes[0].patterns[1].notes = [note(60, 0)];
|
||||
data.scenes[1].patterns[1].notes = [note(61, 0)];
|
||||
const result = abletonTransformer(data, { includeArchivedSamples: true });
|
||||
const rack = result.tracks.find((track) => track.drumRack);
|
||||
|
||||
assert.deepEqual(
|
||||
rack?.tracks.map((track) => track.padCode),
|
||||
['a0'],
|
||||
);
|
||||
assert.ok(result.tracks.some((track) => track.padCode === 'a1' && !track.drumRack));
|
||||
});
|
||||
|
||||
test('does not create selector-note racks when samples are excluded', () => {
|
||||
const result = abletonTransformer(project(), {
|
||||
includeArchivedSamples: false,
|
||||
|
||||
Reference in New Issue
Block a user