WS: Use Ardour native scale for pan knobs

This commit is contained in:
Luciano Iam 2020-07-19 16:31:31 +02:00 committed by Robin Gareus
parent 1109fc7983
commit e7e4fb3a81
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 5 additions and 9 deletions

View file

@ -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
});
}