Feat: Add one-shot pad override controls for export

This commit is contained in:
2026-07-13 10:17:05 +02:00
parent 89df0e4641
commit e2eecb5b75
3 changed files with 74 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import { z } from 'zod';
import { ExportFormatId } from '../../../types/types';
import { ExportFormatId, PadCode } from '../../../types/types';
const FORMAT_IDS: [ExportFormatId, ...ExportFormatId[]] = [
'ableton',
@@ -11,6 +11,11 @@ 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(),