Update Ableton export logic to use comprehensive playback state parameters

This commit is contained in:
2026-07-13 15:58:10 +02:00
parent cdbe72e775
commit e4ef0f97cd
8 changed files with 28 additions and 125 deletions

View File

@@ -1,5 +1,5 @@
import { z } from 'zod';
import { ExportFormatId, PadCode } from '../../../types/types';
import { ExportFormatId } from '../../../types/types';
const FORMAT_IDS: [ExportFormatId, ...ExportFormatId[]] = [
'ableton',
@@ -11,9 +11,6 @@ const FORMAT_IDS: [ExportFormatId, ...ExportFormatId[]] = [
export const exportFormSchema = z.object({
format: z.enum(FORMAT_IDS),
abletonVersion: z.enum(['10', '11']),
abletonOneShotPads: z.array(
z.custom<PadCode>((value) => typeof value === 'string' && /^[abcd]\d+$/.test(value)),
),
projectName: z.string(),
includeArchivedSamples: z.boolean(),
exportAllPadsWithSamples: z.boolean(),