Playing with settings
This commit is contained in:
@@ -37,6 +37,7 @@ import nl.astraeus.vst.chip.audio.VstChipWorklet
|
||||
import nl.astraeus.vst.chip.audio.VstChipWorklet.midiChannel
|
||||
import nl.astraeus.vst.chip.midi.Midi
|
||||
import nl.astraeus.vst.chip.ws.WebsocketClient
|
||||
import nl.astraeus.vst.ui.components.ExpKnobComponent
|
||||
import nl.astraeus.vst.ui.components.KnobComponent
|
||||
import nl.astraeus.vst.ui.css.Css
|
||||
import nl.astraeus.vst.ui.css.Css.defineCss
|
||||
@@ -236,12 +237,12 @@ object MainView : Komponent(), CssName {
|
||||
}
|
||||
div(ControlsCss.name) {
|
||||
include(
|
||||
KnobComponent(
|
||||
ExpKnobComponent(
|
||||
value = VstChipWorklet.volume,
|
||||
label = "Volume",
|
||||
minValue = 0.0,
|
||||
minValue = 0.005,
|
||||
maxValue = 1.0,
|
||||
step = 2.0 / 127.0,
|
||||
step = 5.0 / 127.0,
|
||||
width = 100,
|
||||
height = 120,
|
||||
) { value ->
|
||||
@@ -262,12 +263,12 @@ object MainView : Komponent(), CssName {
|
||||
}
|
||||
)
|
||||
include(
|
||||
KnobComponent(
|
||||
ExpKnobComponent(
|
||||
value = VstChipWorklet.fmModFreq,
|
||||
label = "FM Freq",
|
||||
minValue = 0.0,
|
||||
minValue = 0.005,
|
||||
maxValue = 1.0,
|
||||
step = 2.0 / 127.0,
|
||||
step = 5.0 / 127.0,
|
||||
width = 100,
|
||||
height = 120,
|
||||
) { value ->
|
||||
@@ -275,12 +276,12 @@ object MainView : Komponent(), CssName {
|
||||
}
|
||||
)
|
||||
include(
|
||||
KnobComponent(
|
||||
ExpKnobComponent(
|
||||
value = VstChipWorklet.fmModAmp,
|
||||
label = "FM Ampl",
|
||||
minValue = 0.0,
|
||||
minValue = 0.005,
|
||||
maxValue = 1.0,
|
||||
step = 2.0 / 127.0,
|
||||
step = 5.0 / 127.0,
|
||||
width = 100,
|
||||
height = 120,
|
||||
) { value ->
|
||||
@@ -288,12 +289,12 @@ object MainView : Komponent(), CssName {
|
||||
}
|
||||
)
|
||||
include(
|
||||
KnobComponent(
|
||||
ExpKnobComponent(
|
||||
value = VstChipWorklet.amModFreq,
|
||||
label = "AM Freq",
|
||||
minValue = 0.0,
|
||||
minValue = 0.005,
|
||||
maxValue = 1.0,
|
||||
step = 2.0 / 127.0,
|
||||
step = 5.0 / 127.0,
|
||||
width = 100,
|
||||
height = 120,
|
||||
) { value ->
|
||||
@@ -301,27 +302,66 @@ object MainView : Komponent(), CssName {
|
||||
}
|
||||
)
|
||||
include(
|
||||
KnobComponent(
|
||||
ExpKnobComponent(
|
||||
value = VstChipWorklet.amModAmp,
|
||||
label = "AM Ampl",
|
||||
minValue = 0.0,
|
||||
minValue = 0.005,
|
||||
maxValue = 1.0,
|
||||
step = 2.0 / 127.0,
|
||||
step = 5.0 / 127.0,
|
||||
width = 100,
|
||||
height = 120,
|
||||
) { value ->
|
||||
VstChipWorklet.amModAmp = value
|
||||
}
|
||||
)
|
||||
include(
|
||||
ExpKnobComponent(
|
||||
value = VstChipWorklet.feedback,
|
||||
label = "Feedback",
|
||||
minValue = 0.005,
|
||||
maxValue = 1.0,
|
||||
step = 5.0 / 127.0,
|
||||
width = 100,
|
||||
height = 120,
|
||||
) { value ->
|
||||
VstChipWorklet.feedback = value
|
||||
}
|
||||
)
|
||||
include(
|
||||
ExpKnobComponent(
|
||||
value = VstChipWorklet.delay,
|
||||
label = "Delay",
|
||||
minValue = 0.005,
|
||||
maxValue = 1.0,
|
||||
step = 5.0 / 127.0,
|
||||
width = 100,
|
||||
height = 120,
|
||||
) { value ->
|
||||
VstChipWorklet.delay = value
|
||||
}
|
||||
)
|
||||
include(
|
||||
ExpKnobComponent(
|
||||
value = VstChipWorklet.delayDepth,
|
||||
label = "Delay depth",
|
||||
minValue = 0.005,
|
||||
maxValue = 1.0,
|
||||
step = 5.0 / 127.0,
|
||||
width = 100,
|
||||
height = 120,
|
||||
) { value ->
|
||||
VstChipWorklet.delayDepth = value
|
||||
}
|
||||
)
|
||||
}
|
||||
div(ControlsCss.name) {
|
||||
include(
|
||||
KnobComponent(
|
||||
ExpKnobComponent(
|
||||
value = VstChipWorklet.attack,
|
||||
label = "Attack",
|
||||
minValue = 0.0,
|
||||
minValue = 0.005,
|
||||
maxValue = 1.0,
|
||||
step = 2.0 / 127.0,
|
||||
step = 5.0 / 127.0,
|
||||
width = 100,
|
||||
height = 120,
|
||||
) { value ->
|
||||
@@ -329,12 +369,12 @@ object MainView : Komponent(), CssName {
|
||||
}
|
||||
)
|
||||
include(
|
||||
KnobComponent(
|
||||
ExpKnobComponent(
|
||||
value = VstChipWorklet.decay,
|
||||
label = "Decay",
|
||||
minValue = 0.0,
|
||||
minValue = 0.005,
|
||||
maxValue = 1.0,
|
||||
step = 2.0 / 127.0,
|
||||
step = 5.0 / 127.0,
|
||||
width = 100,
|
||||
height = 120,
|
||||
) { value ->
|
||||
@@ -355,12 +395,12 @@ object MainView : Komponent(), CssName {
|
||||
}
|
||||
)
|
||||
include(
|
||||
KnobComponent(
|
||||
ExpKnobComponent(
|
||||
value = VstChipWorklet.release,
|
||||
label = "Release",
|
||||
minValue = 0.0,
|
||||
minValue = 0.005,
|
||||
maxValue = 1.0,
|
||||
step = 2.0 / 127.0,
|
||||
step = 5.0 / 127.0,
|
||||
width = 100,
|
||||
height = 120,
|
||||
) { value ->
|
||||
|
||||
Reference in New Issue
Block a user