Merge pull request #10 from Boof2015/VSTs

Add cross platform VSTs
This commit is contained in:
Boof2015
2026-06-03 10:21:21 -04:00
committed by GitHub
parent 180d0dbef5
commit 63ef5ffa0f
63 changed files with 5617 additions and 66 deletions
+30
View File
@@ -0,0 +1,30 @@
import type { ScopeSettings } from '../types/settings'
import type { ResolvedVectorscopeTheme } from '../types/theme'
import type { VectorscopeOptions } from '../renderer/visualizers/Vectorscope'
/**
* Map Prism's vectorscope settings + resolved theme to Vectorscope options.
* Mirrors the `vectorscope` case of `scopeSettingsToOptions` in ScopeModule.tsx.
*/
export function vectorscopeSettingsToOptions(
settings: ScopeSettings['vectorscope'],
theme: ResolvedVectorscopeTheme,
): VectorscopeOptions {
return {
lineColor: theme.trace,
backgroundColor: theme.background,
gridMajorColor: theme.guides,
gridMinorColor: theme.guidesSecondary,
labelColor: theme.labels,
bandColors: {
low: theme.bandLow,
mid: theme.bandMid,
high: theme.bandHigh,
},
mode: settings.mode,
multiband: settings.multiband,
showGrid: settings.showGrid,
persistence: settings.persistence,
lineWidth: settings.lineWidth,
}
}