From f9e3b6236b56ab30f21d9a374690155805717db4 Mon Sep 17 00:00:00 2001 From: hsshss <5428297+hsshss@users.noreply.github.com> Date: Wed, 14 Oct 2026 17:32:59 +0900 Subject: [PATCH 1/2] Let a click a little off a meter's clip lamp clear it The lamp sat at the meter button's right edge, so a click on its right side, or one that moved a point while the button was down, fell outside the button and left the lamp lit. The button is padded around the lamp, and what follows each meter stands as far from it as before. --- src/Glosa.App/Views/AudioPluginsWindow.axaml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/Glosa.App/Views/AudioPluginsWindow.axaml b/src/Glosa.App/Views/AudioPluginsWindow.axaml index 56c9e730..509da735 100644 --- a/src/Glosa.App/Views/AudioPluginsWindow.axaml +++ b/src/Glosa.App/Views/AudioPluginsWindow.axaml @@ -132,11 +132,14 @@ - + @@ -253,11 +256,11 @@ - - - @@ -365,7 +368,7 @@ - + Date: Wed, 14 Oct 2026 20:25:22 +0900 Subject: [PATCH 2/2] Give each audio plugin instrument a volume and a mute Each instrument's card in the audio plugins window has a speaker that mutes it and a volume slider, between its MIDI lamp and its meter, which now reads after the volume. They set Brack's gain and mute for the instrument, kept in the rack's session. They do not wait for Brack: the rack's contents are changed in place, without the save and refresh other changes make, so that a slider dragged while a plugin loads does not stall the window. The master volume above the seek bar gets a speaker too, for Brack's master mute. - While a volume slider is dragged, its tooltip shows the value (DragTip), and with Shift held it moves a tenth as far (FineDrag). Both take the pointer's input around the tooltip service and the slider, which would close the tip or put the value under the pointer. - The sliders' track sat 2 px high: the theme's rows around it did not add up to the slider's height. - A click on any meter puts out every clip lamp in the window. - Decibels holds the volume sliders' range and conversions, shared by the master and the instruments. - The tests' application has the Fluent theme, for the tests that drag controls. - Every window the main window opens (settings, port maps, audio plugins and the panes) opens again at startup if it was open when the player last closed, not only the panes. This needs Brack 2.0.0, with the instruments' volumes (its C API version 3), which BrackVersion now names. --- Directory.Build.props | 2 +- IMPLEMENTATION.md | 5 +- README.ja.md | 6 +- README.md | 6 +- src/Glosa.App/Controls/DragTip.cs | 72 ++++++++++++ src/Glosa.App/Controls/FineDrag.cs | 103 ++++++++++++++++++ src/Glosa.App/Services/AppSettings.cs | 9 +- src/Glosa.App/Strings.Designer.cs | 63 ++++++++++- src/Glosa.App/Strings.ja.resx | 27 ++++- src/Glosa.App/Strings.resx | 27 ++++- src/Glosa.App/Themes/Dark.axaml | 35 +++++- src/Glosa.App/Themes/Icons.axaml | 3 +- .../ViewModels/AudioPluginsViewModel.cs | 76 +++++++++++-- src/Glosa.App/ViewModels/Decibels.cs | 17 +++ src/Glosa.App/ViewModels/MainViewModel.cs | 26 +++-- src/Glosa.App/Views/AudioPluginsWindow.axaml | 16 ++- .../Views/AudioPluginsWindow.axaml.cs | 14 ++- src/Glosa.App/Views/MainWindow.axaml | 18 +-- src/Glosa.App/Views/MainWindow.axaml.cs | 56 +++++++--- src/Glosa.Midi.Brack/BrackRack.cs | 38 ++++++- .../Glosa.Tests/AudioPluginsViewModelTests.cs | 55 ++++++++++ tests/Glosa.Tests/BrackRackTests.cs | 51 ++++++++- tests/Glosa.Tests/DragTipTests.cs | 49 +++++++++ tests/Glosa.Tests/FineDragTests.cs | 63 +++++++++++ tests/Glosa.Tests/Headless.cs | 6 +- 25 files changed, 766 insertions(+), 77 deletions(-) create mode 100644 src/Glosa.App/Controls/DragTip.cs create mode 100644 src/Glosa.App/Controls/FineDrag.cs create mode 100644 src/Glosa.App/ViewModels/Decibels.cs create mode 100644 tests/Glosa.Tests/DragTipTests.cs create mode 100644 tests/Glosa.Tests/FineDragTests.cs diff --git a/Directory.Build.props b/Directory.Build.props index e35c598c..224b5429 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -26,7 +26,7 @@ defined. Whether it runs on this system is found at run time. --> - 1.2.0 + 2.0.0 $([System.IO.Path]::GetFullPath('$(MSBuildThisFileDirectory)../brack/bindings/dotnet/Brack/Brack.csproj')) Project Package diff --git a/IMPLEMENTATION.md b/IMPLEMENTATION.md index 589cd65e..f95fa194 100644 --- a/IMPLEMENTATION.md +++ b/IMPLEMENTATION.md @@ -479,7 +479,7 @@ RCP を変換する `RCPCV.DLL` は Windows 専用なので、変換は自前で プレイリストのどこまで聴いたか・どこを見ていたかは、開いているタブのぶんだけ設定の `openPlaylists` に覚える。開いていないリストの位置は覚えないので、閉じたタブを開き直すと先頭から始まる。 -ウィンドウの位置と大きさ、演奏モニタとデバッグを開いていたかどうかも覚える(`Placement`)。 +ウィンドウの位置と大きさ、どの窓を開いていたかも覚え、次の起動で開き直す(`Placement`)。 **設定は既定値も含めてすべて書く。** 書かなかった値は読むときの既定値になるので、既定値を変えると、前の既定値をわざと選んでいた人の設定まで変わってしまう。プレイリストは曲ごとの項目が多いので、既定値と同じ値を書かない(`OmitUnspecifiedVisitor`)。 @@ -609,7 +609,8 @@ MIDI はそのノートポートへ、受け取ったバイト列のまま渡す - **音声デバイスは、出力が開いているかエディタが出ている間だけ動かし、最後に閉じてから 3 秒後に止める。** 出力は再生が止まるたびに閉じる([出力を開く・閉じる](#出力を開く閉じる))。動かし続けると、開いたままの音声ストリームが Windows のスリープを妨げる。すぐに止めると、最後の音の余韻が切れる。 - **バッファ(音声デバイスの周期)は時間で選び、新しいラックでは 20 ms にする**(`BrackRack.Buffer`)。Brack の既定(256 フレーム)は弾いた音にすぐ応えるための短さで、曲を再生するだけの Glosa には要らない。長いほど、重いプラグインやほかの処理があっても音が途切れにくい。ただし Brack はメッセージを届いた 1 周期後に置くので、周期のぶんプラグインの音は MIDI ポートの先の機械より遅れる。20 ms は Windows の共有モードの周期(10 ms、これより短くしても効かない)の倍で、遅れも 20 ms ほどに収まる。Brack の設定はフレーム数なので、選んだときの出力デバイスのレートで換算して持ち、出力デバイスを変えるときは新しいデバイスのレートで換算し直す。既定の出力が変わるなどしてレートの違うデバイスで鳴ると長さも変わり、窓にはそのときのレートでの長さが出る。 - **サンプリングレートは、プラグインを動かすレート(`process_sample_rate`)を選ぶ。** 出力デバイスのレートは共有モードでは OS のミキサーのもので、Brack から変えられるのは Windows の排他モードだけ。排他モードは遅れを短くするためのもので、使っている間はほかのアプリの音が出なくなるので、設定に出さない。出力と違うレートを選ぶと、Brack が出力のレートに変換する。**変換の品質は設定に出さず、新しいラックで最高(Ultra)にする**(`BrackRack.Load`)。品質を下げる理由は CPU と遅れだが、測ると CPU の負荷は High より増えず(テスト用の音源で、44.1 kHz と 96 kHz から 48 kHz へ)、変換の遅れ(最大 9 ms ほど)は再生するだけの Glosa には効かない。 -- **マスターボリュームはプラグインの音だけにかかり、Brack のマスターゲインとしてセッションに持つ**(`settings.yaml` には書かない)。MIDI ポートの先の機械の音量は Glosa から変えられないので、効く出力が無いときに出さないよう、どれかのポートマップにプラグインのポートが 1 つでもあるときだけ曲名の右に出す(`MainViewModel.UsesAudioPlugins`)。 +- **マスターボリュームとそのミュートはプラグインの音だけにかかり、Brack のマスターゲインとミュートとしてセッションに持つ**(`settings.yaml` には書かない)。MIDI ポートの先の機械の音量は Glosa から変えられないので、効く出力が無いときに出さないよう、どれかのポートマップにプラグインのポートが 1 つでもあるときだけ曲名の右に出す(`MainViewModel.UsesAudioPlugins`)。 +- **音源ごとのボリュームとミュートも、Brack の音源のゲインとミュートとしてセッションに持ち、変えるときに Brack を待たない**(`BrackRack.SetGain`・`SetMute`)。ほかのラックの変更と違ってセッションの保存と状態の読み直しをせず、手元のラックの中身だけを書き換える。スライダーを動かし続ける間に、プラグインの読み込みで Brack が忙しくても窓が固まらないためで、保存は Brack が知らせる変更のたびに後からする。 - **エフェクトは、音源ごとの連なりと、すべての音源をミックスした音にかけるマスターの連なりに置く**(`BrackRack.AddEffect`、Brack の `brack_add_effect`)。エフェクトは出力デバイスにならない。Brack は連なりを 1 つのプロセスで動かすので、エフェクトは音源と同じアーキテクチャのもの(マスターではプレイヤーと同じもの)しか読み込めない。そのため、追加する一覧には連なりのアーキテクチャのエフェクトだけを出す(`AudioPluginsViewModel.EffectPicker`)。 - **ラックの窓の音源のメーターは、エフェクトがかかるメインの出力ポートのチャンネルだけを出す**(`BrackRack.Meters`)。出力の多い音源ですべてのポートを出すと、カードが縦に伸びるため。 - **送れなかったとき(プラグインがクラッシュした、ラックから外された、キューがあふれた)は出力の異常として曲を止める。** 黙って落とすと、ノートオフが届かず鳴り続けることがある。 diff --git a/README.ja.md b/README.ja.md index fe974dd2..61ff85e3 100644 --- a/README.ja.md +++ b/README.ja.md @@ -107,8 +107,10 @@ TMIDI Player の定義ファイルを読み込むと、TMIDI Player と同じ** エフェクトは上から順にかかり、ドラッグで並べ替えられます。 チェックを外すと、そのエフェクトを通さずに鳴らします。 使えるのは、かける音源と同じアーキテクチャのもの(マスターでは Glosa と同じもの)だけです。 +- 音源ごとのスライダーで、その音源の音量を変えられます(ダブルクリックでリセット)。 + スライダーの左のスピーカーをクリックするとミュートできます。 - 音源ごとに、MIDI が届いているか、音量のメーター、CPU の負荷が出ます。 - メーターの右の印は、音がフルスケールを超えると点き、クリックで消えます。 + メーターの右の印は、音がフルスケールを超えると点きます。どれかのメーターをクリックすると、すべての印が消えます。 窓の下には、出力デバイスの様子と、音が途切れた回数が出ます。 - エディタで変えた設定は、ラックと一緒に自動で保存されます。 - Glosa と違うアーキテクチャのプラグインも使えます(Windows の x64 版では 32 ビットのプラグインなど)。 @@ -116,6 +118,8 @@ TMIDI Player の定義ファイルを読み込むと、TMIDI Player と同じ** 複数同時に読み込むとエラーになるプラグインがあるときは、**プラグインを1つずつ読み込む** を入れます。 - どれかのポートマップでプラグインを使っていると、シークバーの上にマスターボリュームが出ます。 プラグインの音だけに効きます。 + 左のスピーカーをクリックするとミュートできます。 +- 音量のスライダーは、Shift を押しながらドラッグすると、ふだんの 1/10 の細かさで動きます。 ### 曲を追加して演奏する diff --git a/README.md b/README.md index c1f01e34..ed66f1ed 100644 --- a/README.md +++ b/README.md @@ -108,8 +108,10 @@ Which map is used is chosen in **Settings → Port Map**. "Auto" picks one for e Effects act in order from the top, and dragging reorders them. Unchecking an effect lets the sound through it unprocessed. Only effects built for the same architecture as their instrument (under Master, as Glosa) can be used. +- Each instrument's slider sets its volume (a double click resets it). + Clicking the speaker left of the slider mutes it. - Each instrument shows whether MIDI is arriving, a level meter and its CPU load. - The mark beside a meter lights when the sound goes past full scale, and a click clears it. + The mark beside a meter lights when the sound goes past full scale, and a click on any meter clears them all. The bottom of the window shows what the output device is doing and how many times the sound broke up. - What is changed in an editor is saved with the rack. - Plugins built for another architecture than Glosa's work too (32-bit plugins in the x64 build on Windows, for example). @@ -117,6 +119,8 @@ Which map is used is chosen in **Settings → Port Map**. "Auto" picks one for e When a plugin fails because several load at once, turn on **Load plugins one at a time**. - While any port map uses a plugin, a master volume shows above the seek bar. It acts on the plugins' sound only. + Clicking the speaker left of it mutes it. +- Dragging a volume slider with Shift held moves it a tenth as far, to set it finely. ### Adding and playing songs diff --git a/src/Glosa.App/Controls/DragTip.cs b/src/Glosa.App/Controls/DragTip.cs new file mode 100644 index 00000000..cd41327b --- /dev/null +++ b/src/Glosa.App/Controls/DragTip.cs @@ -0,0 +1,72 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Input; +using Avalonia.Interactivity; +using Avalonia.Threading; + +namespace Glosa.App.Controls; + +/// +/// Keeps a control's tooltip open while it is dragged, so that a slider shows what it is set to +/// as it moves. +/// +/// +/// The tooltip service closes a tip on a press, and when the pointer strays off its control; it +/// sees the input after the control does, so the tip is opened again once the input is handled. +/// +public static class DragTip +{ + public static readonly AttachedProperty ShowProperty = + AvaloniaProperty.RegisterAttached("Show", typeof(DragTip)); + + private static readonly AttachedProperty DraggingProperty = + AvaloniaProperty.RegisterAttached("Dragging", typeof(DragTip)); + + static DragTip() + { + ShowProperty.Changed.AddClassHandler((control, e) => + { + if (e.NewValue is not true) return; + control.AddHandler(InputElement.PointerPressedEvent, OnPressed, RoutingStrategies.Tunnel, handledEventsToo: true); + control.AddHandler(InputElement.PointerMovedEvent, OnMoved, RoutingStrategies.Tunnel, handledEventsToo: true); + control.AddHandler(InputElement.PointerReleasedEvent, OnReleased, RoutingStrategies.Tunnel, handledEventsToo: true); + }); + } + + public static bool GetShow(Control control) => control.GetValue(ShowProperty); + + public static void SetShow(Control control, bool value) => control.SetValue(ShowProperty, value); + + private static void OnPressed(object? sender, PointerPressedEventArgs e) + { + if (sender is not Control control || !e.GetCurrentPoint(control).Properties.IsLeftButtonPressed) return; + control.SetValue(DraggingProperty, true); + Open(control); + } + + private static void OnMoved(object? sender, PointerEventArgs e) + { + if (sender is not Control control || !control.GetValue(DraggingProperty)) return; + // The button came up where the release was not delivered. + if (!e.GetCurrentPoint(control).Properties.IsLeftButtonPressed) End(control); + else Open(control); + } + + private static void OnReleased(object? sender, PointerReleasedEventArgs e) + { + if (sender is Control control) End(control); + } + + private static void Open(Control control) + => Dispatcher.UIThread.Post(() => + { + if (control.GetValue(DraggingProperty)) ToolTip.SetIsOpen(control, true); + }); + + private static void End(Control control) + { + if (!control.GetValue(DraggingProperty)) return; + control.SetValue(DraggingProperty, false); + ToolTip.SetIsOpen(control, false); + } +} diff --git a/src/Glosa.App/Controls/FineDrag.cs b/src/Glosa.App/Controls/FineDrag.cs new file mode 100644 index 00000000..3c91ccfb --- /dev/null +++ b/src/Glosa.App/Controls/FineDrag.cs @@ -0,0 +1,103 @@ +using Avalonia; +using Avalonia.Controls; +using Avalonia.Controls.Primitives; +using Avalonia.Input; +using Avalonia.Interactivity; +using Avalonia.VisualTree; + +namespace Glosa.App.Controls; + +/// +/// Lets a slider be dragged a tenth as far while Shift is held, to set it finely. +/// +/// +/// A slider puts its value under the pointer. With Shift held, the value moves by the pointer's +/// travel instead, from where it is, so that Shift pressed or let go never makes it jump. The +/// move is taken at the window, before the slider would put the value under the pointer. +/// +public static class FineDrag +{ + /// How much of the pointer's travel moves the value while Shift is held. + public const double Fine = 0.1; + + public static readonly AttachedProperty EnabledProperty = + AvaloniaProperty.RegisterAttached("Enabled", typeof(FineDrag)); + + private static readonly AttachedProperty DragProperty = + AvaloniaProperty.RegisterAttached("Drag", typeof(FineDrag)); + + /// A drag under way: once moved by travel, where the pointer and the value were last anchored. + private sealed class Drag + { + public bool ByTravel; + public bool Fine; + public double X; + public double Value; + } + + static FineDrag() + { + EnabledProperty.Changed.AddClassHandler((slider, e) => + { + if (e.NewValue is not true) return; + slider.AddHandler(InputElement.PointerPressedEvent, OnPressed, RoutingStrategies.Tunnel, handledEventsToo: true); + slider.AddHandler(InputElement.PointerReleasedEvent, OnReleased, RoutingStrategies.Tunnel, handledEventsToo: true); + EventHandler moved = (_, args) => OnMoved(slider, args); + slider.AttachedToVisualTree += (_, args) => + (args.RootVisual as InputElement)?.AddHandler(InputElement.PointerMovedEvent, moved, RoutingStrategies.Tunnel); + slider.DetachedFromVisualTree += (_, args) => + (args.RootVisual as InputElement)?.RemoveHandler(InputElement.PointerMovedEvent, moved); + }); + } + + public static bool GetEnabled(Slider slider) => slider.GetValue(EnabledProperty); + + public static void SetEnabled(Slider slider, bool value) => slider.SetValue(EnabledProperty, value); + + private static void OnPressed(object? sender, PointerPressedEventArgs e) + { + if (sender is Slider slider && e.GetCurrentPoint(slider).Properties.IsLeftButtonPressed) + slider.SetValue(DragProperty, new Drag()); + } + + private static void OnMoved(Slider slider, PointerEventArgs e) + { + if (slider.GetValue(DragProperty) is not { } drag) return; + if (!e.GetCurrentPoint(slider).Properties.IsLeftButtonPressed) + { + slider.ClearValue(DragProperty); + return; + } + + bool fine = e.KeyModifiers.HasFlag(KeyModifiers.Shift); + if (!drag.ByTravel && !fine) return; + if (slider.FindDescendantOfType() is not { } track) return; + double length = track.Bounds.Width - (track.Thumb?.Bounds.Width ?? 0); + if (length <= 0) return; + + double x = e.GetPosition(track).X; + if (!drag.ByTravel || fine != drag.Fine) + { + drag.ByTravel = true; + drag.Fine = fine; + drag.X = x; + drag.Value = slider.Value; + } + double perPixel = (slider.Maximum - slider.Minimum) / length * (fine ? Fine : 1); + double value = drag.Value + (x - drag.X) * perPixel; + double clamped = Math.Clamp(value, slider.Minimum, slider.Maximum); + // Past an end, the travel back starts from it. + if (clamped != value) + { + drag.X = x; + drag.Value = clamped; + } + slider.SetCurrentValue(RangeBase.ValueProperty, clamped); + e.Handled = true; + } + + private static void OnReleased(object? sender, PointerReleasedEventArgs e) + { + if (sender is Slider slider) slider.ClearValue(DragProperty); + } +} diff --git a/src/Glosa.App/Services/AppSettings.cs b/src/Glosa.App/Services/AppSettings.cs index 40369ce3..9b9d4fb1 100644 --- a/src/Glosa.App/Services/AppSettings.cs +++ b/src/Glosa.App/Services/AppSettings.cs @@ -142,12 +142,9 @@ public sealed class WindowPlacement public bool Maximized { get; set; } /// - /// Whether the window was open when the player was last closed. + /// Whether the window was open when the player was last closed, to open it again. The main + /// window opens either way. /// - /// - /// Only the panes are opened again from this. The main window opens either way, and the - /// two settings windows are answers to a question that was asked last time, not this one. - /// public bool Open { get; set; } } @@ -299,7 +296,7 @@ public sealed class AppSettings /// /// Where each window was, by name: main, settings, portMaps, - /// monitor, debug. + /// audioPlugins, monitor, debug. /// /// /// A map rather than a field per window, since every window wants the same numbers. diff --git a/src/Glosa.App/Strings.Designer.cs b/src/Glosa.App/Strings.Designer.cs index 08dd91b2..92faabb9 100644 --- a/src/Glosa.App/Strings.Designer.cs +++ b/src/Glosa.App/Strings.Designer.cs @@ -238,7 +238,7 @@ public static string AudioPluginsChainLoadTip { } /// - /// Looks up a localized string similar to Went past full scale {0} times. Click to clear.. + /// Looks up a localized string similar to Went past full scale {0} times. Click to clear every meter's mark.. /// public static string AudioPluginsClipTip { get { @@ -399,6 +399,24 @@ public static string AudioPluginsMore { } } + /// + /// Looks up a localized string similar to Mute. + /// + public static string AudioPluginsMute { + get { + return ResourceManager.GetString("AudioPluginsMute", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Click to mute or unmute.. + /// + public static string AudioPluginsMuteTip { + get { + return ResourceManager.GetString("AudioPluginsMuteTip", resourceCulture); + } + } + /// /// Looks up a localized string similar to No instruments yet. Add one with Add Instrument.. /// @@ -606,6 +624,26 @@ public static string AudioPluginsTitle { } } + /// + /// Looks up a localized string similar to Volume. + /// + public static string AudioPluginsVolume { + get { + return ResourceManager.GetString("AudioPluginsVolume", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Volume: {0} dB + ///Double-click for 0 dB + ///Drag with Shift held to fine-tune. + /// + public static string AudioPluginsVolumeTip { + get { + return ResourceManager.GetString("AudioPluginsVolumeTip", resourceCulture); + } + } + /// /// Looks up a localized string similar to Auto-detect. /// @@ -2889,6 +2927,24 @@ public static string ToneMapInForce { } } + /// + /// Looks up a localized string similar to Master mute (audio plugins only). + /// + public static string TransportMasterMute { + get { + return ResourceManager.GetString("TransportMasterMute", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Click to mute or unmute.. + /// + public static string TransportMasterMuteTip { + get { + return ResourceManager.GetString("TransportMasterMuteTip", resourceCulture); + } + } + /// /// Looks up a localized string similar to Master volume (audio plugins only). /// @@ -2899,8 +2955,9 @@ public static string TransportMasterVolume { } /// - /// Looks up a localized string similar to Master volume (audio plugins only): {0} dB - ///Double-click for 0 dB. + /// Looks up a localized string similar to Master volume: {0} dB + ///Double-click for 0 dB + ///Drag with Shift held to fine-tune. /// public static string TransportMasterVolumeTip { get { diff --git a/src/Glosa.App/Strings.ja.resx b/src/Glosa.App/Strings.ja.resx index 0314eb7e..11d6f984 100644 --- a/src/Glosa.App/Strings.ja.resx +++ b/src/Glosa.App/Strings.ja.resx @@ -82,7 +82,7 @@ この音源とそのエフェクトが音を作るのにかかった時間の割合です。平均と、直近1秒の最大です。 - フルスケールを {0} 回超えました。クリックで消えます。 + フルスケールを {0} 回超えました。クリックで、すべてのメーターの印が消えます。 システムの既定 @@ -135,6 +135,12 @@ その他 + + ミュート + + + クリックでミュートを切り替えます。 + 音源はまだありません。「音源を追加...」で追加します。 @@ -204,6 +210,14 @@ オーディオプラグイン + + ボリューム + + + ボリューム: {0} dB +ダブルクリックで 0 dB +Shift キーを押しながらドラッグで微調整 + 自動判別 @@ -981,12 +995,19 @@ define.override.yaml を修正するか削除して Glosa を起動し直して 音色マップ: {0} + + マスターのミュート(オーディオプラグインのみ) + + + クリックでミュートを切り替えます。 + マスターボリューム(オーディオプラグインのみ) - マスターボリューム(オーディオプラグインのみ): {0} dB -ダブルクリックで 0 dB + マスターボリューム: {0} dB +ダブルクリックで 0 dB +Shift キーを押しながらドラッグで微調整 次の曲 diff --git a/src/Glosa.App/Strings.resx b/src/Glosa.App/Strings.resx index fc80f69b..f29c083e 100644 --- a/src/Glosa.App/Strings.resx +++ b/src/Glosa.App/Strings.resx @@ -85,7 +85,7 @@ The share of the time this instrument and its effects take to render: on average, and the most in the last second. - Went past full scale {0} times. Click to clear. + Went past full scale {0} times. Click to clear every meter's mark. System default @@ -138,6 +138,12 @@ More + + Mute + + + Click to mute or unmute. + No instruments yet. Add one with Add Instrument. @@ -207,6 +213,14 @@ Audio Plugins + + Volume + + + Volume: {0} dB +Double-click for 0 dB +Drag with Shift held to fine-tune + Auto-detect @@ -984,12 +998,19 @@ Fix or delete define.override.yaml, and restart Glosa. Tone map: {0} + + Master mute (audio plugins only) + + + Click to mute or unmute. + Master volume (audio plugins only) - Master volume (audio plugins only): {0} dB -Double-click for 0 dB + Master volume: {0} dB +Double-click for 0 dB +Drag with Shift held to fine-tune Next diff --git a/src/Glosa.App/Themes/Dark.axaml b/src/Glosa.App/Themes/Dark.axaml index e8b2c3cd..9ecf205e 100644 --- a/src/Glosa.App/Themes/Dark.axaml +++ b/src/Glosa.App/Themes/Dark.axaml @@ -76,9 +76,12 @@ 26 16 16 - - 3 - 3 + + 5 + 5 26 13 @@ -182,6 +185,32 @@ + + + + + + + +