Daniel Fernandes
21b836bfcf
changed yield to await
2021-06-08 16:19:21 +05:30
Daniel Fernandes
f7bdff0244
fix: loading non relative URLs
...
encodeURIComponent() used to encode the URL protocol ("https://" etc.) as well, causing errors when loading external samples and data URIs. Now, it only encodes the file path.
2021-06-08 14:58:10 +05:30
Daniel Fernandes
af00f3768e
fix loading of files with special chars in name
...
file names with special symbols like "C#5.wav" would not get parsed correctly. used encodeURIComponent() for each level of the file path to fix that.
2021-06-07 18:26:51 +05:30
Yotam Mann
c8ec4d75d1
asserts that the buffer should be loaded when trying to slice
...
addresses #886
2021-05-02 22:16:04 -04:00
Marcel Blum
09a524994d
Update ToneAudioBuffer.ts
...
improving url parsing regexp to avoid hangs in edge case filepaths
2020-10-14 23:45:40 -04:00
Yotam Mann
3ff63aba87
removing old docs
2020-10-02 10:05:23 -04:00
Yotam Mann
fdb306bfce
changed sound url
2020-06-07 20:14:58 -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
85f70621ef
loaded promise allows for downloads to be added while 'loaded' is awaiting
2020-03-17 22:45:59 -04:00
Yotam Mann
8b58824d75
waiting for all download promises to resolve
2020-03-15 21:54:36 -04:00
Yotam Mann
09943840c4
fixing race condition where loaded was not yet set to true when promise is resolved
2020-03-11 11:41:33 -04:00
Yotam Mann
1539d88ef3
fix: Remove download promise when completed
...
fixes #620
2020-02-26 16:05:47 -05:00
Yotam Mann
389ccf8722
using assert instead of this.assert
...
removing this.assert from Tone.js classes
2019-12-16 15:58:31 -05:00
Yotam Mann
cf8965f921
fixing case where buffer is not set
...
previously would prefix "/"
2019-12-09 17:43:58 -05:00
Yotam Mann
8ec69d42de
make sure there is a slash between the baseurl and the url
2019-11-17 11:33:45 -05:00
Yotam Mann
fd3a52a54b
removing duplicate example
2019-11-04 17:49:59 -05:00
Yotam Mann
b9619d8c68
removing unused variables
2019-10-31 15:43:16 -04:00
Yotam Mann
4266d2b93c
updating examples
2019-10-24 18:01:27 -04:00
Yotam Mann
42cfbcd456
linting docs and examples
2019-10-22 23:04:52 -04:00
Yotam Mann
069a114a31
fixing indentation
2019-09-16 11:09: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
736106de5f
accidentally put extra tab before name
2019-09-04 19:18:44 -04:00
Yotam Mann
75a35108af
name is a readonly string
2019-09-04 18:38:04 -04:00
Yotam Mann
3e2de8f259
fixing spacing
...
typedoc wants one space before the "@"
2019-08-30 09:06:38 -07:00
Yotam Mann
230287f813
updating docs
2019-08-27 10:02:31 -07:00
Yotam Mann
b09b81c64b
adding categories
2019-08-26 10:44:43 -07:00
Yotam Mann
560ac489af
moving tests to AdvancedTypeCheck
2019-08-19 10:01:37 -07: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
6e5e8b3399
using specific types
...
importing them so there are not multiple import type errors
2019-07-30 15:35:27 -04:00
Yotam Mann
d1716266e7
had slice logic backwards
...
oops
2019-07-30 10:52:49 -04:00
Yotam Mann
cbae25a15c
remove Array.prototype.reverse.call, use .reverse() instead
2019-07-25 10:45:02 -04:00
Yotam Mann
9788bcc847
optimizing slice implementation
...
no longer requires iteration over the arrays
2019-07-25 09:08:34 -04:00
Yotam Mann
ffad8c1475
confirm that an instance was disposed
...
implement Tone.prototype.dispose which flips a boolean wasDisposed.
2019-07-23 12:11:57 -04:00
Yotam Mann
990c0f56ed
using type instead of string types
2019-07-15 15:37:25 -04:00
Yotam Mann
f48696a69e
Revert "every class calls super.dispose()"
...
This reverts commit 60a63cacf8
.
2019-07-11 00:36:16 -04:00
Yotam Mann
60a63cacf8
every class calls super.dispose()
...
makes sure that things don't get disposed twice, which seems to be a common source of issues
2019-07-10 23:35:29 -04:00
tambien
8b4f1cfa19
Global now only manages global Context
...
global AudioContext was moved to AudioContext.ts
2019-06-23 15:02:38 -04:00
tambien
fac538c9fb
converting Buffer -> ToneAudioBuffer.ts
2019-05-25 14:31:02 -04:00