temporary
This commit is contained in:
67
src/config/effects.ts
Normal file
67
src/config/effects.ts
Normal file
@ -0,0 +1,67 @@
|
||||
import type { EffectConfig } from '../types/effects'
|
||||
|
||||
export const EFFECTS: EffectConfig[] = [
|
||||
{
|
||||
id: 'reverb',
|
||||
name: 'Reverb',
|
||||
parameters: [
|
||||
{
|
||||
id: 'reverbWetDry',
|
||||
label: 'Reverb',
|
||||
min: 0,
|
||||
max: 100,
|
||||
default: 0,
|
||||
step: 1,
|
||||
unit: '%'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'delay',
|
||||
name: 'Ping Pong Delay',
|
||||
parameters: [
|
||||
{
|
||||
id: 'delayTime',
|
||||
label: 'Time',
|
||||
min: 0,
|
||||
max: 1000,
|
||||
default: 250,
|
||||
step: 10,
|
||||
unit: 'ms'
|
||||
},
|
||||
{
|
||||
id: 'delayFeedback',
|
||||
label: 'Feedback',
|
||||
min: 0,
|
||||
max: 100,
|
||||
default: 50,
|
||||
step: 1,
|
||||
unit: '%'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'tbd',
|
||||
name: 'TBD',
|
||||
parameters: [
|
||||
{
|
||||
id: 'tbdParam',
|
||||
label: 'TBD',
|
||||
min: 0,
|
||||
max: 100,
|
||||
default: 0,
|
||||
step: 1
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
export function getDefaultEffectValues(): Record<string, number> {
|
||||
const defaults: Record<string, number> = {}
|
||||
EFFECTS.forEach(effect => {
|
||||
effect.parameters.forEach(param => {
|
||||
defaults[param.id] = param.default
|
||||
})
|
||||
})
|
||||
return defaults
|
||||
}
|
||||
Reference in New Issue
Block a user