Yotam Mann
56fea7cb70
Refactor options before super
( #1244 )
2024-05-06 10:55:55 -04:00
Yotam Mann
aaf880c925
Using web-test-runner for tests, updating import paths ( #1242 )
...
* WIP moving tests to web-test-runner
* updating thresholds
* Adding file extensions
* Testing integrations
* linting
* fixing dep
* moving back to root dir
* prettier all of the files
* updating eslint rules to use with prettier
* remove import package
* moving tsignore around
* removing unneeded ignores
* all tests run on puppeteer, no need for testing guards
* linting
* import type syntax
* cleaning up
* Update package.json
2024-05-03 14:31:14 -04:00
Yotam Mann
f2160618aa
Using @see typedoc ( #1237 )
2024-04-29 12:59:49 -04:00
Yotam Mann
dd10bfa4b5
trying out 'as const'
2020-05-18 21:13:44 -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
fc84ec281b
adding clamp function
2019-12-16 16:50:07 -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
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
b9619d8c68
removing unused variables
2019-10-31 15:43:16 -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
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
401d278063
Adding categories to all the nodes
2019-09-16 10:15:23 -04:00
Yotam Mann
e8e785ffdd
linting
2019-09-15 23:32:40 -04:00
Yotam Mann
61c9f191b6
removing calls to tslint
...
getting rid of tslint from project and using eslint instead
2019-09-14 18:06:46 -04:00
Yotam Mann
261a5f4c3b
normalizing whitespace in comments
2019-09-14 16:39:18 -04:00
Yotam Mann
b2b8a32c91
expose getInitialValue
...
returns the value of the oscillator before it's started
2019-09-04 20:01:16 -04:00
Yotam Mann
736106de5f
accidentally put extra tab before name
2019-09-04 19:18:44 -04:00
Yotam Mann
2289f3c67f
renaming OscillatorNode file to ToneAudioNode
2019-09-04 18:40:28 -04:00
Yotam Mann
75a35108af
name is a readonly string
2019-09-04 18:38:04 -04:00
Yotam Mann
a8962eb824
also export Options
2019-09-04 18:34:42 -04:00
Yotam Mann
c9d757aaa6
removing references to "@private"
...
old jsdoc comments
2019-08-30 09:08:29 -07:00
Yotam Mann
3e2de8f259
fixing spacing
...
typedoc wants one space before the "@"
2019-08-30 09:06:38 -07:00
Yotam Mann
d57dd7e07a
updating docs
2019-08-27 08:47:52 -07:00
Yotam Mann
85847df8d2
removing clearing onended callback
...
introduces bugs when multiple oscillators are scheduled to start/stop in the future, the onended callback is not invoked
2019-08-14 10:43:16 -04:00
Yotam Mann
6e77fe2e35
clearing onended callback on old oscillators when restarting
2019-08-13 19:36:10 -04:00
Yotam Mann
4d00150b66
computing time
2019-08-13 18:35:07 -04:00
Yotam Mann
f6843947d8
adding onstop to all the sources
2019-08-10 11:51:35 -04:00
Yotam Mann
1360828a6c
caching periodic wave computations
...
helps when creating many custom oscillators with the same phase or partials
2019-08-08 14:22:15 -04:00
Yotam Mann
73bc128265
small optimization when partials list is []
2019-08-08 13:05:34 -04:00
Yotam Mann
6e5e8b3399
using specific types
...
importing them so there are not multiple import type errors
2019-07-30 15:35:27 -04:00
Yotam Mann
bfc3d7ed15
toMaster() -> toDestination()
...
more consistent with the Web Audio API
2019-07-25 11:32:56 -04:00
Yotam Mann
fa95e74ab9
removing the disconnect onended
...
causes glitches and clicks. might be because the frequency.disconnect is not fully implemented
2019-07-24 19:28:39 -04:00
Yotam Mann
b9dd8440b7
using OscillatorInterface to define all the oscilator properties
2019-07-19 12:32:17 -04:00
Yotam Mann
0101edf173
converting OmniOscillator to ts
2019-07-17 12:55:34 -04:00
Yotam Mann
1277564f2c
making oscillator props readonly
2019-07-16 09:32:22 -04:00
Yotam Mann
990c0f56ed
using type instead of string types
2019-07-15 15:37:25 -04:00
Yotam Mann
7c2e675c52
fixing typo and allowing for extended oscillator types
2019-07-15 12:33:31 -04:00
Yotam Mann
b8f0d1d576
exporting OscillatorInterface
...
to make sure that all oscillators have the same interface
2019-07-15 09:45:56 -04:00
Yotam Mann
70086527ea
changing OscillatorOptions -> ToneOscillatorOptions
...
to avoid any potential conflicts
2019-07-11 12:45:20 -04:00
Yotam Mann
219462fe9e
cleaning up circular deps
2019-07-11 09:57:06 -04:00
Yotam Mann
ae2804fbc5
implement syncSignal
2019-07-10 23:33:36 -04:00
Garren Smith
efbd3c7f5f
Fix linting issues
...
Also add in no-unused-expression-chai rule so that chai works with
tslint.
2019-06-23 12:53:57 +02:00
tambien
9e229146c0
converting Oscillator to ts
2019-06-19 15:53:14 -04:00