diff --git a/src/hooks/useExportProject.ts b/src/hooks/useExportProject.ts index 6487b55..67d25f0 100644 --- a/src/hooks/useExportProject.ts +++ b/src/hooks/useExportProject.ts @@ -18,7 +18,7 @@ import { getCustomSceneNames } from './useSceneName'; export const EXPORT_FORMATS: ExportFormat[] = [ { - name: 'Ableton 11+', + name: 'Ableton Live', value: 'ableton', }, { diff --git a/src/routes/home/Export/ExportOptions.tsx b/src/routes/home/Export/ExportOptions.tsx index 1301bc9..735a5fb 100644 --- a/src/routes/home/Export/ExportOptions.tsx +++ b/src/routes/home/Export/ExportOptions.tsx @@ -3,6 +3,7 @@ import { useMemo } from 'preact/hooks'; import { useFormContext, useWatch } from 'react-hook-form'; import { projectIdAtom } from '~/atoms/project'; import CheckboxField from '~/components/form/CheckboxField'; +import SelectField from '~/components/form/SelectField'; import useProject from '~/hooks/useProject'; import { hasMultipleNoteVariations } from '~/lib/utils'; import { ExportFormValues } from './exportFormSchema'; @@ -89,6 +90,13 @@ function ExportOptions({ disabled = false }: { disabled?: boolean }) { {format === 'ableton' && ( <> + )} - {!result && !percentage && ( - -

- Want fader automation support? Get EP Toolkit: desktop app for - exporting, sample management, backups and more.{' '} -

- EP Toolkit -
- )}
diff --git a/src/routes/home/Export/exportFormSchema.ts b/src/routes/home/Export/exportFormSchema.ts index 6c6dc4f..60e7a3a 100644 --- a/src/routes/home/Export/exportFormSchema.ts +++ b/src/routes/home/Export/exportFormSchema.ts @@ -10,6 +10,7 @@ const FORMAT_IDS: [ExportFormatId, ...ExportFormatId[]] = [ export const exportFormSchema = z.object({ format: z.enum(FORMAT_IDS), + abletonVersion: z.enum(['10', '11']), projectName: z.string(), includeArchivedSamples: z.boolean(), exportAllPadsWithSamples: z.boolean(), @@ -28,6 +29,7 @@ export type ExportFormValues = z.infer; export const PERSISTED_FIELDS: (keyof ExportFormValues)[] = [ 'format', + 'abletonVersion', 'includeArchivedSamples', 'exportAllPadsWithSamples', 'clips', diff --git a/src/types/types.ts b/src/types/types.ts index bd80ce4..7f66287 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -216,6 +216,7 @@ export type ExportFormat = { }; export type ExporterParams = { + abletonVersion?: '10' | '11'; projectName?: string; // custom project name for exported files includeArchivedSamples?: boolean; exportAllPadsWithSamples?: boolean; // export all pads with assigned samples even if not used