aboutsummaryrefslogtreecommitdiff
path: root/lib/components
diff options
context:
space:
mode:
authorRuben Beltran del Rio <git@r.bdr.sh>2024-05-08 17:23:09 +0200
committerRuben Beltran del Rio <git@r.bdr.sh>2024-05-08 17:23:09 +0200
commit3a88e11079e5e331a10ed35ffdd67d8f3a790d23 (patch)
treea46f6377469f84eddaab6951ab9b029c1ac59c5e /lib/components
parent1924acb2eccaa6bdf58f9b90b10b1236c74bb07a (diff)
Adjust the frequency
Diffstat (limited to 'lib/components')
-rw-r--r--lib/components/triple_frequency.js6
1 files changed, 3 insertions, 3 deletions
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();
}
};