From: Ruben Beltran del Rio Date: Wed, 8 May 2024 15:23:09 +0000 (+0200) Subject: Adjust the frequency X-Git-Url: https://git.r.bdr.sh/rbdr/lissajous/commitdiff_plain/3a88e11079e5e331a10ed35ffdd67d8f3a790d23?ds=inline;hp=1924acb2eccaa6bdf58f9b90b10b1236c74bb07a Adjust the frequency --- diff --git a/lib/components/triple_frequency.js b/lib/components/triple_frequency.js index 1f118b9..e98410e 100644 --- a/lib/components/triple_frequency.js +++ b/lib/components/triple_frequency.js @@ -5,8 +5,8 @@ export default class TripleFrequency extends Component { super(config); - this.a = this.a || Math.random(); - this.b = this.b || Math.random(); - this.c = this.c || Math.random(); + this.a = this.a || 2 * Math.PI * Math.random(); + this.b = this.b || 2 * Math.PI * Math.random(); + this.c = this.c || 2 * Math.PI * Math.random(); } }; diff --git a/lib/systems/frequency_adjuster.js b/lib/systems/frequency_adjuster.js index a3582bb..b92bab6 100644 --- a/lib/systems/frequency_adjuster.js +++ b/lib/systems/frequency_adjuster.js @@ -39,7 +39,7 @@ export default class FrequencyAdjuster extends System { id: `frequency-adjuster-${i}-slider-${key}`, min: '0', max: (2 * Math.PI).toString(), - step: '0.05', + step: '0.01', shiftStep: (Math.PI / 8).toString(), label: internals.symbols[key], className: `frequency`,