mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-23 23:17:46 +01:00
WS: Use Ardour native scale for pan knobs
This commit is contained in:
parent
1109fc7983
commit
e7e4fb3a81
2 changed files with 5 additions and 9 deletions
|
|
@ -170,14 +170,13 @@ export class DiscreteKnob extends Knob {
|
|||
|
||||
}
|
||||
|
||||
// TODO: consider switching to [0-1.0] pan scale in Ardour surface code
|
||||
|
||||
export class PanKnob extends Knob {
|
||||
|
||||
constructor () {
|
||||
super({
|
||||
scale: 'linear',
|
||||
min: -1.0,
|
||||
//scale: 'linear',
|
||||
scale: (k) => 1.0 - k,
|
||||
min: 0,
|
||||
max: 1.0
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue