feat!: display the parameters as knobs in a grid

Also removed the negbandpass & neghighpass parameters
and replaced them with bandpass & highpass set to -1, to
fit the switches better to the GUI.

Closes #51, closes #173
This commit is contained in:
5684185+vsariola@users.noreply.github.com
2025-06-26 10:38:38 +03:00
parent c3caa8de11
commit 666af9433e
116 changed files with 3663 additions and 2049 deletions

View File

@ -320,7 +320,7 @@ func read4klangVCO(vals [15]byte, version int) []Unit {
func read4klangVCF(vals [15]byte, _ int) []Unit {
flags := vals[2]
var stereo, lowpass, bandpass, highpass, neghighpass int
var stereo, lowpass, bandpass, highpass int
if flags&0x01 == 0x01 {
lowpass = 1
}
@ -332,7 +332,7 @@ func read4klangVCF(vals [15]byte, _ int) []Unit {
}
if flags&0x08 == 0x08 {
lowpass = 1
neghighpass = 1
highpass = -1
}
if flags&0x10 == 0x10 {
stereo = 1
@ -340,14 +340,12 @@ func read4klangVCF(vals [15]byte, _ int) []Unit {
return []Unit{{
Type: "filter",
Parameters: map[string]int{
"stereo": stereo,
"frequency": int(vals[0]),
"resonance": int(vals[1]),
"lowpass": lowpass,
"bandpass": bandpass,
"highpass": highpass,
"negbandpass": 0,
"neghighpass": neghighpass,
"stereo": stereo,
"frequency": int(vals[0]),
"resonance": int(vals[1]),
"lowpass": lowpass,
"bandpass": bandpass,
"highpass": highpass,
}},
}
}