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
@@ -30,8 +30,10 @@ export const APP_SETTING_DEFAULTS = {
|
||||
keylockDefault: true,
|
||||
/** EQ full left kills the band (else -26 dB, DJM-style). */
|
||||
eqKill: false,
|
||||
/** The crossfader curve: 0 smooth (constant power) .. 1 sharp (a cut). */
|
||||
crossfaderSharpness: 0,
|
||||
/** The crossfader curve: 0 smooth (constant power) .. 1 sharp (a cut).
|
||||
* 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). */
|
||||
fxFilterResonance: 0.3,
|
||||
fxEchoBeats: 0.5,
|
||||
|
||||
@@ -115,10 +115,12 @@ export function PerformanceSettings({ onClose }: { onClose: () => void }) {
|
||||
value={sharpness}
|
||||
min={0}
|
||||
max={1}
|
||||
defaultValue={0}
|
||||
defaultValue={APP_SETTING_DEFAULTS.crossfaderSharpness}
|
||||
onChange={changeSharpness}
|
||||
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"
|
||||
/>
|
||||
<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>
|
||||
<Strip ch="B" autoGain={autoGain.B} meterRef={meterRefs.B} mirrored />
|
||||
</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>
|
||||
<Fader
|
||||
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)}%`
|
||||
}`
|
||||
}
|
||||
className="flex-1"
|
||||
className="w-1/2"
|
||||
/>
|
||||
<span className="font-mono text-[11px] font-semibold text-muted">B</span>
|
||||
</div>
|
||||
|
||||
@@ -83,7 +83,7 @@ let state: MixerState = {
|
||||
A: DEFAULT_CHANNEL,
|
||||
B: DEFAULT_CHANNEL,
|
||||
crossfader: 0,
|
||||
sharpness: 0,
|
||||
sharpness: 0.5,
|
||||
eqKill: false,
|
||||
fx: DEFAULT_FX,
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user