Open abetusk opened 4 years ago
Hi, thanks for this... I broke something here and will try and fix soon. In the meantime, I'll note that sequencing chords still works, for example:
Theory.mode="chromatic"
s = PolySynth("bleep", {"decay":1, "maxVoices":4})
s.chord.seq( [ [0,4,7], [1,3,6] ], 2 )
So it's just the individual triggering that's a problem, and I'm pretty sure I know what that bug is. Thanks!
The code:
Theory.mode="chromatic"
s = PolySynth("bleep", {"decay":1,"maxVoices":4})
s.chord.seq( [0,4,7],[1,3,6], 2)
does not work for me. I get the following error:
TypeError: frequencies.forEach is not a function gibberish_worklet.js:8559:19
chord https://gibber.cc/alpha/playground/gibberish_worklet.js:8559
callback https://gibber.cc/alpha/playground/gibberish_worklet.js:10149
anonymous https://gibber.cc/alpha/playground/gibberish_worklet.js line 7450 > Function:6
process https://gibber.cc/alpha/playground/gibberish_worklet.js:17776
Maybe this is a difference between Firefox and Chromium? For the sake of redundancy, I'm on Firefox 83.0 (64-bit).
No, just a typo, with chords you're effectively sequencing an array of arrays, so you need to have an extra pair of []
around all the individual chords. If you copy/paste the code I posted (note the extra array brackets in there) it should work... let me know if it doesn't!
Ah! My apologies! Yes, that works for me.
My apologies if this is not the appropriate forum for this type of error or if the 'alpha' gibber portion is considered in active development and bug reporting is not desired.
While playing in the 'alpha' playground, I was trying to get "chords" to work. When trying to run the following code:
I see in the "debug console" a message of the form:
Here is the snippet of in question (in gibberish_worklet.js):
Once the error occurs when trying to use the
chord
method, the window no longer plays sounds and the little moving light bar in the upper left stops running.I also tried using an example I saw from an online book, "Gibber User Manual", Part 2, that gave the following example:
For which I get the following error:
Though this error does not cause the gibber sound to "crash" and I can still play sounds after this error has occurred.
I'm running Firefox 83.0 (64-bit) on Ubuntu 16.04.7 LTS (Xenial).