Geoffrey D. Bennett
1815f61280
Allow GtkDial to shrink more and reduce slider thickness
2024-02-20 23:28:31 +10:30
Geoffrey D. Bennett
eaf73c280b
Remove struct dial_properties; cache values in struct _GtkDial
2024-02-20 23:28:29 +10:30
Geoffrey D. Bennett
24a79963ba
Use GtkDial off_db (deadband) for level meters
...
Set HW Output level meters deadband to -55dB, others to -45dB to match
the 4th Gen hardware level meters.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
1cc6c64c04
Add off_db (deadband) to GtkDial for quiet signals
...
Add an optional deadband at the bottom of the GtkDial so that very
quiet signals can be squashed into the first 1% of the dial. This will
be used to make the level meters more realistic.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
17b39efee0
Add 4th Gen Solo Mix switch
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
1c2d966763
Add GtkDial:can_control property
...
If the dial can't be controlled, it shouldn't be dimmed when it's not
sensitive.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
72d45a0987
Add draw_slider() to remove some common code from dial_snapshot()
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
9fc4c7c6e1
Use GtkTextView instead of GtkLabel in startup big_label()
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
4b340b4d4c
Add CSS for buttons that get dimmer when checked
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
f40a1c986d
Update about, etc. messages to include Gen 4/Clarett
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
793523b0a7
Add some red and grey
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
eae7cdc204
Remove now-unused widget-combo
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
e0e591db3e
Update 3rd Gen Solo Direct Monitor control to match 4th Gen
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
b8ca52e7f2
Add power status control for 4th Gen 4i4
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
b912ccbf9c
Add 4th Gen Solo/2i2 Direct Monitor controls
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
1411ff2c3b
Switch Clock Source to widget-drop-down
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
bc9d8867f3
Add widget-drop-down for Air
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
ade852163b
Add CSS classes to controls and add more colour
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
1caa75a7d2
Move 4th Gen Solo Air control up to be next to Inst control
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
56054c2634
Rewrite choose_line_colour() to work with a dark background
...
Use HSL with fixed saturation/lightness, and a hue based on the sink
index.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
36f724c66c
Use CSS to set dark colour scheme
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
d0b7c086ca
Remove "Analogue" from small Gen 3 device input labels
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
54b99aca29
Move label into boolean controls and use button state to show status
...
Rather than having a label "Air" and the button toggle between "Off"
and "On", have the button just be "Air" and no separate label.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
099e50b91e
Remove bool_text from struct alsa_elem
...
Store the text in the boolean/dual widget private data.
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
e655ee39ce
Make GtkDial dimmer if insensitive
2024-02-20 23:26:10 +10:30
Geoffrey D. Bennett
7c44f15428
Make GtkDial look better
2024-02-20 23:26:09 +10:30
Geoffrey D. Bennett
df5d0960dd
Add support for piecewise linear interpolation taper to GtkDial
...
This commit adds support for piecewise linear interpolation tapers to
GtkDial and the gain widget so that the 4th Gen 4i4 volume knob taper
can be modelled correctly.
2024-02-11 21:46:22 +10:30
Geoffrey D. Bennett
492c348897
Add configurable taper to GtkDial
...
The taper was previously set to a log function which matched the
Clarett volume knob. Add linear option to match the Scarlett 4th Gen
input gain knobs and hardware level meters.
2024-02-08 19:04:53 +10:30
Geoffrey D. Bennett
189b9ff6f6
Move valp clamp and scale from calc_valp_log() to calc_valp()
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
a77cb0e258
Remove inline from functions in gtkdial.c
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
64ca9f78da
Fix typo range->dial in gtkdial.[ch]
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
d91c9d5687
Add page argument to gtk_dial_new_with_range()
...
Make gain widget page_incr 3dB.
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
1164845b3c
Allow for continuous dials
...
Update gtk_dial_new_with_range() to set round_digits to -1 if step is
zero.
Update create_levels_controls() to set step to zero.
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
e40ce4d5ad
Fix gtk_dial_new_with_range() to use calculated round_digits
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
fcdbc60f16
Add scale to widget-gain.c struct gain
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
3740d7ee2d
Fix GtkDial:zero_db property comment
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
28604f08a3
Reformat gtkdial.c to match rest of code
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
b646bc92cc
Remove irrelevant GDK_AVAILABLE_IN_ALL from gtkdial.h
...
GDK_AVAILABLE_IN_ALL is for core GDK/GTK classes, not user-defined
ones.
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
9587e2f494
Remove unused guint8 and gsize from gtkdial.c
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
2115a26d9d
Remove unused GtkDialFormatValueFunc from gtkdial.h
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
b2823e79be
Bump copyright year
2024-02-08 18:08:34 +10:30
Geoffrey D. Bennett
4a123f5df6
Simplify GtkDial calculations
2024-02-08 18:07:44 +10:30
Geoffrey D. Bennett
bd8f812e01
Fix widget-combo to check if the alsa elem is writable
2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett
6923a3ddb0
Don't round level meter values passed to GtkDial
2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett
20c4ff5559
Display -inf when volume/gain controls are at zero/off
2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett
770ce1cc23
Add bindings for pgup/pgdn/home/end to GtkDial
2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett
1ebd6de6a1
Add missing GtkDial scroll_begin() implementation
2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett
047fb72394
Add 4th Gen 4i4 headphone volume knob control
2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett
b35fa3cf50
Add input select widget for 4th Gen 2i2 and 4i4
2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett
47034d7901
Remove widgets from struct alsa_elem and add data to callbacks
...
Rather than having widget/widget2/widget_callback fields in the struct
alsa_elem, have a list of callbacks and allow private data to be
passed to callbacks.
2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett
d56a1d34ff
Add 4th Gen input controls
2024-02-05 20:04:58 +10:30
Geoffrey D. Bennett
63068ed9c7
Explicitly order main window controls
...
Rather than looping through the ALSA controls and creating them in
that order, create them in a specific order.
2024-02-05 20:04:56 +10:30
Geoffrey D. Bennett
2eb8e0b7cb
Make boolean widget boolify value from alsa_get_elem_value()
...
Make sure the value is 0/1 as it's used as an index into
elem->bool_text[].
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
0347d25fc9
Center-align text in combo boxes
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
9a365000ad
Combine gain and volume widgets
...
Remove volume widget and make the gain widget choose the appropriate
format string.
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
be458afcc4
Remove hard-coded values from widget-gain.c and widget-volume.c
...
Update alsa-sim.c and alsa.c to read the TLV info, and update the gain
and volume widgets to use that info rather than hard-coding the
min/max values.
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
197f469bd8
Allow for phantom power per-channel
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
658f946202
Add support for routing the Gen 4 DSP I/O
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
dfa40c79b0
Add margin to socket widget
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
93f7a32ea5
Fix Presets button to be centered
...
The Presets button was filling the available space. It looks better
using GTK_ALIGN_CENTER instead.
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
656eb06159
Inline routing_grid_label() in create_routing_group_grid()
...
As create_routing_grid() and routing_grid_label() are called 1:1 now,
the code from routing_grid_label() can be moved inside
create_routing_group_id() if we add descr and align parameters.
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
e66a3ac883
Add orientation parameter to routing_grid_label()
...
By adding an orientation parameter, then routing_grid_label() can be
used for the Mixer I/O group labels as well.
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
aba34f0648
Remove repeated group by code in create_routing_grid()
...
Create create_routing_group_grid() to remove repeated code from
create_routing_grid().
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
9890b4939b
Make the Level Meter check compatible with alsa-sim.c
...
Rather than retrieving the firmware version in alsa_scan_cards(), use
get_elem_by_name() to check if the control is present.
Update alsa-sim.c alsa_config_to_new_elem() to read iface=CARD
controls.
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
5b9ff7d457
Remove lots of casts in create_routing_grid()
...
By storing routing_grid in a GtkGrid *, lots of GTK_GRID() casts can
be removed.
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
22fdbaad41
Fix is_elem_routing_snk() for Gen 4
...
The search for routing sink ALSA elements should only include PCM,
Mixer, and DSP Capture Enums. The previous search for Capture Enum
excluding Line In Level Capture Enums is too broad for Gen 4 as the
Air control is a Capture Enum as well.
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
80cd0ebc4d
Remove gtk_widget_add_class()
...
Should use gtk_widget_add_css_class() instead.
2024-02-05 20:03:10 +10:30
Geoffrey D. Bennett
0c3bc30439
Fix dial to display focus indication
...
Partial cherry-pick from 5dc3ab Sebastian Kaminski
"dial ... shows focus indication".
Use has_focus() rather than has_visible_focus() as I found
has_visible_focus() to be unreliable.
2023-12-15 03:17:04 +10:30
Geoffrey D. Bennett
945ccc874d
Fix dial to grab focus when clicked
...
Partial cherry-pick from 5dc3ab Sebastian Kaminski
"dial grabs focus when being clicked".
2023-12-15 03:14:23 +10:30
Geoffrey D. Bennett
fef139be64
Split calc_valp() into calc_valp() and calc_valp_log()
...
gtk_dial_drag_gesture_begin() needs a linear calc_valp().
2023-12-15 02:55:42 +10:30
Geoffrey D. Bennett
e506edc965
Remove keyboard accelerator mention from USAGE.md
...
Implemented in 21f0d9d .
2023-12-15 02:51:00 +10:30
Geoffrey D. Bennett
f10a383e36
Reformat keyboard accelerators to match existing code
...
Terminate menus[] with empty-initialised as well.
2023-12-15 02:44:37 +10:30
Geoffrey D. Bennett
3a3860f617
Move FUNDING.yml to the right spot
2023-12-04 12:45:30 +10:30
Geoffrey D. Bennett
e7eea495ff
Fix typo in INSTALL.md: comitting -> committing
2023-12-03 22:13:44 +10:30
Geoffrey D. Bennett
7b3c662dcb
Add OpenSUSE package requirements
2023-12-03 22:07:19 +10:30
Geoffrey D. Bennett
6812c001de
Fix long lines
2023-12-02 04:15:55 +10:30
Geoffrey D. Bennett
266b90e8ce
Update FAQ with more MSD info
2023-12-02 03:51:53 +10:30
Geoffrey D. Bennett
21cc6d6021
Allow the mixer window to be resized and give it scrollbars
2023-12-02 03:06:53 +10:30
Geoffrey D. Bennett
ce40aa1ba9
Add link from USAGE.md to INTERFACES.md
2023-12-02 02:55:15 +10:30
Geoffrey D. Bennett
33bc54480d
Add TOC to INTERFACES.md
2023-12-02 02:45:32 +10:30
Geoffrey D. Bennett
d7f673cb32
Add Clarett info to INTERFACES.md
2023-12-02 02:44:18 +10:30
Geoffrey D. Bennett
0f269fb2da
Add issue template
2023-12-02 02:31:31 +10:30
Geoffrey D. Bennett
89e5eeaa61
Add FUNDING.yml
2023-12-02 01:51:02 +10:30
Geoffrey D. Bennett
58446d1511
Add initial version of FAQ.md
2023-12-02 01:37:33 +10:30
Geoffrey D. Bennett
8ef011145c
Fix typo in INSTALL.md driver disabled message
2023-12-01 01:27:43 +10:30
Geoffrey D. Bennett
68fb1c3655
Add Gtk4 info to INSTALL.md
2023-12-01 01:27:20 +10:30
Geoffrey D. Bennett
1d844bfa1c
Add info to INSTALL.md on how to check the kernel version
2023-12-01 01:23:53 +10:30
Geoffrey D. Bennett
68b6d0a047
Update software name in INSTALL.md and USAGE.md
...
Rename from "ALSA Scarlett Gen 2/3 Control Panel" to "ALSA Scarlett2
Control Panel".
2023-12-01 01:18:55 +10:30
Geoffrey D. Bennett
734ec616cc
Update README.md with Gen 4 info
...
Driver was renamed to Scarlett2.
Add list of supported interfaces.
Add link to Gen 4 driver update.
2023-12-01 01:15:14 +10:30
Geoffrey D. Bennett
32c0062367
Update drag_motion() to scroll the routing window
...
The routing window will be scrolled relative to the position of the
mouse within the window so all sources/sinks can be reached when
dragging.
2023-11-30 00:42:55 +10:30
Geoffrey D. Bennett
8376ce70b4
Fix typo rounting -> routing
2023-11-30 00:42:52 +10:30
Geoffrey D. Bennett
d31bd3380e
Allow the routing window to be resized and give it scrollbars
2023-11-26 22:57:52 +10:30
Geoffrey D. Bennett
19ccbbb304
Fix the socket widget so that it will not shrink
2023-11-26 22:56:59 +10:30
Geoffrey D. Bennett
26db9dec52
Improve layout for larger interfaces without speaker switching
...
The Clarett 8Pre layout was very wide; it would be preferable if the
main window output controls were placed below the global & input
controls like for the Gen 3 18i8 and 18i20.
Rather than use the presence of speaker switching to determine which
main window layout to use, check the number of input & output
controls, and use the taller layout if the total is 12 or more.
2023-11-26 22:56:09 +10:30
Geoffrey D. Bennett
92932dbb26
Remove user-control of level meters
...
jandejongh reported:
In the USB Levels display, user can (attempt to) set the level of the
"slider".
Expected: These "sliders" are read-only and should not allow setting a
value (makes no sense to me?).
Fixes : #78 .
2023-11-19 16:00:58 +10:30
Geoffrey D. Bennett
befce0824f
Check Firmware Version before enabling Levels menu item
...
The level meters don't work correctly on earlier kernel versions, so
they shouldn't be displayed in that case. The "Firmware Version" ALSA
control was added to the kernel at the same time as the level meters
were fixed, so use the presence of that to determine whether or not to
enable the menu item.
2023-11-19 13:12:50 +10:30
Geoffrey D. Bennett
abee3e537c
Pass APP_VERSION through flatpak-builder
...
Fixes the version number missing in the flatpak.
2023-11-19 00:25:41 +10:30
Geoffrey D. Bennett
e92e391548
Add Clarett USB/Clarett+ models to window-hardware.c
2023-11-18 02:03:01 +10:30
Geoffrey D. Bennett
fb3429ba6c
Global replace "destination" with "sink"
...
Fixes #73 .
2023-11-17 15:40:53 +10:30
Geoffrey D. Bennett
3595f5ccf5
Update Makefile to get version from $APP_VERSION
...
If git describe fails, check $APP_VERSION, otherwise set the version
to "Unknown".
2023-11-15 00:00:28 +10:30