Closed dy closed 3 years ago
although the difference is not so much noticeable. Maybe that needs somewhat generic approach instead. Any param can actually be a curve, not static value. Erlang has nice notion of atoms/tuples, passing them instead of static values would allow for really expressive description:
zzfx.play(...[,0,{linear, 2, 4},,2.4,0,,,,,,,,,{sin, 2},,,.5])
That brings to an idea that some params, like slide
etc could be replaced with such "tokens".
Nice spectograms! It uses cosine for the modulation, not half cosine, what makes you think that?
The reason I chose cosine over sine is that for slow modulations the cosine is 1 at 0 so the sound will begin at its given frequency rather then ramping in from 0.
You are right though, it would be cool to have more options for this!
For spectrograms I used webaudio-viz
It uses cosine for the modulation, not half cosine, what makes you think that?
Right, to goes below 0, so f
turns to negative, I missed it, thought it does Math.abs
somewhere.
Right now half-cosine is used for modulation, eg.
produces the following spectrogram:
Would be nice to have another modulation types, eg. sin: saw: tri: