Files
bruitiste/src/utils/formatters.ts
2025-09-30 14:20:50 +02:00

20 lines
569 B
TypeScript

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`
}