-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
161 changed files
with
3,961 additions
and
2,711 deletions.
There are no files selected for viewing
44 changes: 22 additions & 22 deletions
44
CSI/S4MK3/S4MK3ChannelFX.qml → CSI/Common/ChannelFX/ChannelFX.qml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,52 @@ | ||
import CSI 1.0 | ||
import "../../Defines" | ||
import "../../../Defines" | ||
|
||
Module | ||
{ | ||
id: module | ||
property int index: 1 | ||
property alias selectedFx: fxSelect | ||
property int channelFxSelectorVal: -1 | ||
property string surface: "" | ||
|
||
signal fxChanged() | ||
|
||
// helpers | ||
readonly property string surface_prefix: "s4mk3.mixer.channels." + module.index + "." | ||
readonly property string surface_prefix: surface + ".mixer.channels." + module.index + "." | ||
readonly property string app_prefix: "app.traktor.mixer.channels." + module.index + "." | ||
|
||
AppProperty { id: fxSelect; path: app_prefix + "fx.select"; } | ||
AppProperty { id: fxOn; path: app_prefix + "fx.on" } | ||
|
||
readonly property variant currentColor: colorScheme[fxSelect.value] | ||
|
||
// Channel FX Knob + Enable | ||
Wire { from: surface_prefix + "channel_fx.amount"; to: DirectPropertyAdapter { path: app_prefix + "fx.adjust" } } | ||
|
||
Wire | ||
{ | ||
enabled: module.channelFxSelectorVal == -1; | ||
from: surface_prefix + "channel_fx.on"; | ||
to: TogglePropertyAdapter | ||
{ | ||
path: app_prefix + "fx.on"; | ||
color: module.currentColor; | ||
} | ||
Wire | ||
{ | ||
enabled: module.channelFxSelectorVal == -1; | ||
from: surface_prefix + "channel_fx.on"; | ||
to: TogglePropertyAdapter | ||
{ | ||
path: app_prefix + "fx.on"; | ||
color: module.currentColor; | ||
} | ||
} | ||
Wire | ||
{ | ||
enabled: module.channelFxSelectorVal != -1; | ||
from: surface_prefix + "channel_fx.on"; | ||
|
||
Wire | ||
{ | ||
enabled: module.channelFxSelectorVal != -1; | ||
from: surface_prefix + "channel_fx.on"; | ||
to: ButtonScriptAdapter | ||
{ | ||
onPress : | ||
{ | ||
module.selectedFx.value = module.channelFxSelectorVal; | ||
fxChanged(); | ||
} | ||
color: module.currentColor; | ||
color: module.currentColor; | ||
brightness: fxOn.value ? 1.0 : 0.5 | ||
} | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.