Add piano mono/poly, octave, and expanded drum voice set
This commit is contained in:
@@ -52,6 +52,8 @@ type MessageHandlerDeps = {
|
||||
keyId: string;
|
||||
midi: number;
|
||||
instrument: string;
|
||||
voiceMode: 'mono' | 'poly';
|
||||
octave: number;
|
||||
attack: number;
|
||||
decay: number;
|
||||
release: number;
|
||||
@@ -275,6 +277,8 @@ export function createOnMessageHandler(deps: MessageHandlerDeps): (message: Inco
|
||||
keyId: message.keyId,
|
||||
midi: message.midi,
|
||||
instrument: message.instrument,
|
||||
voiceMode: message.voiceMode,
|
||||
octave: message.octave,
|
||||
attack: message.attack,
|
||||
decay: message.decay,
|
||||
release: message.release,
|
||||
|
||||
@@ -158,6 +158,8 @@ export const itemPianoNoteSchema = z.object({
|
||||
midi: z.number().int().min(0).max(127),
|
||||
on: z.boolean(),
|
||||
instrument: z.string(),
|
||||
voiceMode: z.enum(['mono', 'poly']),
|
||||
octave: z.number().int().min(-2).max(2),
|
||||
attack: z.number().int().min(0).max(100),
|
||||
decay: z.number().int().min(0).max(100),
|
||||
release: z.number().int().min(0).max(100),
|
||||
|
||||
Reference in New Issue
Block a user