Commit graph

269 commits

Author SHA1 Message Date
Yotam Mann
3001db4700 Refactor options before super 2024-05-06 10:35:02 -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
066e46f4c3
Small doc updates and tweaks (#1239) 2024-04-30 09:44:57 -04:00
Yotam Mann
f2160618aa
Using @see typedoc (#1237) 2024-04-29 12:59:49 -04:00
Yotam Mann
57eacfa13b
Updating link syntax (#1236) 2024-04-29 10:48:37 -04:00
Yotam Mann
080856221c
organizing docs (#1235) 2024-04-29 10:48:28 -04:00
Yotam Mann
3d42017f50
Deprecating singleton variables, use singleton getter instead (#1233)
* Deprecating singleton variables, use singleton getter instead

* updating references

* moving over to getters instead of global vars
2024-04-28 13:05:26 -04:00
Yotam Mann
a256ae2e6c
Working on getting github actions to run (#1231)
* working on getting actions to run

* running all tests

* run on CHROME only

* Update test.yml

* ignoring node_modules

* updating typedocs

* trying to ignore compiler errors

* Update tsconfig.json

* running doc tests in parallel

* speeding up docs example tests

* Update test.yml

* testing README

* 2 spaces instead of 4

* codecov

* remove travis ci

* adding token

* updating codecov
2024-04-25 14:06:55 -04:00
Jordan Danford
de4dd28ff3 Update standardized-audio-context, fix little lint errors 2023-01-26 11:31:38 -07:00
Yotam Mann
a2253bdfd8
Merge pull request #1041 from marcelblum/context-cleanup
actually close audio context when disposing it
2022-10-02 10:10:03 -04:00
Christoph Guttandin
75a802cfb2 Load only a single AudioWorklet 2022-03-21 16:34:23 +01:00
Marcel Blum
a8ac712abf ensuring close() is never called more than once on a context even before the async process completes; removing superfluous close() call on raw context in a test 2022-03-01 12:38:26 -05:00
Marcel Blum
77e89734c2 close audio context when disposing 2022-02-22 17:22:50 -05:00
Yotam Mann
484bfa6dac removing unused import 2022-02-07 13:14:19 -05:00
Yotam Mann
0399687863 set in constructor even if AudioBuffer is not from std-audio-context
Fixes #991
2022-01-17 13:11:55 -05:00
Marcel Blum
c68903380e
comment correction 2021-12-01 17:44:53 -05:00
Marcel Blum
1295bd4603 docs update 2021-12-01 13:55:28 -05:00
Marcel Blum
fba875c809 include updateInterval check in Context constructor test 2021-12-01 12:19:03 -05:00
Marcel Blum
63c958774b another updateInterval tweak 2021-11-29 20:23:15 -05:00
Marcel Blum
2fa6c66b90 tweak default updateInterval for 0 lookAhead 2021-11-29 11:33:59 -05:00
Marcel Blum
796fea2d6c prevent Context options overriding, remove unreachable/overridden code, fix Ticker precision
add _minimumUpdateInterval to Ticker, derive from actual context sampleRate instead of assuming 44100; add lookAhead setter to Context so that updateInterval is also adjusted; prevent latencyHint from getting overridden when rolling own context
2021-11-29 11:14:14 -05:00
Yotam Mann
6dd22e752f warn if event is scheduled without using the scheduled time.
addresses #959
2021-10-13 19:03:14 -04:00
Yotam Mann
180af57dc7 Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2021-10-13 13:32:42 -04:00
Yotam Mann
e055c0b47e correcting typescript issues 2021-10-13 13:32:29 -04:00
Yotam Mann
f08b317f9a
Merge pull request #902 from dannywritescode/dev
Fix: Loading samples with special characters in the file name
2021-10-13 13:26:38 -04:00
Yotam Mann
de5dc20252 adding example 2021-10-13 13:11:41 -04:00
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
Ilya Apasov
a77181175a
fix: load base64 encoded sounds when baseUrl is not empty
Fixes #898
2021-05-26 12:59:44 +02:00
Yotam Mann
c8ec4d75d1 asserts that the buffer should be loaded when trying to slice
addresses #886
2021-05-02 22:16:04 -04:00
garrettmichaelgeorge
809af0fd4f Implement fanIn with passing tests 2021-04-15 11:43:49 -04:00
garrettmichaelgeorge
aca51b7026 Improve fanIn() API 2021-03-17 21:04:01 -04:00
garrettmichaelgeorge
fdcbea3714 Add failing tests for fanIn 2021-03-17 14:55:45 -04:00
Vibert Thio
63e57fb2e8 Fix comment typo in ContextInitialization.ts 2021-02-25 22:15:42 -05:00
Yotam Mann
f04581863c moving toJSON implementation to the BaseContext 2021-01-04 09:57:52 -05:00
Jack Anderson
16859ff2e2 allow JSON.stringify(context) 2020-12-31 17:56:02 -08:00
Yotam Mann
bfa600399f Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2020-12-14 18:45:09 -05:00
Yotam Mann
8f90504c02 example with ramping destination volume
addresses #794
2020-12-14 18:44:56 -05:00
Yotam Mann
92b70176a1 enabling the value to ramp exponentially ramp below 0 2020-12-14 18:44:09 -05:00
Bryan Braun
249fdf4f10
Update Context.resume() to more closely match AudioContext.resume()
Closes Tonejs/Tone.js#767
2020-10-23 16:43:17 -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
e7e372d37e removing unused import 2020-10-02 11:53:19 -04:00
Yotam Mann
301f8cd9dc adding createMediaElementSource
fixes #756
2020-10-02 10:28:57 -04:00
Yotam Mann
3ff63aba87 removing old docs 2020-10-02 10:05:23 -04:00
Marcel Blum
0e2b5b942d adding @category definitions for docs, fixing some typos/mistakes along the way 2020-09-02 16:53:38 -04:00
Marcel Blum
5949b77e0e docs example bugfixes, typo corrections, minor additions for clarity, legacy link update 2020-09-02 00:07:45 -04:00
Yotam Mann
a58f326e41 better examples in comments 2020-08-03 18:21:17 -07:00
Yotam Mann
6b5daa7d07 using new way to handle offline tests 2020-07-26 13:55:06 -07:00
Yotam Mann
e673387cbb fixing example links 2020-07-20 11:11:00 -07:00