mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Changed default crossfader shape`
This commit is contained in:
1 parent
352aa3e956
commit
832dbed341
5 files changed
+12
-8
No files matched your search
@@ -1174,7 +1174,7 @@ Two independent apps that talk over HTTP:
|
|||||||
/ Try again (`backend_restart`). The shell has no timeout of its own. Before
|
/ Try again (`backend_restart`). The shell has no timeout of its own. Before
|
||||||
ready it answers quit requests itself — nothing can be unsaved — and stops
|
ready it answers quit requests itself — nothing can be unsaved — and stops
|
||||||
at ready so it never races `QuitGuard`), `SaveBar` (+ "Discard changes…" when
|
at ready so it never races `QuitGuard`), `SaveBar` (+ "Discard changes…" when
|
||||||
dirty, and the settings gear beside it, whose menu (or `?` anywhere) opens `ShortcutsDialog` — a KEYBOARD MAP (decided 2026-10-15): keys lit in the colour of what they do, a caption explaining the key pointed at or pressed (pressing explains, it never acts: a capture-phase listener keeps the deck's and table's keys from firing), holding or picking ⇧ / Cmd-Ctrl relights it with that layer, mouse gestures listed beneath. It shrinks to fit the dialog and drops the words on the keys when too small. Its content is `lib/shortcuts.ts`, written out BY HAND, so a new or changed shortcut in `lib/deckKeys.ts` / `TrackTable` must be added there too — and `AppSettings` ("Konduktor Settings…": app-level prefs, each with its default in `APP_SETTING_DEFAULTS` and read through `useAppSetting`; today `expandPlaylistFolders` and `exportRootFolder`, both default off — the latter read by the backend at `run_export` and passed down as `ExportPayload.root_folder` — and `timeReadoutDecimals` (0–3, default 1: the deck's ELAPSED / REMAIN, truncated, never rounded)) — and its own panel, `PerformanceSettings` ("Performance mode…", decided 2026-11-03), whose values sit in the same `APP_SETTING_DEFAULTS`: `perfStems` (default on: a stem track loaded INTO performance mode plays its stems, else its mix; read at load, never reloads a deck), `keylockDefault` (on), `eqKill` (off = -26 dB), `crossfaderSharpness` (0..1, default 0 = smooth: a slider beside `CrossfaderCurveGraph`, which draws both channels' curves and where the crossfader is; dragging it moves the mixer at once and saves through the debounced prefs writer), and the colour effects' one parameter each, `fxFilterResonance` / `fxEchoBeats` / `fxSpaceSize` / `fxNoiseResonance` / `fxCrushDrive` (the mixer's per-channel PRM knob was removed). PrepStrip copies them into `mixerState`. The Sidebar holds folder open state as per-id overrides of that setting, reset on a new library or a change of the setting, and carried to the new ids when a rename/move changes a folder's path id)), `Toolbar` (search/filters; columns are chosen by right-clicking the table header),
|
dirty, and the settings gear beside it, whose menu (or `?` anywhere) opens `ShortcutsDialog` — a KEYBOARD MAP (decided 2026-10-15): keys lit in the colour of what they do, a caption explaining the key pointed at or pressed (pressing explains, it never acts: a capture-phase listener keeps the deck's and table's keys from firing), holding or picking ⇧ / Cmd-Ctrl relights it with that layer, mouse gestures listed beneath. It shrinks to fit the dialog and drops the words on the keys when too small. Its content is `lib/shortcuts.ts`, written out BY HAND, so a new or changed shortcut in `lib/deckKeys.ts` / `TrackTable` must be added there too — and `AppSettings` ("Konduktor Settings…": app-level prefs, each with its default in `APP_SETTING_DEFAULTS` and read through `useAppSetting`; today `expandPlaylistFolders` and `exportRootFolder`, both default off — the latter read by the backend at `run_export` and passed down as `ExportPayload.root_folder` — and `timeReadoutDecimals` (0–3, default 1: the deck's ELAPSED / REMAIN, truncated, never rounded)) — and its own panel, `PerformanceSettings` ("Performance mode…", decided 2026-11-03), whose values sit in the same `APP_SETTING_DEFAULTS`: `perfStems` (default on: a stem track loaded INTO performance mode plays its stems, else its mix; read at load, never reloads a deck), `keylockDefault` (on), `eqKill` (off = -26 dB), `crossfaderSharpness` (0..1, 0 = smooth, default 0.5: a slider beside `CrossfaderCurveGraph`, which draws both channels' curves and where the crossfader is; dragging it moves the mixer at once and saves through the debounced prefs writer), and the colour effects' one parameter each, `fxFilterResonance` / `fxEchoBeats` / `fxSpaceSize` / `fxNoiseResonance` / `fxCrushDrive` (the mixer's per-channel PRM knob was removed). PrepStrip copies them into `mixerState`. The Sidebar holds folder open state as per-id overrides of that setting, reset on a new library or a change of the setting, and carried to the new ids when a rename/move changes a folder's path id)), `Toolbar` (search/filters; columns are chosen by right-clicking the table header),
|
||||||
`TrackTable` (**the one track list** — All Tracks, playlists, exports and
|
`TrackTable` (**the one track list** — All Tracks, playlists, exports and
|
||||||
devices. TanStack Table + **virtualized** grid; per-row play button,
|
devices. TanStack Table + **virtualized** grid; per-row play button,
|
||||||
configurable columns, header sorting, inline double-click editing, and
|
configurable columns, header sorting, inline double-click editing, and
|
||||||
|
|||||||
@@ -30,8 +30,10 @@ export const APP_SETTING_DEFAULTS = {
|
|||||||
keylockDefault: true,
|
keylockDefault: true,
|
||||||
/** EQ full left kills the band (else -26 dB, DJM-style). */
|
/** EQ full left kills the band (else -26 dB, DJM-style). */
|
||||||
eqKill: false,
|
eqKill: false,
|
||||||
/** The crossfader curve: 0 smooth (constant power) .. 1 sharp (a cut). */
|
/** The crossfader curve: 0 smooth (constant power) .. 1 sharp (a cut).
|
||||||
crossfaderSharpness: 0,
|
* Default halfway: both channels full across the middle, fading over the
|
||||||
|
* outer half of the travel each (decided 2026-11-03). */
|
||||||
|
crossfaderSharpness: 0.5,
|
||||||
/** The colour effects' one parameter each (the mixer has no knob for it). */
|
/** The colour effects' one parameter each (the mixer has no knob for it). */
|
||||||
fxFilterResonance: 0.3,
|
fxFilterResonance: 0.3,
|
||||||
fxEchoBeats: 0.5,
|
fxEchoBeats: 0.5,
|
||||||
|
|||||||
@@ -115,10 +115,12 @@ export function PerformanceSettings({ onClose }: { onClose: () => void }) {
|
|||||||
value={sharpness}
|
value={sharpness}
|
||||||
min={0}
|
min={0}
|
||||||
max={1}
|
max={1}
|
||||||
defaultValue={0}
|
defaultValue={APP_SETTING_DEFAULTS.crossfaderSharpness}
|
||||||
onChange={changeSharpness}
|
onChange={changeSharpness}
|
||||||
label="Crossfader curve sharpness"
|
label="Crossfader curve sharpness"
|
||||||
describe={(v) => `${Math.round(v * 100)}% sharp — double-click for smooth`}
|
describe={(v) =>
|
||||||
|
`${Math.round(v * 100)}% sharp — double-click to reset to ${Math.round(APP_SETTING_DEFAULTS.crossfaderSharpness * 100)}%`
|
||||||
|
}
|
||||||
className="w-full"
|
className="w-full"
|
||||||
/>
|
/>
|
||||||
<div className="flex justify-between text-[10px] uppercase tracking-wider text-faint">
|
<div className="flex justify-between text-[10px] uppercase tracking-wider text-faint">
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ export function MixerPanel({ autoGain }: { autoGain: Record<Channel, number | nu
|
|||||||
</div>
|
</div>
|
||||||
<Strip ch="B" autoGain={autoGain.B} meterRef={meterRefs.B} mirrored />
|
<Strip ch="B" autoGain={autoGain.B} meterRef={meterRefs.B} mirrored />
|
||||||
</div>
|
</div>
|
||||||
<div className="flex h-6 shrink-0 items-center gap-2 px-1">
|
<div className="flex h-6 shrink-0 items-center justify-center gap-2 px-1">
|
||||||
<span className="font-mono text-[11px] font-semibold text-muted">A</span>
|
<span className="font-mono text-[11px] font-semibold text-muted">A</span>
|
||||||
<Fader
|
<Fader
|
||||||
orientation="horizontal"
|
orientation="horizontal"
|
||||||
@@ -133,7 +133,7 @@ export function MixerPanel({ autoGain }: { autoGain: Record<Channel, number | nu
|
|||||||
Math.abs(v) < 0.03 ? 'centre' : v < 0 ? `toward A ${Math.round(-v * 100)}%` : `toward B ${Math.round(v * 100)}%`
|
Math.abs(v) < 0.03 ? 'centre' : v < 0 ? `toward A ${Math.round(-v * 100)}%` : `toward B ${Math.round(v * 100)}%`
|
||||||
}`
|
}`
|
||||||
}
|
}
|
||||||
className="flex-1"
|
className="w-1/2"
|
||||||
/>
|
/>
|
||||||
<span className="font-mono text-[11px] font-semibold text-muted">B</span>
|
<span className="font-mono text-[11px] font-semibold text-muted">B</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ let state: MixerState = {
|
|||||||
A: DEFAULT_CHANNEL,
|
A: DEFAULT_CHANNEL,
|
||||||
B: DEFAULT_CHANNEL,
|
B: DEFAULT_CHANNEL,
|
||||||
crossfader: 0,
|
crossfader: 0,
|
||||||
sharpness: 0,
|
sharpness: 0.5,
|
||||||
eqKill: false,
|
eqKill: false,
|
||||||
fx: DEFAULT_FX,
|
fx: DEFAULT_FX,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user