Yotam Mann
069a114a31
fixing indentation
2019-09-16 11:09:44 -04:00
Yotam Mann
82b2376959
updating categories
2019-09-16 11:05:24 -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
be9fba41b7
updating docs
2019-09-15 14:39:55 -04:00
Yotam Mann
852c78df79
updating internal links
...
to [[style]]
2019-09-14 19:55:50 -04:00
Yotam Mann
e63cbf8a82
linting
2019-09-14 19:55:39 -04:00
Yotam Mann
2d93d7ae23
updating docs
2019-09-14 18:44:37 -04:00
Yotam Mann
1bde88a19b
linting
2019-09-14 18:12:44 -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
286692e67b
updating block comment style
2019-09-14 17:47:07 -04:00
Yotam Mann
261a5f4c3b
normalizing whitespace in comments
2019-09-14 16:39:18 -04:00
Yotam Mann
39f3f42b64
Revert "Merge branch 'pr/542' into typescript"
...
This reverts commit b94d590a0b
, reversing
changes made to 9be3ffeb05
.
2019-09-12 16:03:35 -04:00
Yotam Mann
b94d590a0b
Merge branch 'pr/542' into typescript
2019-09-12 15:56:05 -04:00
Yotam Mann
dd105d4622
hiding unused variables
2019-09-12 15:53:21 -04:00
Yotam Mann
f6749c043f
updating types
2019-09-12 15:53:05 -04:00
Yotam Mann
7aa426e973
Updating docs
2019-09-12 15:52:38 -04:00
Jack Anderson
7e6ea23f49
optimize Tone.isObject
...
- this should be about 25% faster
- taken from https://github.com/jonschlinkert/isobject
- custom perf test: https://jsbench.me/24k0gdoxa6/1
2019-09-12 09:45:41 -07:00
Yotam Mann
fd75074ab0
testing 'off' without an 'on'
2019-09-10 10:45:41 -04:00
Yotam Mann
8205db5485
removing unused var
2019-09-10 10:08:01 -04:00
Yotam Mann
7f1d529918
removing unused dep
2019-09-10 00:16:23 -04:00
Yotam Mann
77c6a18cd8
changing name of unused var
2019-09-10 00:06:52 -04:00
Yotam Mann
009d92909e
simplifying the add method
...
doesn't need to test at both if statements assuming that the API is followed
2019-09-09 23:51:31 -04:00
Yotam Mann
4ae119eb77
testing that the underlying buffer is the same
...
not necessarily the same ToneAudioBuffer obj
2019-09-09 23:51:09 -04:00
Yotam Mann
2fb44774c7
removing unused import
2019-09-09 23:50:53 -04:00
Yotam Mann
481fde2757
allows ToneAudioBuffers to add a buffer which is not loaded
...
also simplifies code a little
2019-09-09 23:39:00 -04:00
Yotam Mann
7be307926f
test that a warning is fired
2019-09-09 23:38:34 -04:00
Yotam Mann
58a7d090a7
using updated param generic
2019-09-08 14:08:25 -04:00
Yotam Mann
f96f5ff892
pointing to updated param as input
2019-09-08 14:08:18 -04:00
Yotam Mann
8669f2b28e
specifying type in Param generic
2019-09-08 14:07:58 -04:00
Yotam Mann
5904a151f5
updating docs and types
2019-09-08 13:39:56 -04:00
Yotam Mann
94cc15c46e
should pass in context to param test
2019-09-07 19:16:27 -04:00
Yotam Mann
daf97ae603
adding TickParam class
...
used by TickSignal and TickSource
2019-09-07 19:16:04 -04:00
Yotam Mann
22c95e21bc
removing unused import
2019-09-07 17:57:45 -04:00
Yotam Mann
eb2c352187
adding defaultValue test
2019-09-06 17:16:54 -04:00
Yotam Mann
66d08cbdcb
fixing typos in comments
2019-09-06 16:20:23 -04:00
Yotam Mann
fa7c984729
'apply' sets the full automation curve from one param to another
2019-09-06 16:18:32 -04:00
Yotam Mann
83e27282d0
changing names to the full name of the event
2019-09-06 16:17:49 -04:00
Yotam Mann
e60d7ffdb1
fixing typedefs
2019-09-06 14:59:21 -04:00
Yotam Mann
294ebeefe7
adding setInterval
...
similar to setTimeout, but the event repeats
2019-09-06 14:46:44 -04:00
Yotam Mann
910d38c3c8
separating the constructor onto two lines
...
makes the documentation more readable
2019-09-06 01:39:56 -04:00
Yotam Mann
95c45a5b7a
adding more documentation to Tone.start
2019-09-05 14:46:26 -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
7c1bacb66d
fixing typo
2019-09-03 22:08:20 -04:00
Yotam Mann
d50c444881
using onstatechange instead of addEventListener
2019-09-03 22:00:03 -04:00
Yotam Mann
544f184b21
updating docs
2019-08-30 09:16:41 -07: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
5bdbda9c1c
updating docs
2019-08-30 09:03:42 -07:00
Yotam Mann
d073b68b09
fromContext returns the Tone.js objects bound to the passed in context
...
WIP
2019-08-30 09:03:08 -07:00
Yotam Mann
65c63e57a6
fixing doc error
2019-08-30 09:02:18 -07:00
Yotam Mann
99dc1412a8
doc'ing
2019-08-30 09:02:06 -07:00
Yotam Mann
7a5ca042d0
removing converting classes
2019-08-27 10:02:44 -07:00
Yotam Mann
230287f813
updating docs
2019-08-27 10:02:31 -07:00
Yotam Mann
a54ab4ea68
using typechecks from standardized-audio-context
2019-08-26 16:52:21 -07:00
Yotam Mann
0c805aec7b
setContext takes a context or AudioContext or OfflineAudioContext
2019-08-26 10:55:43 -07:00
Yotam Mann
e6431d9890
using standardized-audio-context as AudioContext
...
goal of normalizing behavior across all browsers that support Web Audio.
thanks @chrisguttandin!
2019-08-26 10:55:04 -07:00
Yotam Mann
b09b81c64b
adding categories
2019-08-26 10:44:43 -07:00
Yotam Mann
4c106930e0
adding typedocs
2019-08-21 13:59:01 -07:00
Yotam Mann
e6635058d5
adding readonly to name
2019-08-21 13:44:12 -07:00
Yotam Mann
b018cac113
adding categories
2019-08-21 13:01:12 -07:00
Yotam Mann
ce88eb9b88
using createAudioContext and createOfflineAudioContext
...
easier to eventually move those to standardized-audio-context
2019-08-19 11:15:53 -07:00
Yotam Mann
c353df6d5a
skip this test
...
for now
2019-08-19 10:04:28 -07:00
Yotam Mann
94a9f78704
don't merge object when the type is AudioParam, AudioNode or AudioBuffer
...
addresses standardized-audio-context/#642
2019-08-19 10:04:21 -07:00
Yotam Mann
560ac489af
moving tests to AdvancedTypeCheck
2019-08-19 10:01:37 -07:00
Yotam Mann
05586661b3
adding types
2019-08-19 09:59:31 -07:00
Yotam Mann
fd1bbb708b
overloaded offline constructor
2019-08-19 09:59:07 -07:00
Yotam Mann
74ae46a7d4
adding interface to deepMerge which reflects the merging interfaces
2019-08-16 13:57:17 -04:00
Yotam Mann
d1c281c810
using isAudioParam and isAudioNode to test instanceof
...
will make migrating to standardized-audio-context easier
2019-08-16 12:49:04 -04:00
Yotam Mann
ed88e6bf10
adding typing to 'connect' method
2019-08-14 13:01:16 -04:00
Yotam Mann
0ad8d40c79
making overridden abstract
...
implemented by extending classes
2019-08-12 14:18:34 -04:00
Yotam Mann
0b1a6bee58
updating typing
2019-08-12 13:17:37 -04:00
Yotam Mann
9bd9feb7fb
removing unused import
2019-08-12 10:14:55 -04:00
Yotam Mann
48c410cfc4
added floating point midi conversion
2019-08-12 00:15:30 -04:00
Yotam Mann
4e9fca3df3
marking toMaster as deprecated
2019-08-12 00:15:11 -04:00
Yotam Mann
4d52317fd3
takes an array of partials
2019-08-12 00:09:40 -04:00
Yotam Mann
f79cce25ca
updating docs
2019-08-12 00:09:22 -04:00
Yotam Mann
18facc5576
safety checks before trying connection
2019-08-10 18:07:10 -04:00
Yotam Mann
edddd9e3ba
moving assert and log to their own file
2019-08-10 18:07:02 -04:00
Yotam Mann
0dff2423e7
checking if connecting to a source with no inputs throws an error
2019-08-10 18:06:41 -04:00
Yotam Mann
70b76c317c
adding TONE_DEBUG_CLASS to the window object
2019-08-08 17:00:42 -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
e3d8598533
small optimization which avoids setting the same value
2019-08-08 14:21:20 -04:00
Yotam Mann
38d6f9d242
optimization by moving child objects into constructor
...
means that in many cases the param won't be assigned twice
2019-08-08 14:15:56 -04:00
Yotam Mann
6f4ad826a0
Revert "small optimization to avoid setting the same value twice"
...
This reverts commit 3208497102
.
2019-08-07 11:38:31 -04:00
Yotam Mann
3208497102
small optimization to avoid setting the same value twice
...
happens sometimes on initialization
2019-08-07 00:53:07 -04:00
Yotam Mann
3a3d563c6e
schedule volume from time = 0
2019-08-07 00:52:31 -04:00
Yotam Mann
2397dfedb6
small optimization
...
doesn't set multiply more than once
2019-08-07 00:52:05 -04:00
Yotam Mann
5dbd58e700
moving assertions first
2019-08-06 23:19:03 -04:00
Yotam Mann
8af43901bf
exposing utils, units and param
2019-08-04 13:12:39 -04:00
Yotam Mann
dd0158d0bf
exposing ToneAudioBuffers
2019-08-04 11:04:48 -04:00
Yotam Mann
6160d4ec70
exposing conversions
2019-08-04 11:02:14 -04:00
Yotam Mann
8c2979fe8a
connection tests and channel property tests
2019-08-04 09:54:53 -04:00
Yotam Mann
cc18de471d
exposing ToneAudioNode
2019-08-04 09:54:16 -04:00
Yotam Mann
9ab45ab84c
removing channel properties from constructor options
...
will need to set individually when relevant or come up with another solution to setting in constructor. the relevant nodes are not available at the time of the constructor
2019-08-04 09:54:06 -04:00
Yotam Mann
56db8b3a7a
simplifying _internalChannels
...
channelCount/Mode/Interpretation check the input/output nodes, which removes the need for many classes to have _internalChannels
2019-08-03 12:00:14 -04:00
Yotam Mann
5e8a32b662
numberOfInputs/Outputs is inferred by looking at the input/output node
2019-08-02 21:48:28 -04:00
Yotam Mann
4364f2f843
no longer necessary to pass in number of inputs
...
the count is inferred by checking the input or output node
2019-08-02 21:47:57 -04:00