feat: add matrix section

This commit is contained in:
2026-08-12 18:45:57 +02:00
parent eb751f9404
commit 00adc4df53
16 changed files with 657 additions and 1986 deletions
+41 -1
View File
@@ -1,4 +1,4 @@
import { DiscreteFrequency, InputChannel } from './types';
import { DiscreteFrequency, InputChannel, OutputChannel } from './types';
export const INPUT_ORDER: InputChannel[] = [
InputChannel.InA,
@@ -7,6 +7,17 @@ export const INPUT_ORDER: InputChannel[] = [
InputChannel.InD,
];
export const OUTPUT_ORDER: OutputChannel[] = [
OutputChannel.Out1,
OutputChannel.Out2,
OutputChannel.Out3,
OutputChannel.Out4,
OutputChannel.Out5,
OutputChannel.Out6,
OutputChannel.Out7,
OutputChannel.Out8,
];
export const DISCRETE_FREQUENCIES: Record<DiscreteFrequency, number> = {
[DiscreteFrequency.F20]: 20,
[DiscreteFrequency.F25]: 25,
@@ -82,8 +93,37 @@ export const GEQ_GAIN_MIN = -12;
export const GEQ_GAIN_MAX = 12;
export const GEQ_GAIN_STEP = 0.1;
// ------ Matrix constants ------
export const MATRIX_GAIN_MIN = -60;
export const MATRIX_GAIN_MAX = 0;
export const MATRIX_GAIN_STEP = 0.1;
// ------ Graph constants ------
export const GRAPH_X_MIN = 10;
export const GRAPH_X_MAX = 30000;
export const GRAPH_Y_MIN = -21;
export const GRAPH_Y_MAX = 21;
// ------ App ------
export type SidebarId =
| 'overview'
| 'gain'
| 'gate'
| 'compressor'
| 'limiter'
| 'delay'
| 'matrix'
| 'geq'
| 'ina'
| 'inb'
| 'inc'
| 'ind'
| 'out1'
| 'out2'
| 'out3'
| 'out4'
| 'out5'
| 'out6'
| 'out7'
| 'out8'
| 'miscellaneous';