evo8-linux 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. evo8/__init__.py +3 -0
  2. evo8/about.py +131 -0
  3. evo8/alsa.py +77 -0
  4. evo8/apps.py +76 -0
  5. evo8/calibrate.py +159 -0
  6. evo8/cli.py +214 -0
  7. evo8/data/__init__.py +0 -0
  8. evo8/data/applications/evo8-mixer.desktop +8 -0
  9. evo8/data/evo8-mixer.svg +38 -0
  10. evo8/data/pipewire/pipewire-pulse.conf.d/20-bloquear-volumen-micro.conf +16 -0
  11. evo8/data/pipewire/pipewire.conf.d/20-mezcla.conf +158 -0
  12. evo8/data/systemd/evo8-restore.service +8 -0
  13. evo8/data/udev/70-audient-evo8.rules +7 -0
  14. evo8/gui/__init__.py +1 -0
  15. evo8/gui/app.py +92 -0
  16. evo8/gui/backend.py +485 -0
  17. evo8/gui/meters.py +86 -0
  18. evo8/gui/qml/AboutPage.qml +257 -0
  19. evo8/gui/qml/CardProfiles.qml +118 -0
  20. evo8/gui/qml/ConsolePage.qml +255 -0
  21. evo8/gui/qml/Divider.qml +8 -0
  22. evo8/gui/qml/GlyphButton.qml +30 -0
  23. evo8/gui/qml/HardwarePage.qml +603 -0
  24. evo8/gui/qml/HwMixStrip.qml +178 -0
  25. evo8/gui/qml/Main.qml +139 -0
  26. evo8/gui/qml/PixelSlider.qml +80 -0
  27. evo8/gui/qml/Strip.qml +396 -0
  28. evo8/gui/qml/StripGroup.qml +23 -0
  29. evo8/gui/qml/Theme.qml +22 -0
  30. evo8/gui/qml/Tip.qml +20 -0
  31. evo8/gui/qml/Toggle.qml +41 -0
  32. evo8/gui/qml/VMeter.qml +28 -0
  33. evo8/gui/qml/format.js +88 -0
  34. evo8/gui/qml/qmldir +14 -0
  35. evo8/gui/snapshot.py +98 -0
  36. evo8/hw.py +147 -0
  37. evo8/mix.py +109 -0
  38. evo8/monitor.py +229 -0
  39. evo8/profiles.py +112 -0
  40. evo8/pw.py +164 -0
  41. evo8/state.py +45 -0
  42. evo8/usb.py +122 -0
  43. evo8/user_setup.py +224 -0
  44. evo8_linux-0.1.0.dist-info/METADATA +198 -0
  45. evo8_linux-0.1.0.dist-info/RECORD +49 -0
  46. evo8_linux-0.1.0.dist-info/WHEEL +5 -0
  47. evo8_linux-0.1.0.dist-info/entry_points.txt +5 -0
  48. evo8_linux-0.1.0.dist-info/licenses/LICENSE +21 -0
  49. evo8_linux-0.1.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,257 @@
