modularity
This commit is contained in:
20
src/utils/formatters.ts
Normal file
20
src/utils/formatters.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import { SAMPLE_RATES } from '../config/effects'
|
||||
|
||||
export function getComplexityLabel(index: number): string {
|
||||
const labels = ['Simple', 'Medium', 'Complex']
|
||||
return labels[index] || 'Medium'
|
||||
}
|
||||
|
||||
export function getBitDepthLabel(index: number): string {
|
||||
const labels = ['8bit', '16bit', '24bit']
|
||||
return labels[index] || '8bit'
|
||||
}
|
||||
|
||||
export function getClipModeLabel(index: number): string {
|
||||
const labels = ['Wrap', 'Clamp', 'Fold']
|
||||
return labels[index] || 'Wrap'
|
||||
}
|
||||
|
||||
export function getSampleRateLabel(index: number): string {
|
||||
return `${SAMPLE_RATES[index]}Hz`
|
||||
}
|
||||
Reference in New Issue
Block a user