Commit graph

125 commits

Author SHA1 Message Date
Marcel Blum
6700a3c5f5 fix failing tests to use same (corrected) currentTime as OneShotSource 2021-10-20 22:30:59 -04:00
Yotam Mann
10c27a99e1 linting 2021-10-13 18:38:30 -04:00
Yotam Mann
dc9de66401 removing unused variable 2021-01-10 22:36:58 -05:00
Yotam Mann
44d1bc85bb fixing typescript error in example 2021-01-10 22:19:02 -05:00
Yotam Mann
fdc7eb4e91 pass in partials to LFO
addresses #814
2021-01-10 21:48:52 -05:00
Razz21
ff3b4edefd Fix docs examples. Closes #783 2020-11-15 08:28:51 +01:00
Yotam Mann
ccf74922d4 fixing amplitude to it's still centered in the same spot
fixes #777
2020-10-30 11:17:27 -04:00
Yotam Mann
0ac1da5aa1 correctly offset phase for each oscillator
fixes #733
2020-09-07 22:14:58 -04:00
Yotam Mann
ed8bb4ddcf updating omnioscillator options 2020-08-06 12:58:02 -07:00
Yotam Mann
6b5daa7d07 using new way to handle offline tests 2020-07-26 13:55:06 -07:00
Yotam Mann
6337227155 updating example using Array instead of Float32Array 2020-07-19 10:12:39 -07:00
Yotam Mann
94c3844fe2 fixing example 2020-07-18 21:13:41 -07:00
Yotam Mann
69bc2bbb57 linting 2020-06-16 23:14:19 -04:00
Yotam Mann
dd10bfa4b5 trying out 'as const' 2020-05-18 21:13:44 -04:00
Yotam Mann
12f0d5b332 adding some more examples 2020-04-29 23:34:01 -04:00
Yotam Mann
dffe6ac151 showing more of the waveform 2020-04-29 14:41:09 -04:00
Yotam Mann
cde3e53761 updating examples 2020-04-29 14:40:59 -04:00
Yotam Mann
1686236d3f offline example 2020-04-26 18:04:51 -04:00
Yotam Mann
f17249691d feat: updating all examples
now in the form Tone.Something instead of using `import { Something } from "tone"`. It makes the example runner on the docs page work much faster
2020-04-16 22:24:18 -04:00
Yotam Mann
989abb9697 setting parameters as readonly 2020-04-14 22:01:00 -04:00
Yotam Mann
165569cefd updating tests for slightly different oscillator sound 2020-04-13 23:13:28 -04:00
Yotam Mann
3e8120baa2 interface for PulseOscillator to set the carrier type in PWMOscillator 2020-04-13 22:40:53 -04:00
Powerlated
0636c28517
Use Triangle instead of Sawtooth for PulseOscillator source
Using Sawtooth for the source wave produces an inaccurate tone at pulse widths other than 50% (0). The fix is to use a Triangle wave for the source.
2020-04-12 15:21:57 -04:00
Yotam Mann
88dae77c90 removing 'Connect.ts' and updating dependencies
was a pass through and caused other problems of redefining the variable
2020-01-08 14:12:11 -05:00
Yotam Mann
c82a2aafb0 updating synth options
fixes scenario where "custom" is passed in
2019-12-23 23:00:27 -05:00
Yotam Mann
fc84ec281b adding clamp function 2019-12-16 16:50:07 -05:00
Yotam Mann
72d7f37509 removing unused variable 2019-12-14 17:07:13 -05:00
Yotam Mann
ef0aaec8ee Refactor source
adding `_restart` is an internal protected abstract method for all sources.
2019-12-14 16:09:24 -05:00
Yotam Mann
fce95bea6e feat: clamp the values to the defined min/maxValue 2019-12-11 10:11:40 -05:00
Yotam Mann
8540c44459 needs to set detune outside of signal being overridden 2019-12-06 14:10:33 -05:00
Yotam Mann
ba311dbe7b putting settings into constructor object
slight optimization over setting them all individually
2019-11-22 13:26:16 -05:00
Yotam Mann
c80f8a89f9 optimization: also storing the wave
turns out that the call to `createPeriodicWave` is the most expensive part.
2019-11-22 11:18:49 -05:00
Yotam Mann
09dc29191b linting 2019-11-17 13:09:19 -05:00
Yotam Mann
5220c373e4 simplifying the example slightly 2019-11-16 17:13:26 -05:00
Yotam Mann
d3951ce16c don't restart unless state === 'started'
fixes #480
2019-11-13 14:09:13 -05:00
Yotam Mann
50a9e0dc4d updating example 2019-11-08 13:14:21 -05:00
Yotam Mann
b9619d8c68 removing unused variables 2019-10-31 15:43:16 -04:00
Yotam Mann
89e171b4a3 setting non-cached osc type after starting 2019-10-31 14:22:19 -04:00
Yotam Mann
bc08a1aea9 docs: adding more elaborate examples and explainations 2019-10-29 14:51:29 -04:00
Yotam Mann
aa56dc1727 more complex harmonicity example 2019-10-29 14:30:25 -04:00
Yotam Mann
5eba7af64d interlinking docs 2019-10-28 17:31:39 -04:00
Yotam Mann
3a63154b7c using the unit name instead of the unit type as the Param generic 2019-10-28 11:37:53 -04:00
Yotam Mann
d2b064f41e docs: working on code examples 2019-10-25 16:54:33 -04:00
Yotam Mann
42cfbcd456 linting docs and examples 2019-10-22 23:04:52 -04:00
Yotam Mann
032808dd2a ensure that partialsCount is never below 0 2019-10-13 15:05:41 -04:00
Yotam Mann
2dab77c7a8 updating partialCount when partials is set 2019-10-09 17:32:37 -04:00
Yotam Mann
2753d3756b the partials length is controllable by the partialCount 2019-10-09 17:06:57 -04:00
Yotam Mann
54059825ae set the partials from the cache as well 2019-10-09 15:21:02 -04:00
Yotam Mann
9ad519ea10 feat: Get an oscillator wave as an array 2019-10-08 19:22:59 -04:00
Yotam Mann
ed367e0f9b adding nominal range to properties 2019-09-24 17:21:59 -04:00