1
+ import QtQuick
2
+ import QtQuick.Controls
3
+ import "."
4
+
5
+ // "Acerca de": what this is, where it comes from, and the facts a bug report
6
+ // needs (version, EVO firmware, how it is installed). Read from files only.
7
+ ScrollView {
8
+ id: page
9
+ clip: true
10
+ contentWidth: availableWidth
11
+ ScrollBar.vertical.policy: ScrollBar.AsNeeded
12
+
13
+ readonly property var a: mixer.about
14
+ readonly property var dev: a.device || ({})
15
+
16
+ onEnabledChanged: if (enabled) mixer.refreshAbout()
17
+
18
+ component SectionTitle: Text {
19
+ color: Theme.dim
20
+ font.family: Theme.font
21
+ font.pixelSize: Theme.caption
22
+ font.letterSpacing: 1.4
23
+ font.bold: true
24
+ }
25
+
26
+ // One "key value" line.
27
+ component Field: Row {
28
+ id: field
29
+ property string k: ""
30
+ property string v: ""
31
+ property color tone: Theme.foreground
32
+ width: parent ? parent.width : 0
33
+ spacing: 12
34
+ Text {
35
+ width: 150
36
+ text: field.k
37
+ color: Theme.dim
38
+ font.family: Theme.font
39
+ font.pixelSize: Theme.caption
40
+ }
41
+ Text {
42
+ width: field.width - 162
43
+ text: field.v || "—"
44
+ color: field.tone
45
+ font.family: Theme.font
46
+ font.pixelSize: Theme.caption
47
+ wrapMode: Text.WrapAnywhere
48
+ }
49
+ }
50
+
51
+ component Link: Text {
52
+ id: link
53
+ property string url: ""
54
+ color: Theme.accent
55
+ font.family: Theme.font
56
+ font.pixelSize: Theme.body
57
+ font.underline: linkMouse.containsMouse
58
+ MouseArea {
59
+ id: linkMouse
60
+ anchors.fill: parent
61
+ hoverEnabled: true
62
+ cursorShape: Qt.PointingHandCursor
63
+ onClicked: Qt.openUrlExternally(link.url)
64
+ }
65
+ }
66
+
67
+ component Card: Rectangle {
68
+ default property alias content: inner.data
69
+ width: parent ? parent.width : 0
70
+ height: inner.implicitHeight + 28
71
+ radius: Theme.radius
72
+ color: Theme.alpha(Theme.foreground, 0.03)
73
+ Column {
74
+ id: inner
75
+ x: 14
76
+ y: 14
77
+ width: parent.width - 28
78
+ spacing: 8
79
+ }
80
+ }
81
+
82
+ Row {
83
+ id: columns
84
+ width: page.availableWidth
85
+ spacing: 28
86
+ readonly property real colWidth: Math.min(640, (width - spacing) / 2)
87
+
88
+ // ---- what it is ----
89
+ Column {
90
+ width: columns.colWidth
91
+ spacing: 18
92
+
93
+ Row {
94
+ width: parent.width
95
+ spacing: 18
96
+ Image {
97
+ source: "../../data/evo8-mixer.svg"
98
+ width: 72
99
+ height: 72
100
+ sourceSize: Qt.size(144, 144)
101
+ smooth: true
102
+ }
103
+ Column {
104
+ width: parent.width - 90
105
+ spacing: 6
106
+ Row {
107
+ spacing: 12
108
+ Text {
109
+ text: page.a.app || ""
110
+ color: Theme.foreground
111
+ font.family: Theme.font
112
+ font.pixelSize: 22
113
+ font.bold: true
114
+ }
115
+ Text {
116
+ anchors.baseline: parent.children[0].baseline
117
+ text: "v" + (page.a.version || "")
118
+ color: Theme.accent
119
+ font.family: Theme.font
120
+ font.pixelSize: Theme.body
121
+ font.bold: true
122
+ }
123
+ }
124
+ Text {
125
+ width: parent.width
126
+ text: page.a.description || ""
127
+ color: Theme.foreground
128
+ font.family: Theme.font
129
+ font.pixelSize: Theme.body
130
+ wrapMode: Text.WordWrap
131
+ lineHeight: 1.2
132
+ }
133
+ }
134
+ }
135
+
136
+ Column {
137
+ width: parent.width
138
+ spacing: 8
139
+ SectionTitle { text: "ENLACES" }
140
+ Link { text: "󰊤 Código y documentación"; url: page.a.repo || "" }
141
+ Link { text: "󰃤 Reportar un problema"; url: page.a.issues || "" }
142
+ }
143
+
144
+ Column {
145
+ width: parent.width
146
+ spacing: 6
147
+ SectionTitle { text: "LICENCIA" }
148
+ Text {
149
+ width: parent.width
150
+ text: "Licencia " + (page.a.license || "") + " · hecho por " + (page.a.author || "")
151
+ color: Theme.foreground
152
+ font.family: Theme.font
153
+ font.pixelSize: Theme.caption
154
+ }
155
+ Text {
156
+ width: parent.width
157
+ text: (page.a.disclaimer || "") + " EVO y EVO Control son marcas de Audient."
158
+ color: Theme.dim
159
+ font.family: Theme.font
160
+ font.pixelSize: Theme.caption
161
+ wrapMode: Text.WordWrap
162
+ }
163
+ }
164
+ }
165
+
166
+ // ---- this machine ----
167
+ Column {
168
+ width: columns.colWidth
169
+ spacing: 18
170
+
171
+ Column {
172
+ width: parent.width
173
+ spacing: 8
174
+ SectionTitle { text: "EVO 8" }
175
+ Card {
176
+ Field {
177
+ k: "Estado"
178
+ v: page.dev.connected ? "conectada" : "no conectada"
179
+ tone: page.dev.connected ? Theme.accent : Theme.warn
180
+ }
181
+ Field {
182
+ visible: !!page.dev.connected
183
+ k: "Firmware"
184
+ v: (page.dev.firmware || "") + (page.dev.tested ? " (probado)"
185
+ : " · se probó con " + (page.a.testedFirmware || "") + ", el control por USB podría fallar")
186
+ tone: page.dev.tested ? Theme.foreground : Theme.warn
187
+ }
188
+ Field { visible: !!page.dev.connected; k: "USB"; v: page.dev.speed || "" }
189
+ }
190
+ }
191
+
192
+ Column {
193
+ width: parent.width
194
+ spacing: 8
195
+ SectionTitle { text: "INSTALACIÓN" }
196
+ Card {
197
+ Field { k: "Tipo"; v: page.a.install || "" }
198
+ Field {
199
+ k: "Config PipeWire"
200
+ v: page.a.pipewireConfig || "no encontrada: la Mezcla no existe"
201
+ tone: page.a.pipewireConfig ? Theme.foreground : Theme.urgent
202
+ }
203
+ Field {
204
+ k: "Regla udev"
205
+ v: page.a.udevRule || "no instalada: sin control por USB"
206
+ tone: page.a.udevRule ? Theme.foreground : Theme.warn
207
+ }
208
+ Field { k: "Ajustes guardados"; v: page.a.stateFile || "" }
209
+ }
210
+ }
211
+
212
+ Column {
213
+ width: parent.width
214
+ spacing: 8
215
+ SectionTitle { text: "VERSIONES" }
216
+ Card {
217
+ Repeater {
218
+ model: Object.keys(page.a.versions || {})
219
+ Field {
220
+ required property string modelData
221
+ k: modelData
222
+ v: page.a.versions[modelData]
223
+ }
224
+ }
225
+ Field { k: "Sistema"; v: page.a.platform || "" }
226
+ }
227
+ }
228
+
229
+ Rectangle {
230
+ id: copy
231
+ property bool done: false
232
+ width: copyLabel.implicitWidth + 24
233
+ height: copyLabel.implicitHeight + 12
234
+ radius: Theme.radius
235
+ color: copyMouse.containsMouse ? Theme.alpha(Theme.foreground, 0.1) : "transparent"
236
+ border.width: 1
237
+ border.color: copy.done ? Theme.accent : Theme.alpha(Theme.foreground, 0.4)
238
+ Text {
239
+ id: copyLabel
240
+ anchors.centerIn: parent
241
+ text: copy.done ? "󰄬 Copiado" : "󰆏 Copiar para reportar un problema"
242
+ color: copy.done ? Theme.accent : Theme.foreground
243
+ font.family: Theme.font
244
+ font.pixelSize: Theme.caption
245
+ }
246
+ MouseArea {
247
+ id: copyMouse
248
+ anchors.fill: parent
249
+ hoverEnabled: true
250
+ cursorShape: Qt.PointingHandCursor
251
+ onClicked: { mixer.copyAbout(); copy.done = true; copyReset.restart() }
252
+ }
253
+ Timer { id: copyReset; interval: 2000; onTriggered: copy.done = false }
254
+ }
255
+ }
256
+ }
257
+ }
@@ -0,0 +1,118 @@
1
+ import QtQuick
2
+ import "."
3
+
4
+ // Every sound card with its profiles as a pick list, the active one ticked,
5
+ // and a warning when the Mezcla needs another profile (EVO 8 → Pro Audio).
6
+ Item {
7
+ id: root
8
+ property var cards: []
9
+ property real unit: Theme.stripWidth
10
+ width: unit * 1.9
11
+ height: list.implicitHeight + 16
12
+
13
+ Rectangle {
14
+ anchors.fill: parent
15
+ radius: Theme.radius
16
+ color: Theme.alpha(Theme.foreground, 0.03)
17
+ }
18
+
19
+ Column {
20
+ id: list
21
+ anchors.left: parent.left
22
+ anchors.right: parent.right
23
+ anchors.top: parent.top
24
+ anchors.margins: 8
25
+ spacing: 8
26
+
27
+ Repeater {
28
+ model: root.cards
29
+ Column {
30
+ id: card
31
+ required property var modelData
32
+ width: list.width
33
+ spacing: 2
34
+
35
+ Row {
36
+ spacing: 6
37
+ Text {
38
+ visible: card.modelData.warning !== ""
39
+ text: "󰀦"
40
+ color: Theme.urgent
41
+ font.family: Theme.font
42
+ font.pixelSize: Theme.body
43
+ }
44
+ Text {
45
+ text: card.modelData.label
46
+ color: Theme.foreground
47
+ font.family: Theme.font
48
+ font.pixelSize: Theme.body
49
+ font.bold: true
50
+ }
51
+ }
52
+ Text {
53
+ visible: card.modelData.warning !== ""
54
+ text: card.modelData.warning
55
+ color: Theme.urgent
56
+ font.family: Theme.font
57
+ font.pixelSize: Theme.caption
58
+ }
59
+ Repeater {
60
+ model: card.modelData.profiles
61
+ Rectangle {
62
+ required property var modelData
63
+ readonly property bool active: modelData.name === card.modelData.active
64
+ width: card.width
65
+ height: label.implicitHeight + (hint.visible ? hint.implicitHeight + 1 : 0) + 4
66
+ radius: Theme.radius
67
+ color: active ? Theme.alpha(Theme.foreground, 0.12)
68
+ : mouse.containsMouse ? Theme.alpha(Theme.foreground, 0.07) : "transparent"
69
+ Text {
70
+ id: tick
71
+ x: 4
72
+ y: 2
73
+ width: 16
74
+ text: parent.active ? "󰄬" : ""
75
+ color: Theme.foreground
76
+ font.family: Theme.font
77
+ font.pixelSize: Theme.caption
78
+ }
79
+ Text {
80
+ id: label
81
+ anchors.left: tick.right
82
+ anchors.right: parent.right
83
+ y: 2
84
+ text: modelData.label
85
+ color: parent.active ? Theme.foreground : Theme.dim
86
+ font.family: Theme.font
87
+ font.pixelSize: Theme.caption
88
+ font.bold: parent.active
89
+ elide: Text.ElideRight
90
+ }
91
+ // What the profile does, under its name.
92
+ Text {
93
+ id: hint
94
+ anchors.left: label.left
95
+ anchors.right: parent.right
96
+ anchors.top: label.bottom
97
+ anchors.topMargin: 1
98
+ visible: text !== ""
99
+ text: modelData.hint || ""
100
+ color: Theme.alpha(Theme.dim, 0.75)
101
+ font.family: Theme.font
102
+ font.pixelSize: Theme.caption - 1
103
+ wrapMode: Text.WordWrap
104
+ }
105
+ MouseArea {
106
+ id: mouse
107
+ anchors.fill: parent
108
+ hoverEnabled: true
109
+ enabled: !parent.active
110
+ cursorShape: Qt.PointingHandCursor
111
+ onClicked: mixer.setCardProfile(card.modelData.name, modelData.name)
112
+ }
113
+ }
114
+ }
115
+ }
116
+ }
117
+ }
118
+ }
@@ -0,0 +1,255 @@
1
+ import QtQuick
2
+ import QtQuick.Controls
3
+ import "."
4
+ import "format.js" as F
5
+
6
+ // The console: one strip per channel, in signal order -- inputs, Compartido,
7
+ // apps, the Mezcla master, the selected output's channels, card profiles.
8
+ ScrollView {
9
+ id: page
10
+ clip: true
11
+ ScrollBar.vertical.policy: ScrollBar.AlwaysOff
12
+
13
+ readonly property var m: mixer.model
14
+ readonly property var meters: mixer.meters
15
+ readonly property var gains: m.gains
16
+ readonly property var preamp: m.preamp
17
+ readonly property bool monitorOn: m.monitor === "on"
18
+
19
+ // Standard positions the reset buttons return to.
20
+ readonly property real standardPreamp: 0
21
+ readonly property real standardInputGain: 1
22
+ readonly property real standardSharedGain: 0.5
23
+ readonly property real standardVolume: 1
24
+
25
+ function peak(name, ch) {
26
+ var p = meters ? meters[name] : null
27
+ return p && ch < p.length ? p[ch] : 0
28
+ }
29
+
30
+ // Output channels in the stereo pairs they are wired as.
31
+ readonly property var outputGroups: {
32
+ var s = m.sink
33
+ if (!s) return []
34
+ var n = s.volumes.length
35
+ if (!s.isPro || n <= 2) {
36
+ var all = []
37
+ for (var c = 0; c < n; c++) all.push(c)
38
+ return [{ label: "SALIDA", channels: all }]
39
+ }
40
+ var groups = []
41
+ for (var i = 0; i < n; i += 2)
42
+ groups.push({ label: i + 1 < n ? "OUT " + (i + 1) + "-" + (i + 2) : "OUT " + (i + 1),
43
+ channels: i + 1 < n ? [i, i + 1] : [i] })
44
+ return groups
45
+ }
46
+
47
+ // Strip width that fills the window: the room left after gaps and
48
+ // dividers, shared by every strip (the master counts 1.3, profiles 1.9).
49
+ readonly property int nInputs: preamp ? preamp.gains.length : 2
50
+ readonly property int nApps: m.streams.length
51
+ readonly property bool showProfiles: m.cards.length > 0
52
+ readonly property int nGroups: 4 + (nApps > 0 ? 1 : 0) + (showProfiles ? 1 : 0)
53
+ readonly property real units: nInputs + 1 + nApps + 1.3 + outputGroups.length + (showProfiles ? 1.9 : 0)
54
+ readonly property int innerGaps: (nInputs - 1) + Math.max(0, nApps - 1) + Math.max(0, outputGroups.length - 1)
55
+ readonly property real unit: Math.max(Theme.stripWidth,
56
+ (availableWidth - (2 * nGroups - 2) * 14 - (nGroups - 1) - innerGaps * 6 - 4) / units)
57
+ // Fader height that fills the window below the group titles.
58
+ readonly property real faderHeight: Math.max(140, availableHeight - 30 - compStrip.chromeHeight)
59
+
60
+ function groupVolume(channels) {
61
+ var v = 0
62
+ for (var i = 0; i < channels.length; i++) v = Math.max(v, m.sink.volumes[channels[i]] || 0)
63
+ return v
64
+ }
65
+
66
+ Item {
67
+ implicitWidth: Math.max(page.availableWidth, consoleRow.implicitWidth)
68
+ implicitHeight: consoleRow.implicitHeight
69
+
70
+ Row {
71
+ id: consoleRow
72
+ x: 2
73
+ spacing: 14
74
+
75
+ // ---- inputs ----
76
+ StripGroup {
77
+ title: "ENTRADAS"
78
+ Repeater {
79
+ model: page.preamp ? page.preamp.gains.length : 2
80
+ Strip {
81
+ unit: page.unit
82
+ faderHeight: page.faderHeight
83
+ required property int index
84
+ readonly property bool inMix: index < 2
85
+ title: "IN " + (index + 1)
86
+ subtitle: inMix ? "a la Mezcla" : "solo preamp"
87
+ topLabel: "PRE"
88
+ topTip: "Ganancia del preamp de la EVO"
89
+ topEnabled: !!page.preamp
90
+ topMinimum: page.preamp ? page.preamp.min : 0
91
+ topMaximum: page.preamp ? page.preamp.max : 1
92
+ topStep: page.preamp ? page.preamp.step : 0.5
93
+ topValue: page.preamp ? page.preamp.gains[index] : 0
94
+ topText: page.preamp ? F.signedDb(page.preamp.gains[index]) : "—"
95
+ topStandard: page.standardPreamp
96
+ faderVisible: inMix
97
+ faderEnabled: inMix && !!page.gains
98
+ noFaderText: "No entra a la Mezcla"
99
+ maximum: 2
100
+ standard: inMix ? page.standardInputGain : NaN
101
+ value: inMix && page.gains ? page.gains[index] : 0
102
+ valueText: inMix && page.gains ? F.gainDb(page.gains[index]) : "—"
103
+ meterLeft: inMix ? F.meterLevel(page.peak("suma", index)) : -1
104
+ muted: inMix && !!page.gains && page.gains[index] === 0
105
+ showMute: inMix
106
+ monitorVisible: index < page.m.inputMonitors.length
107
+ monitorChecked: page.monitorOn || !!page.m.inputMonitors[index]
108
+ monitorEnabled: !page.monitorOn
109
+ monitorTip: page.monitorOn
110
+ ? (inMix ? "Ya suena en el Monitor de la Mezcla" : "Apaga el Monitor de la Mezcla para oírla sola")
111
+ : "Escuchar esta entrada en la salida"
112
+ onTopMoved: function(v) { mixer.setPreamp(index, v) }
113
+ onMoved: function(v) { mixer.setGain(index, v) }
114
+ onMuteToggled: mixer.toggleGainMute(index)
115
+ onMonitorToggled: mixer.toggleInputMonitor(index)
116
+ }
117
+ }
118
+ }
119
+
120
+ Divider { height: page.availableHeight - 8 }
121
+
122
+ // ---- Compartido ----
123
+ StripGroup {
124
+ title: "COMPARTIDO"
125
+ Strip {
126
+ id: compStrip
127
+ unit: page.unit
128
+ faderHeight: page.faderHeight
129
+ readonly property var esc: page.m.escucha
130
+ title: "COMP"
131
+ subtitle: "música y apps"
132
+ topLabel: "OÍR"
133
+ topTip: "Cuánto oyes Compartido (no cambia lo que sale a la llamada)"
134
+ topEnabled: !page.monitorOn && !!esc
135
+ topValue: esc ? esc.volume : 0
136
+ topText: page.monitorOn ? "monitor" : F.percent(topValue)
137
+ topStandard: page.standardVolume
138
+ onTopMoved: function(v) { mixer.setListenVolume(v) }
139
+ faderEnabled: !!page.gains
140
+ maximum: 2
141
+ standard: page.standardSharedGain
142
+ value: page.gains ? page.gains[2] : 0
143
+ valueText: page.gains ? F.gainDb(page.gains[2]) : "—"
144
+ meterLeft: F.meterLevel(page.peak("suma", 2))
145
+ meterRight: F.meterLevel(page.peak("suma", 3))
146
+ muted: !!page.gains && page.gains[2] === 0
147
+ onMoved: function(v) { mixer.setSharedGain(v) }
148
+ onMuteToggled: mixer.toggleGainMute(2)
149
+ bottomLabel: "SINC"
150
+ bottomTip: "Retrasa Compartido hacia la Mezcla para alinearlo con lo que tocas"
151
+ bottomEnabled: page.m.delayMs !== null && page.m.delayMs !== undefined
152
+ bottomValue: bottomEnabled ? page.m.delayMs : 0
153
+ bottomMaximum: 500
154
+ bottomStep: 1
155
+ bottomText: F.delayText(bottomValue)
156
+ bottomStandard: 0
157
+ onBottomMoved: function(v) { mixer.setDelay(v) }
158
+ actionText: page.m.calibrating ? "Escuchando…" : "Calibrar"
159
+ actionEnabled: !page.m.calibrating && bottomEnabled
160
+ actionTip: "Suena un click por Compartido: toca un golpe corto en cada uno y se mide el desfase"
161
+ onActionClicked: mixer.calibrate()
162
+ }
163
+ }
164
+
165
+ Divider { height: page.availableHeight - 8; visible: page.m.streams.length > 0 }
166
+
167
+ // ---- apps ----
168
+ StripGroup {
169
+ visible: page.m.streams.length > 0
170
+ title: "APPS"
171
+ Repeater {
172
+ model: page.m.streams
173
+ Strip {
174
+ unit: page.unit
175
+ faderHeight: page.faderHeight
176
+ required property var modelData
177
+ title: modelData.label
178
+ subtitle: modelData.shared ? "en Compartido" : "solo salida"
179
+ shareVisible: true
180
+ sharedOn: modelData.shared
181
+ maximum: 1.5
182
+ standard: page.standardVolume
183
+ value: modelData.volume
184
+ valueText: F.percent(modelData.volume)
185
+ muted: modelData.mute
186
+ onMoved: function(v) { mixer.setStreamVolume(modelData.index, v) }
187
+ onMuteToggled: mixer.toggleStreamMute(modelData.index)
188
+ onShareToggled: mixer.toggleStreamShared(modelData.index)
189
+ }
190
+ }
191
+ }
192
+
193
+ Divider { height: page.availableHeight - 8 }
194
+
195
+ // ---- Mezcla master ----
196
+ StripGroup {
197
+ title: "SALE A LA LLAMADA"
198
+ Strip {
199
+ unit: page.unit
200
+ faderHeight: page.faderHeight
201
+ readonly property var mz: page.m.mezcla
202
+ master: true
203
+ title: "MEZCLA"
204
+ subtitle: "micrófono virtual"
205
+ faderEnabled: !!mz
206
+ standard: page.standardVolume
207
+ value: mz ? mz.volume : 0
208
+ valueText: F.percent(value)
209
+ meterLeft: F.meterLevel(page.peak("mezcla", 0))
210
+ muted: !!mz && mz.mute
211
+ onMoved: function(v) { mixer.setMezclaVolume(v) }
212
+ onMuteToggled: mixer.toggleMezclaMute()
213
+ monitorVisible: page.m.monitor === "on" || page.m.monitor === "off"
214
+ monitorChecked: page.monitorOn
215
+ monitorTip: "Escuchar la Mezcla completa en la salida"
216
+ onMonitorToggled: mixer.toggleMonitor()
217
+ }
218
+ }
219
+
220
+ Divider { height: page.availableHeight - 8 }
221
+
222
+ // ---- selected output ----
223
+ StripGroup {
224
+ title: "SALIDA · " + (page.m.sink ? page.m.sink.label.toUpperCase() : "—")
225
+ Repeater {
226
+ model: page.outputGroups
227
+ Strip {
228
+ unit: page.unit
229
+ faderHeight: page.faderHeight
230
+ required property var modelData
231
+ required property int index
232
+ title: modelData.label
233
+ subtitle: page.m.sink && page.m.sink.isPro && modelData.channels[0] === 0 ? "audífonos 1" : ""
234
+ standard: page.standardVolume
235
+ value: page.m.sink ? page.groupVolume(modelData.channels) : 0
236
+ valueText: F.percent(value)
237
+ muted: !!page.m.sink && page.m.sink.mute
238
+ showMute: index === 0
239
+ onMoved: function(v) { mixer.setSinkChannels(modelData.channels, v) }
240
+ onMuteToggled: mixer.toggleSinkMute()
241
+ }
242
+ }
243
+ }
244
+
245
+ Divider { height: page.availableHeight - 8; visible: page.m.cards.length > 0 }
246
+
247
+ // ---- card profiles ----
248
+ StripGroup {
249
+ visible: page.m.cards.length > 0
250
+ title: "PERFILES"
251
+ CardProfiles { cards: page.m.cards; unit: page.unit }
252
+ }
253
+ }
254
+ }
255
+ }
@@ -0,0 +1,8 @@
1
+ import QtQuick
2
+ import "."
3
+
4
+ Rectangle {
5
+ width: 1
6
+ height: Theme.faderHeight + 200
7
+ color: Theme.alpha(Theme.foreground, 0.12)
8
+ }
@@ -0,0 +1,30 @@
1
+ import QtQuick
2
+ import "."
3
+
4
+ // A Nerd Font glyph that acts as a button, with a tooltip.
5
+ Text {
6
+ id: glyph
7
+ property bool active: true
8
+ property string tip: ""
9
+ signal clicked()
10
+ font.family: Theme.font
11
+ font.pixelSize: Theme.body
12
+ color: Theme.foreground
13
+ horizontalAlignment: Text.AlignHCenter
14
+ verticalAlignment: Text.AlignVCenter
15
+ opacity: active ? (mouse.containsMouse ? 1 : 0.85) : 0.18
16
+
17
+ MouseArea {
18
+ id: mouse
19
+ anchors.fill: parent
20
+ anchors.margins: -4
21
+ enabled: glyph.active
22
+ hoverEnabled: true
23
+ cursorShape: Qt.PointingHandCursor
24
+ onClicked: glyph.clicked()
25
+ }
26
+ Tip {
27
+ visible: mouse.containsMouse && glyph.tip !== ""
28
+ text: glyph.tip
29
+ }
30
+ }