modularity
This commit is contained in:
@ -32,6 +32,15 @@ export const ENGINE_CONTROLS: EffectConfig[] = [
|
||||
step: 1,
|
||||
unit: ''
|
||||
},
|
||||
{
|
||||
id: 'bitDepth',
|
||||
label: 'Bit Depth',
|
||||
min: 0,
|
||||
max: 2,
|
||||
default: 0,
|
||||
step: 1,
|
||||
unit: ''
|
||||
},
|
||||
{
|
||||
id: 'masterVolume',
|
||||
label: 'Volume',
|
||||
@ -86,16 +95,41 @@ export const EFFECTS: EffectConfig[] = [
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'tbd',
|
||||
name: 'TBD',
|
||||
id: 'bitcrush',
|
||||
name: 'Bitcrush',
|
||||
parameters: [
|
||||
{
|
||||
id: 'tbdParam',
|
||||
label: 'TBD',
|
||||
id: 'bitcrushDepth',
|
||||
label: 'Depth',
|
||||
min: 1,
|
||||
max: 16,
|
||||
default: 16,
|
||||
step: 1,
|
||||
unit: 'bit'
|
||||
},
|
||||
{
|
||||
id: 'bitcrushRate',
|
||||
label: 'Rate',
|
||||
min: 0,
|
||||
max: 100,
|
||||
default: 0,
|
||||
step: 1
|
||||
step: 1,
|
||||
unit: '%'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
id: 'clipmode',
|
||||
name: 'Clip Mode',
|
||||
parameters: [
|
||||
{
|
||||
id: 'clipMode',
|
||||
label: 'Mode',
|
||||
min: 0,
|
||||
max: 2,
|
||||
default: 0,
|
||||
step: 1,
|
||||
unit: ''
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -125,9 +159,4 @@ export const SAMPLE_RATES = [4000, 8000, 16000, 22050]
|
||||
|
||||
export function getSampleRateFromIndex(index: number): number {
|
||||
return SAMPLE_RATES[index] || 8000
|
||||
}
|
||||
|
||||
export function getComplexityLabel(index: number): string {
|
||||
const labels = ['Simple', 'Medium', 'Complex']
|
||||
return labels[index] || 'Medium'
|
||||
}
|
||||
Reference in New Issue
Block a user