Commit graph

3063 commits

Author SHA1 Message Date
Yifan Mai
45d2009ccb Smooth RMS values per channel in Meter
Fixes #882
2022-01-23 10:49:15 -08:00
Yotam Mann
aad2d8c890 Updating docs on Player.reverse
fixes #986
2021-12-20 11:59:20 -05:00
Yotam Mann
444d6179c4 Don't reschedule source when offset is very small
This offset is due to floating point error

Fixes #999
Fixes #944
2021-12-19 11:21:27 -05:00
Yotam Mann
aeaaa1e871 updating threshold 2021-12-18 17:37:31 -05:00
Yotam Mann
69ab1b91c6 Adding triggerAttackRelease example
addresses #989
2021-12-18 17:31:00 -05:00
Andrew Punnett
5cd3560d46
Parse note strings with three sharps or flats.
Tweaked the note string regexp and the noteToScaleIndex map, so that it can parse note strings with three sharps or flats.

Although rare, notes with three sharps or flats do occur, for example in the B# augmented seventh and Cb diminished seventh chords.
2021-10-29 10:54:30 +13:00
Yotam Mann
e1c66311db
Revert "fix for AudioBufferSourceNode stop time miscalculation" 2021-10-15 15:39:44 -04:00
Yotam Mann
3177cde6ec
Merge pull request #942 from marcelblum/buffer-player-timekeeping
fix for AudioBufferSourceNode stop time miscalculation
2021-10-15 15:29:22 -04:00
Yotam Mann
954a4fce37 Allow instrument and PolySynth to be scheduled to the transport stop/loop events
addresses #924
2021-10-13 19:27:34 -04: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
52cf924ee7 linting 2021-10-13 18:42:45 -04:00
Yotam Mann
10c27a99e1 linting 2021-10-13 18:38:30 -04:00
Yotam Mann
3a85eeb500 fixing exponential test 2021-10-13 16:06:42 -04:00
Yotam Mann
07dce2da59 Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2021-10-13 15:52:53 -04:00
Yotam Mann
06d94bd3cd simplifying test slightly 2021-10-13 15:52:43 -04:00
Yotam Mann
fba6c14d75
Merge pull request #880 from WofWca/set-context-dispose-old
improvement: add `disposeOld` parameter to `setContext`
2021-10-13 15:30:17 -04:00
Yotam Mann
4f5353e7f0 throws error when polysynth is used with a non monophonic class
fixes #939
2021-10-13 15:29:23 -04:00
Yotam Mann
4af3168436 adjusting test thresh 2021-10-13 13:35:40 -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
f4bc9f38d2 Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2021-10-13 13:25:00 -04:00
Yotam Mann
e4811bd00d typescript fix 2021-10-13 13:23:15 -04:00
Yotam Mann
de5dc20252 adding example 2021-10-13 13:11:41 -04:00
Yotam Mann
2667d44fe1 updating dispose 2021-10-13 13:11:20 -04:00
Yotam Mann
d8c8a85bdf small ts tweaks 2021-10-13 13:10:36 -04:00
Yotam Mann
927ff54166 changing to channelCount to match rest of API 2021-10-13 13:09:09 -04:00
Yotam Mann
ebc0578961
Merge pull request #929 from SkyezerFox/dev
improvement: Allow PolySynth voice constructors to extend Monophonic
2021-10-13 09:58:12 -07:00
Marcel Blum
9e9b3d23f7 use now() instead of currentTime 2021-09-06 18:02:24 -04:00
Marcel Blum
afb5284237
Analyser constructor smoothing option bug fix 2021-08-31 23:20:01 -04:00
SkyezerFox
f4474ffd63
allow PolySynth voice constructors to extend Monophonic 2021-08-13 12:11:57 +01:00
Yotam Mann
26392c29a7 Adding Players.add example
Fixes #916
2021-07-25 08:43:18 -07: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
Tony Atkins
be22ab8a24 GH-894: Correct 'Karplus-String' typo (fixes #894). 2021-05-11 20:09:05 +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
Yotam Mann
f724be916e
Merge pull request #883 from DavidIsrawi/intrumentTypos
Fix: Typos in triggerAttack docs
2021-04-26 09:17:49 -07:00
matt-savvy
1234b7c04d
Fix example for Part
The first example for Part doesn't play. 

## Changes
- adds start(0) to example code
2021-04-25 11:28:10 -04:00
David
25082eb396 fixed triggerAttack doc typos 2021-04-24 21:51:03 -07:00
WofWca
5d6a194458
improvement: add disposeOld parameter to setContext
This makes it harder to introduce a resource leak
2021-04-21 13:03:49 +08:00
Yotam Mann
51f97dd9e8
Merge pull request #856 from garrettmichaelgeorge/dev
Add fanIn()
2021-04-19 09:28:00 -07:00
garrettmichaelgeorge
809af0fd4f Implement fanIn with passing tests 2021-04-15 11:43:49 -04:00
Ron Yeh
59e484db83 Fix typos and improve comments.
"scaler" should be "scalar" but a shorter comment is clearer.
    "immediatly" was missing a letter.
2021-03-30 16:46:02 -07:00
Stuart Keith
e3a611ffaa polysynth does not reschedule event if disposed 2021-03-21 21:00:03 +11:00
Stuart Keith
0346ca0c09 remove unnecessary whitespace after comment 2021-03-21 20:38:53 +11: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
Yotam Mann
646330b485
Merge pull request #847 from vibertthio/fix-docs
Fix docs of class Tone
2021-02-26 09:44:43 -05:00