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.
- evo8/__init__.py +3 -0
- evo8/about.py +131 -0
- evo8/alsa.py +77 -0
- evo8/apps.py +76 -0
- evo8/calibrate.py +159 -0
- evo8/cli.py +214 -0
- evo8/data/__init__.py +0 -0
- evo8/data/applications/evo8-mixer.desktop +8 -0
- evo8/data/evo8-mixer.svg +38 -0
- evo8/data/pipewire/pipewire-pulse.conf.d/20-bloquear-volumen-micro.conf +16 -0
- evo8/data/pipewire/pipewire.conf.d/20-mezcla.conf +158 -0
- evo8/data/systemd/evo8-restore.service +8 -0
- evo8/data/udev/70-audient-evo8.rules +7 -0
- evo8/gui/__init__.py +1 -0
- evo8/gui/app.py +92 -0
- evo8/gui/backend.py +485 -0
- evo8/gui/meters.py +86 -0
- evo8/gui/qml/AboutPage.qml +257 -0
- evo8/gui/qml/CardProfiles.qml +118 -0
- evo8/gui/qml/ConsolePage.qml +255 -0
- evo8/gui/qml/Divider.qml +8 -0
- evo8/gui/qml/GlyphButton.qml +30 -0
- evo8/gui/qml/HardwarePage.qml +603 -0
- evo8/gui/qml/HwMixStrip.qml +178 -0
- evo8/gui/qml/Main.qml +139 -0
- evo8/gui/qml/PixelSlider.qml +80 -0
- evo8/gui/qml/Strip.qml +396 -0
- evo8/gui/qml/StripGroup.qml +23 -0
- evo8/gui/qml/Theme.qml +22 -0
- evo8/gui/qml/Tip.qml +20 -0
- evo8/gui/qml/Toggle.qml +41 -0
- evo8/gui/qml/VMeter.qml +28 -0
- evo8/gui/qml/format.js +88 -0
- evo8/gui/qml/qmldir +14 -0
- evo8/gui/snapshot.py +98 -0
- evo8/hw.py +147 -0
- evo8/mix.py +109 -0
- evo8/monitor.py +229 -0
- evo8/profiles.py +112 -0
- evo8/pw.py +164 -0
- evo8/state.py +45 -0
- evo8/usb.py +122 -0
- evo8/user_setup.py +224 -0
- evo8_linux-0.1.0.dist-info/METADATA +198 -0
- evo8_linux-0.1.0.dist-info/RECORD +49 -0
- evo8_linux-0.1.0.dist-info/WHEEL +5 -0
- evo8_linux-0.1.0.dist-info/entry_points.txt +5 -0
- evo8_linux-0.1.0.dist-info/licenses/LICENSE +21 -0
- evo8_linux-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,603 @@
|
|
|
1
|
+
import QtQuick
|
|
2
|
+
import QtQuick.Controls
|
|
3
|
+
import "."
|
|
4
|
+
import "format.js" as F
|
|
5
|
+
|
|
6
|
+
// Settings stored in the EVO 8 itself, sent over USB. Sending them drops the
|
|
7
|
+
// audio for a moment, so changes wait here until "Aplicar".
|
|
8
|
+
ScrollView {
|
|
9
|
+
id: page
|
|
10
|
+
clip: true
|
|
11
|
+
|
|
12
|
+
readonly property var hw: mixer.hardware
|
|
13
|
+
readonly property var pending: hw.pending || ({})
|
|
14
|
+
readonly property string pendingLoopback: hw.pendingLoopback || ""
|
|
15
|
+
readonly property var pendingPhantom: hw.pendingPhantom || ({})
|
|
16
|
+
readonly property var pendingMute: hw.pendingMute || ({})
|
|
17
|
+
readonly property bool hasPending: Object.keys(pending).length > 0 || pendingLoopback !== ""
|
|
18
|
+
|| Object.keys(pendingPhantom).length > 0 || Object.keys(pendingMute).length > 0
|
|
19
|
+
|
|
20
|
+
// Flag as it will be after "Aplicar": pending value, else last read.
|
|
21
|
+
function flag(kind, i) {
|
|
22
|
+
var p = kind === "phantom" ? pendingPhantom : pendingMute
|
|
23
|
+
if (p[String(i)] !== undefined) return p[String(i)]
|
|
24
|
+
var cur = hw[kind]
|
|
25
|
+
return cur ? !!cur[i] : false
|
|
26
|
+
}
|
|
27
|
+
function flagPending(kind, i) {
|
|
28
|
+
return (kind === "phantom" ? pendingPhantom : pendingMute)[String(i)] !== undefined
|
|
29
|
+
}
|
|
30
|
+
readonly property var rows: ["IN 1", "IN 2", "IN 3", "IN 4", "PC 1", "PC 2", "PC 3", "PC 4", "PC 5", "PC 6"]
|
|
31
|
+
readonly property var outputs: ["OUT 1", "OUT 2", "OUT 3", "OUT 4"]
|
|
32
|
+
readonly property var loopbackOptions: [
|
|
33
|
+
{ name: "loopback", label: "PC 5-6", detail: "par loop-back (fábrica)" },
|
|
34
|
+
{ name: "pc12", label: "Salidas 1-2", detail: "todo lo que suena en el PC" },
|
|
35
|
+
{ name: "pc34", label: "Salidas 3-4", detail: "" },
|
|
36
|
+
{ name: "in12", label: "Entradas 1-2", detail: "" },
|
|
37
|
+
{ name: "in34", label: "Entradas 3-4", detail: "" }
|
|
38
|
+
]
|
|
39
|
+
readonly property real offPosition: -61 // slider's leftmost cell = off
|
|
40
|
+
|
|
41
|
+
function cellValue(i, o) {
|
|
42
|
+
var key = i + "," + o
|
|
43
|
+
if (pending[key] !== undefined) return pending[key]
|
|
44
|
+
return hw.mix ? hw.mix[i][o] : null
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
component Button: Rectangle {
|
|
48
|
+
id: btn
|
|
49
|
+
property string text: ""
|
|
50
|
+
property bool primary: false
|
|
51
|
+
property bool fill: false
|
|
52
|
+
signal clicked()
|
|
53
|
+
width: fill ? parent.width : label.implicitWidth + 24
|
|
54
|
+
height: label.implicitHeight + 12
|
|
55
|
+
radius: Theme.radius
|
|
56
|
+
opacity: enabled ? 1 : 0.4
|
|
57
|
+
color: primary && enabled ? Theme.alpha(Theme.accent, mouse.containsMouse ? 0.35 : 0.22)
|
|
58
|
+
: mouse.containsMouse ? Theme.alpha(Theme.foreground, 0.1) : "transparent"
|
|
59
|
+
border.width: 1
|
|
60
|
+
border.color: primary ? Theme.accent : Theme.alpha(Theme.foreground, 0.4)
|
|
61
|
+
Text {
|
|
62
|
+
id: label
|
|
63
|
+
anchors.centerIn: parent
|
|
64
|
+
text: btn.text
|
|
65
|
+
color: Theme.foreground
|
|
66
|
+
font.family: Theme.font
|
|
67
|
+
font.pixelSize: Theme.caption
|
|
68
|
+
font.bold: btn.primary
|
|
69
|
+
}
|
|
70
|
+
MouseArea {
|
|
71
|
+
id: mouse
|
|
72
|
+
anchors.fill: parent
|
|
73
|
+
hoverEnabled: true
|
|
74
|
+
cursorShape: Qt.PointingHandCursor
|
|
75
|
+
onClicked: btn.clicked()
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
component SectionTitle: Text {
|
|
80
|
+
color: Theme.dim
|
|
81
|
+
font.family: Theme.font
|
|
82
|
+
font.pixelSize: Theme.caption
|
|
83
|
+
font.letterSpacing: 1.4
|
|
84
|
+
font.bold: true
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// Main area fills the visible window; "Avanzado" opens below it.
|
|
88
|
+
readonly property real mainHeight: Math.max(460, page.availableHeight - 40)
|
|
89
|
+
|
|
90
|
+
Column {
|
|
91
|
+
width: page.availableWidth
|
|
92
|
+
spacing: 18
|
|
93
|
+
|
|
94
|
+
Item {
|
|
95
|
+
width: parent.width
|
|
96
|
+
height: page.mainHeight
|
|
97
|
+
|
|
98
|
+
// ---- left: actions and inputs ----
|
|
99
|
+
Column {
|
|
100
|
+
id: side
|
|
101
|
+
width: 340
|
|
102
|
+
height: parent.height
|
|
103
|
+
spacing: 14
|
|
104
|
+
|
|
105
|
+
Text {
|
|
106
|
+
width: parent.width
|
|
107
|
+
wrapMode: Text.WordWrap
|
|
108
|
+
text: "Estos ajustes se guardan en la EVO. Leerlos o aplicarlos corta el audio un instante."
|
|
109
|
+
color: Theme.dim
|
|
110
|
+
font.family: Theme.font
|
|
111
|
+
font.pixelSize: Theme.caption
|
|
112
|
+
}
|
|
113
|
+
Column {
|
|
114
|
+
width: parent.width
|
|
115
|
+
spacing: 8
|
|
116
|
+
Button {
|
|
117
|
+
fill: true
|
|
118
|
+
text: "Leer de la EVO"
|
|
119
|
+
enabled: !page.hw.busy
|
|
120
|
+
onClicked: mixer.hwRead()
|
|
121
|
+
}
|
|
122
|
+
Button {
|
|
123
|
+
fill: true
|
|
124
|
+
text: page.hasPending ? "Aplicar a la EVO (cambios pendientes)" : "Aplicar a la EVO"
|
|
125
|
+
primary: true
|
|
126
|
+
enabled: !page.hw.busy && page.hasPending
|
|
127
|
+
onClicked: mixer.hwApply()
|
|
128
|
+
}
|
|
129
|
+
Button {
|
|
130
|
+
fill: true
|
|
131
|
+
text: "Descartar cambios"
|
|
132
|
+
enabled: !page.hw.busy && page.hasPending
|
|
133
|
+
onClicked: mixer.hwDiscard()
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
Text {
|
|
137
|
+
width: parent.width
|
|
138
|
+
wrapMode: Text.WordWrap
|
|
139
|
+
text: page.hw.message
|
|
140
|
+
? page.hw.message
|
|
141
|
+
: (page.hw.readAt ? "Último estado conocido: " + page.hw.readAt
|
|
142
|
+
: "Aún no se ha leído la EVO.")
|
|
143
|
+
color: String(page.hw.message).indexOf("Error") === 0 ? Theme.urgent : Theme.foreground
|
|
144
|
+
font.family: Theme.font
|
|
145
|
+
font.pixelSize: Theme.caption
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
Item { width: 1; height: 6 }
|
|
149
|
+
SectionTitle { text: "ENTRADAS · 48 V Y SILENCIO" }
|
|
150
|
+
Grid {
|
|
151
|
+
columns: 2
|
|
152
|
+
spacing: 10
|
|
153
|
+
Repeater {
|
|
154
|
+
model: 4
|
|
155
|
+
Rectangle {
|
|
156
|
+
required property int index
|
|
157
|
+
width: (side.width - 10) / 2
|
|
158
|
+
height: inCol.implicitHeight + 16
|
|
159
|
+
radius: Theme.radius
|
|
160
|
+
color: Theme.alpha(Theme.foreground, 0.03)
|
|
161
|
+
Column {
|
|
162
|
+
id: inCol
|
|
163
|
+
anchors.centerIn: parent
|
|
164
|
+
spacing: 8
|
|
165
|
+
Text {
|
|
166
|
+
anchors.horizontalCenter: parent.horizontalCenter
|
|
167
|
+
text: "IN " + (index + 1)
|
|
168
|
+
color: Theme.foreground
|
|
169
|
+
font.family: Theme.font
|
|
170
|
+
font.pixelSize: Theme.body
|
|
171
|
+
font.bold: true
|
|
172
|
+
}
|
|
173
|
+
Repeater {
|
|
174
|
+
model: [{ kind: "phantom", label: "48 V" }, { kind: "mute", label: "SILENCIO" }]
|
|
175
|
+
Row {
|
|
176
|
+
required property var modelData
|
|
177
|
+
spacing: 10
|
|
178
|
+
Text {
|
|
179
|
+
width: 72
|
|
180
|
+
anchors.verticalCenter: parent.verticalCenter
|
|
181
|
+
text: modelData.label
|
|
182
|
+
color: page.flagPending(modelData.kind, index) ? Theme.accent : Theme.dim
|
|
183
|
+
font.family: Theme.font
|
|
184
|
+
font.pixelSize: Theme.caption
|
|
185
|
+
font.bold: true
|
|
186
|
+
}
|
|
187
|
+
Toggle {
|
|
188
|
+
checked: page.flag(modelData.kind, index)
|
|
189
|
+
enabled: !page.hw.busy && !!page.hw[modelData.kind]
|
|
190
|
+
tip: modelData.kind === "phantom"
|
|
191
|
+
? "Alimentación para micrófonos de condensador"
|
|
192
|
+
: "Silenciar la entrada en la EVO"
|
|
193
|
+
onToggled: modelData.kind === "phantom"
|
|
194
|
+
? mixer.hwSetPhantom(index, !checked)
|
|
195
|
+
: mixer.hwSetMute(index, !checked)
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
Rectangle {
|
|
206
|
+
id: split
|
|
207
|
+
x: side.width + 20
|
|
208
|
+
width: 1
|
|
209
|
+
height: parent.height
|
|
210
|
+
color: Theme.alpha(Theme.foreground, 0.12)
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// ---- right: what the headphones hear directly (EVO Control's mixer) ----
|
|
214
|
+
Column {
|
|
215
|
+
id: hpMix
|
|
216
|
+
anchors.left: split.right
|
|
217
|
+
anchors.leftMargin: 20
|
|
218
|
+
anchors.right: parent.right
|
|
219
|
+
height: parent.height
|
|
220
|
+
spacing: 10
|
|
221
|
+
// 0 = audífonos 1 (outputs 1-2), 1 = audífonos 2 (outputs 3-4).
|
|
222
|
+
property int pair: 0
|
|
223
|
+
// Level and pan each strip had before muting, to bring them back.
|
|
224
|
+
property var beforeMute: ({})
|
|
225
|
+
readonly property var sources: [
|
|
226
|
+
{ title: "IN 1", subtitle: "entrada 1", rows: [0] },
|
|
227
|
+
{ title: "IN 2", subtitle: "entrada 2", rows: [1] },
|
|
228
|
+
{ title: "IN 3", subtitle: "entrada 3", rows: [2] },
|
|
229
|
+
{ title: "IN 4", subtitle: "entrada 4", rows: [3] },
|
|
230
|
+
{ title: "PC 1-2", subtitle: "audio del PC", rows: [4, 5] },
|
|
231
|
+
{ title: "PC 3-4", subtitle: "salidas 3-4", rows: [6, 7] },
|
|
232
|
+
{ title: "PC 5-6", subtitle: "loop-back", rows: [8, 9] }
|
|
233
|
+
]
|
|
234
|
+
|
|
235
|
+
// Cells a source touches in the selected pair: [row, out] for left
|
|
236
|
+
// and right; a stereo pair also owns its cross-feed cells.
|
|
237
|
+
function cells(src) {
|
|
238
|
+
var l = pair * 2, r = pair * 2 + 1
|
|
239
|
+
if (src.rows.length === 1) return { left: [src.rows[0], l], right: [src.rows[0], r], cross: [] }
|
|
240
|
+
return { left: [src.rows[0], l], right: [src.rows[1], r],
|
|
241
|
+
cross: [[src.rows[0], r], [src.rows[1], l]] }
|
|
242
|
+
}
|
|
243
|
+
function stateOf(src) {
|
|
244
|
+
var c = cells(src)
|
|
245
|
+
return F.hwLevelPan(page.cellValue(c.left[0], c.left[1]), page.cellValue(c.right[0], c.right[1]))
|
|
246
|
+
}
|
|
247
|
+
function isPending(src) {
|
|
248
|
+
var c = cells(src), all = [c.left, c.right].concat(c.cross)
|
|
249
|
+
for (var i = 0; i < all.length; i++)
|
|
250
|
+
if (page.pending[all[i][0] + "," + all[i][1]] !== undefined) return true
|
|
251
|
+
return false
|
|
252
|
+
}
|
|
253
|
+
function write(src, level, pan) {
|
|
254
|
+
var c = cells(src), v = F.hwCells(level, pan, page.offPosition)
|
|
255
|
+
mixer.hwSetCell(c.left[0], c.left[1], v[0])
|
|
256
|
+
mixer.hwSetCell(c.right[0], c.right[1], v[1])
|
|
257
|
+
// A stereo source plays left on left and right on right.
|
|
258
|
+
for (var i = 0; i < c.cross.length; i++) mixer.hwSetCell(c.cross[i][0], c.cross[i][1], F.HW_OFF)
|
|
259
|
+
}
|
|
260
|
+
function toggleMute(src) {
|
|
261
|
+
var st = stateOf(src), key = src.title + "/" + pair
|
|
262
|
+
if (!st) return
|
|
263
|
+
if (st.muted) {
|
|
264
|
+
var back = beforeMute[key] || { level: 0, pan: 0 }
|
|
265
|
+
write(src, back.level, back.pan)
|
|
266
|
+
} else {
|
|
267
|
+
var m = Object.assign({}, beforeMute)
|
|
268
|
+
m[key] = { level: st.level, pan: st.pan }
|
|
269
|
+
beforeMute = m
|
|
270
|
+
write(src, page.offPosition, 0)
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
SectionTitle { text: "LO QUE OYES DIRECTO EN LOS AUDÍFONOS · SIN PASAR POR EL PC, SIN LATENCIA" }
|
|
276
|
+
|
|
277
|
+
// Which headphone mix the strips below edit: one joined control.
|
|
278
|
+
Row {
|
|
279
|
+
spacing: 14
|
|
280
|
+
Text {
|
|
281
|
+
width: 70
|
|
282
|
+
anchors.verticalCenter: parent.verticalCenter
|
|
283
|
+
text: "EDITAR"
|
|
284
|
+
color: Theme.dim
|
|
285
|
+
font.family: Theme.font
|
|
286
|
+
font.pixelSize: Theme.caption
|
|
287
|
+
font.letterSpacing: 1.2
|
|
288
|
+
font.bold: true
|
|
289
|
+
}
|
|
290
|
+
Rectangle {
|
|
291
|
+
width: seg.implicitWidth + 2
|
|
292
|
+
height: seg.implicitHeight + 2
|
|
293
|
+
radius: Theme.radius
|
|
294
|
+
color: "transparent"
|
|
295
|
+
border.width: 1
|
|
296
|
+
border.color: Theme.alpha(Theme.foreground, 0.35)
|
|
297
|
+
Row {
|
|
298
|
+
id: seg
|
|
299
|
+
x: 1
|
|
300
|
+
y: 1
|
|
301
|
+
Repeater {
|
|
302
|
+
model: ["Audífonos 1 · salidas 1-2", "Audífonos 2 · salidas 3-4"]
|
|
303
|
+
Rectangle {
|
|
304
|
+
required property var modelData
|
|
305
|
+
required property int index
|
|
306
|
+
readonly property bool current: hpMix.pair === index
|
|
307
|
+
width: segText.implicitWidth + 32
|
|
308
|
+
height: segText.implicitHeight + 14
|
|
309
|
+
radius: Theme.radius
|
|
310
|
+
color: current ? Theme.alpha(Theme.accent, 0.3)
|
|
311
|
+
: segMouse.containsMouse ? Theme.alpha(Theme.foreground, 0.08) : "transparent"
|
|
312
|
+
Text {
|
|
313
|
+
id: segText
|
|
314
|
+
anchors.centerIn: parent
|
|
315
|
+
text: (parent.current ? "● " : "○ ") + modelData
|
|
316
|
+
color: parent.current ? Theme.foreground : Theme.dim
|
|
317
|
+
font.family: Theme.font
|
|
318
|
+
font.pixelSize: Theme.body
|
|
319
|
+
font.bold: parent.current
|
|
320
|
+
}
|
|
321
|
+
MouseArea {
|
|
322
|
+
id: segMouse
|
|
323
|
+
anchors.fill: parent
|
|
324
|
+
hoverEnabled: true
|
|
325
|
+
cursorShape: Qt.PointingHandCursor
|
|
326
|
+
onClicked: hpMix.pair = index
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
// Shortcuts: they only stage changes for the headphones being
|
|
335
|
+
// edited; nothing reaches the EVO until "Aplicar".
|
|
336
|
+
Row {
|
|
337
|
+
spacing: 14
|
|
338
|
+
function preset(level) {
|
|
339
|
+
for (var i = 0; i < page.rows.length; i++)
|
|
340
|
+
for (var o = hpMix.pair * 2; o <= hpMix.pair * 2 + 1; o++) {
|
|
341
|
+
var db = level(i)
|
|
342
|
+
if (db !== null) mixer.hwSetCell(i, o, db)
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
Text {
|
|
346
|
+
width: 70
|
|
347
|
+
anchors.verticalCenter: parent.verticalCenter
|
|
348
|
+
text: "ATAJOS"
|
|
349
|
+
color: Theme.dim
|
|
350
|
+
font.family: Theme.font
|
|
351
|
+
font.pixelSize: Theme.caption
|
|
352
|
+
font.letterSpacing: 1.2
|
|
353
|
+
font.bold: true
|
|
354
|
+
}
|
|
355
|
+
Repeater {
|
|
356
|
+
model: [
|
|
357
|
+
{ label: "Como de fábrica", fn: function(i) { return 0 } },
|
|
358
|
+
{ label: "No oír ninguna entrada", fn: function(i) { return i < 4 ? -128 : null } },
|
|
359
|
+
{ label: "Oír solo la entrada 1", fn: function(i) { return i === 0 ? 0 : (i < 4 ? -128 : null) } },
|
|
360
|
+
{ label: "Oír entradas 1 y 2", fn: function(i) { return i < 2 ? 0 : (i < 4 ? -128 : null) } }
|
|
361
|
+
]
|
|
362
|
+
Text {
|
|
363
|
+
required property var modelData
|
|
364
|
+
anchors.verticalCenter: parent.verticalCenter
|
|
365
|
+
text: "› " + modelData.label
|
|
366
|
+
color: shortcutMouse.containsMouse && enabled ? Theme.foreground : Theme.dim
|
|
367
|
+
font.family: Theme.font
|
|
368
|
+
font.pixelSize: Theme.caption
|
|
369
|
+
font.underline: shortcutMouse.containsMouse && enabled
|
|
370
|
+
enabled: !page.hw.busy && !!page.hw.mix
|
|
371
|
+
opacity: enabled ? 1 : 0.4
|
|
372
|
+
MouseArea {
|
|
373
|
+
id: shortcutMouse
|
|
374
|
+
anchors.fill: parent
|
|
375
|
+
anchors.margins: -4
|
|
376
|
+
hoverEnabled: true
|
|
377
|
+
cursorShape: Qt.PointingHandCursor
|
|
378
|
+
onClicked: parent.parent.preset(modelData.fn)
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
Row {
|
|
385
|
+
id: strips
|
|
386
|
+
spacing: 6
|
|
387
|
+
readonly property real stripWidth: (hpMix.width - spacing * (hpMix.sources.length - 1)) / hpMix.sources.length
|
|
388
|
+
readonly property real available: hpMix.height - y - hint.height - hpMix.spacing
|
|
389
|
+
Repeater {
|
|
390
|
+
model: hpMix.sources
|
|
391
|
+
HwMixStrip {
|
|
392
|
+
required property var modelData
|
|
393
|
+
width: strips.stripWidth
|
|
394
|
+
faderHeight: Math.max(120, strips.available - chromeHeight)
|
|
395
|
+
title: modelData.title
|
|
396
|
+
subtitle: modelData.subtitle
|
|
397
|
+
floor: page.offPosition
|
|
398
|
+
state: page.hw.mix ? hpMix.stateOf(modelData) : null
|
|
399
|
+
pending: hpMix.isPending(modelData)
|
|
400
|
+
enabled: !page.hw.busy
|
|
401
|
+
onLevelMoved: function(v) {
|
|
402
|
+
var st = hpMix.stateOf(modelData)
|
|
403
|
+
hpMix.write(modelData, v, st && !st.muted ? st.pan : 0)
|
|
404
|
+
}
|
|
405
|
+
onPanMoved: function(p) {
|
|
406
|
+
var st = hpMix.stateOf(modelData)
|
|
407
|
+
if (st && !st.muted) hpMix.write(modelData, st.level, p)
|
|
408
|
+
}
|
|
409
|
+
onMuteToggled: hpMix.toggleMute(modelData)
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
Text {
|
|
414
|
+
id: hint
|
|
415
|
+
width: parent.width
|
|
416
|
+
elide: Text.ElideRight
|
|
417
|
+
text: page.hw.mix
|
|
418
|
+
? "Fader abajo del todo o = no oír esa fuente. Los cambios llegan a la EVO al pulsar «Aplicar a la EVO»."
|
|
419
|
+
: "Pulsa «Leer de la EVO» para ver y cambiar estos valores."
|
|
420
|
+
color: Theme.dim
|
|
421
|
+
font.family: Theme.font
|
|
422
|
+
font.pixelSize: Theme.caption
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
// ---- advanced: loop-back and the full matrix ----
|
|
428
|
+
Column {
|
|
429
|
+
id: advanced
|
|
430
|
+
property bool open: false
|
|
431
|
+
spacing: 18
|
|
432
|
+
|
|
433
|
+
// Opening scrolls the page down to the options, closing back up,
|
|
434
|
+
// so the change is never off-screen.
|
|
435
|
+
function toggle() {
|
|
436
|
+
open = !open
|
|
437
|
+
Qt.callLater(function() {
|
|
438
|
+
var f = page.contentItem
|
|
439
|
+
f.contentY = open ? Math.max(0, Math.min(advanced.y, f.contentHeight - f.height)) : 0
|
|
440
|
+
})
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
Rectangle {
|
|
444
|
+
width: advLabel.implicitWidth + 28
|
|
445
|
+
height: advLabel.implicitHeight + 14
|
|
446
|
+
radius: Theme.radius
|
|
447
|
+
color: advanced.open ? Theme.alpha(Theme.foreground, 0.1)
|
|
448
|
+
: advMouse.containsMouse ? Theme.alpha(Theme.foreground, 0.07) : "transparent"
|
|
449
|
+
border.width: 1
|
|
450
|
+
border.color: Theme.alpha(Theme.foreground, advanced.open ? 0.5 : 0.3)
|
|
451
|
+
Text {
|
|
452
|
+
id: advLabel
|
|
453
|
+
anchors.centerIn: parent
|
|
454
|
+
text: (advanced.open ? "▾ Ocultar avanzado" : "▸ Avanzado")
|
|
455
|
+
+ " · loop-back y matriz completa (incluye el audio del PC)"
|
|
456
|
+
color: Theme.foreground
|
|
457
|
+
font.family: Theme.font
|
|
458
|
+
font.pixelSize: Theme.caption
|
|
459
|
+
font.bold: true
|
|
460
|
+
}
|
|
461
|
+
MouseArea {
|
|
462
|
+
id: advMouse
|
|
463
|
+
anchors.fill: parent
|
|
464
|
+
hoverEnabled: true
|
|
465
|
+
cursorShape: Qt.PointingHandCursor
|
|
466
|
+
onClicked: advanced.toggle()
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
Column {
|
|
471
|
+
visible: advanced.open
|
|
472
|
+
spacing: 22
|
|
473
|
+
// ---- loop-back ----
|
|
474
|
+
Column {
|
|
475
|
+
spacing: 8
|
|
476
|
+
SectionTitle { text: "LOOP-BACK · LO QUE LLEGA A LA CAPTURA 5-6" }
|
|
477
|
+
Text {
|
|
478
|
+
text: "Solo para programas que graban desde una entrada de la EVO (OBS, etc.). Si usas la Mezcla en la llamada, déjalo en PC 5-6."
|
|
479
|
+
color: Theme.dim
|
|
480
|
+
font.family: Theme.font
|
|
481
|
+
font.pixelSize: Theme.caption
|
|
482
|
+
}
|
|
483
|
+
Row {
|
|
484
|
+
spacing: 8
|
|
485
|
+
Repeater {
|
|
486
|
+
model: page.loopbackOptions
|
|
487
|
+
Rectangle {
|
|
488
|
+
required property var modelData
|
|
489
|
+
readonly property bool current: page.hw.loopback === modelData.name
|
|
490
|
+
readonly property bool chosen: page.pendingLoopback === modelData.name
|
|
491
|
+
width: 200
|
|
492
|
+
height: 52
|
|
493
|
+
radius: Theme.radius
|
|
494
|
+
color: chosen ? Theme.alpha(Theme.accent, 0.22)
|
|
495
|
+
: current && page.pendingLoopback === "" ? Theme.alpha(Theme.foreground, 0.12)
|
|
496
|
+
: optMouse.containsMouse ? Theme.alpha(Theme.foreground, 0.07) : "transparent"
|
|
497
|
+
border.width: 1
|
|
498
|
+
border.color: chosen ? Theme.accent : Theme.alpha(Theme.foreground, current ? 0.5 : 0.2)
|
|
499
|
+
Column {
|
|
500
|
+
anchors.centerIn: parent
|
|
501
|
+
spacing: 2
|
|
502
|
+
Text {
|
|
503
|
+
anchors.horizontalCenter: parent.horizontalCenter
|
|
504
|
+
text: (parent.parent.current ? " " : "") + modelData.label
|
|
505
|
+
color: Theme.foreground
|
|
506
|
+
font.family: Theme.font
|
|
507
|
+
font.pixelSize: Theme.body
|
|
508
|
+
font.bold: parent.parent.current || parent.parent.chosen
|
|
509
|
+
}
|
|
510
|
+
Text {
|
|
511
|
+
anchors.horizontalCenter: parent.horizontalCenter
|
|
512
|
+
width: 188
|
|
513
|
+
horizontalAlignment: Text.AlignHCenter
|
|
514
|
+
elide: Text.ElideRight
|
|
515
|
+
text: modelData.detail
|
|
516
|
+
color: Theme.dim
|
|
517
|
+
font.family: Theme.font
|
|
518
|
+
font.pixelSize: Theme.caption
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
MouseArea {
|
|
522
|
+
id: optMouse
|
|
523
|
+
anchors.fill: parent
|
|
524
|
+
hoverEnabled: true
|
|
525
|
+
cursorShape: Qt.PointingHandCursor
|
|
526
|
+
enabled: !page.hw.busy
|
|
527
|
+
onClicked: mixer.hwSetLoopback(modelData.name)
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
// ---- internal monitor mix ----
|
|
535
|
+
Column {
|
|
536
|
+
spacing: 8
|
|
537
|
+
SectionTitle { text: "MATRIZ COMPLETA · dB por entrada y salida (izquierda del todo = apagado)" }
|
|
538
|
+
Grid {
|
|
539
|
+
columns: page.outputs.length + 1
|
|
540
|
+
columnSpacing: 14
|
|
541
|
+
rowSpacing: 6
|
|
542
|
+
verticalItemAlignment: Grid.AlignVCenter
|
|
543
|
+
|
|
544
|
+
Item { width: 60; height: 1 }
|
|
545
|
+
Repeater {
|
|
546
|
+
model: page.outputs
|
|
547
|
+
SectionTitle { required property var modelData; text: modelData; width: 170 }
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
Repeater {
|
|
551
|
+
model: page.rows.length * (page.outputs.length + 1)
|
|
552
|
+
Item {
|
|
553
|
+
id: cell
|
|
554
|
+
required property int index
|
|
555
|
+
readonly property int row: Math.floor(index / (page.outputs.length + 1))
|
|
556
|
+
readonly property int col: index % (page.outputs.length + 1) - 1
|
|
557
|
+
readonly property var db: col >= 0 ? page.cellValue(row, col) : null
|
|
558
|
+
readonly property bool isPending: col >= 0 && page.pending[row + "," + col] !== undefined
|
|
559
|
+
width: col < 0 ? 60 : 170
|
|
560
|
+
height: 24
|
|
561
|
+
|
|
562
|
+
Text {
|
|
563
|
+
visible: cell.col < 0
|
|
564
|
+
anchors.verticalCenter: parent.verticalCenter
|
|
565
|
+
text: page.rows[cell.row]
|
|
566
|
+
color: Theme.foreground
|
|
567
|
+
font.family: Theme.font
|
|
568
|
+
font.pixelSize: Theme.body
|
|
569
|
+
font.bold: true
|
|
570
|
+
}
|
|
571
|
+
Row {
|
|
572
|
+
visible: cell.col >= 0
|
|
573
|
+
anchors.verticalCenter: parent.verticalCenter
|
|
574
|
+
spacing: 8
|
|
575
|
+
PixelSlider {
|
|
576
|
+
width: 120
|
|
577
|
+
enabled: !page.hw.busy && cell.db !== null
|
|
578
|
+
minimum: page.offPosition
|
|
579
|
+
maximum: 0
|
|
580
|
+
step: 1
|
|
581
|
+
value: cell.db === null ? page.offPosition : Math.max(page.offPosition, cell.db)
|
|
582
|
+
onMoved: function(v) {
|
|
583
|
+
mixer.hwSetCell(cell.row, cell.col, v <= page.offPosition ? -128 : v)
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
Text {
|
|
587
|
+
width: 40
|
|
588
|
+
anchors.verticalCenter: parent.verticalCenter
|
|
589
|
+
text: F.hwDb(cell.db)
|
|
590
|
+
color: cell.isPending ? Theme.accent : Theme.foreground
|
|
591
|
+
font.family: Theme.font
|
|
592
|
+
font.pixelSize: Theme.caption
|
|
593
|
+
font.bold: cell.isPending
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
}
|