Debian Codegraph @

docs/presets.md

raw symbols SCIP
1 # Presets and Configuration Files
2
3 alsa-scarlett-gui provides two ways to save and restore your
4 interface configuration: quick presets for frequent use, and
5 file-based save/load for backup and sharing.
6
7 ## Presets Button
8
9 The Presets button in the main window provides quick access to
10 named configurations for your interface.
11
12 ![Presets Popover](../img/presets.png)
13
14 Click the button to show a popover with:
15
16 - **Saved presets** — Click any preset name to load it
17 immediately
18 - **Delete button** — The × button next to each preset
19 removes it permanently
20 - **Save as Preset...** — Opens a dialog to save the current
21 configuration with a name
22
23 Presets are stored per-device (identified by serial number)
24 in `~/.config/alsa-scarlett-gui/`. Each preset is a `.conf`
25 file named `{serial}-{name}.conf`.
26
27 ### Use Cases
28
29 - Save different configurations for recording, mixing, and
30 streaming
31 - Quick recall of routing setups for different projects
32 - Store differently-calibrated monitor group settings
33
34 ## File Menu
35
36 The File menu provides save/load functionality with file
37 dialogs.
38
39 ### Save Configuration (Ctrl-S)
40
41 File → Save Configuration opens a file dialog to save your
42 current settings. Two formats are available:
43
44 | Format | Extension | Description |
45 |--------|-----------|-------------|
46 | Native | `.conf` | Saves all settings (recommended) |
47 | alsactl | `.state` | ALSA controls only |
48
49 The native format is the default and is recommended because
50 it captures your complete configuration — including custom
51 port names, port visibility (show/hide), stereo linking, and
52 DSP filter parameters. These settings are managed by
53 alsa-scarlett-gui and stored locally, so the alsactl format
54 (which only saves kernel-level ALSA controls) cannot include
55 them.
56
57 The alsactl format is useful for interface simulation
58 (File → Interface Simulation), which lets you explore the
59 GUI for a device you don't have connected.
60
61 ### Load Configuration (Ctrl-O)
62
63 File → Load Configuration opens a file dialog to restore
64 settings from a saved file. Both `.conf` and `.state`
65 formats are supported.
66
67 Loading a configuration immediately applies all settings to
68 your interface — routing, mixer levels, input/output
69 settings, custom names, and visibility.
70
71 ## Native Format
72
73 The native `.conf` format uses GLib key-file (INI-style)
74 syntax:
75
76 ```ini
77 [device]
78 serial=ABCD1234567890
79 model=Scarlett 18i20 USB
80
81 [controls]
82 Clock Source Capture Enum=Internal
83 Analogue Output 01 Playback Enum=Mix A
84 Mix A Input 01 Playback Volume=-6
85 ...
86 ```
87
88 The format stores:
89
90 - Boolean values as `true`/`false`
91 - Enum values by name (e.g., `Internal`, `Mix A`)
92 - Integer values in the driver's native scale
93 - Custom names as text strings
94
95 ## Sharing Configurations
96
97 Configuration files can be shared between users or machines:
98
99 - The serial number in the file is for reference only —
100 files can be loaded on any compatible interface
101 - Controls that don't exist on the target interface are
102 silently ignored