Update Ableton export logic to use comprehensive playback state parameters
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user