Commit graph

3150 commits

Author SHA1 Message Date
tambien
de512a2945 testing negative time evaluation in objects 2018-05-17 11:11:01 -04:00
tambien
48ef97875c toBarsBeatsSixteenths tests
additional validation for #343
2018-05-15 10:15:30 -04:00
timothyboie
4cd88ab1eb Time miscalculation fix (#343)
Times being converted to BarsBeatsSixteenths have the potential to miscalculate due to an extended floating point number within the function.

Example of error:
https://jsfiddle.net/timboie/1vztuhz1/

Fix validation:
https://jsfiddle.net/timboie/6e7d31t3/

Any further testing is appreciated

Fixes #342
2018-05-15 10:10:10 -04:00
ZIwen
e39e392791 Update Sampler.js (#346)
support sampler polyphonic syntax
2018-05-15 10:07:36 -04:00
tambien
6438f4688c fixes safari issue with splitting audio 2018-05-03 16:46:51 -04:00
tambien
a5c566a766 no need to set the splitter defaults
this is no longer configurable and throws an error when set.

addresses #340
2018-05-03 16:26:45 -04:00
Joe Lepper
92a7bab0b4 fix Tone.Midi examples (#337) 2018-04-26 10:31:26 -04:00
Charles Holbrow
51ac1a2100 Sampler Instrument can play entire sample, even when pitch shifting down. (#335)
* Sampler instrument does not truncate playback when pitch shifting down

* `BufferSource.start` defaults to playing the entire buffer, respects `this.playbackRate`

Previously, the Buffer would truncate the sample when `playbackRage` is less than 1.

Within the `start` method, this commit also tightens the scope of `var computedDur`, so
that it is accessible only where it is used.
2018-04-25 14:27:50 -04:00
Yotam Mann
dd9135033e updating Draw tests
now testing correct synchronization with AudioContext.currentTime
2018-04-25 11:50:37 -04:00
Yotam Mann
5e0a2285b4 fixing syncronization issue 2018-04-25 11:46:13 -04:00
Yotam Mann
1026c34163 removing unnecessary @private
fixes #330
2018-04-25 11:10:15 -04:00
Yotam Mann
b74b52bd3a noting changes 2018-04-25 11:09:52 -04:00
Yotam Mann
7d862a1705 Removing support for native cancelAndHoldAtTime
Chrome's implementation causes occassional crashes

fixes #332
2018-04-25 11:02:50 -04:00
Yotam Mann
08193b466c expanding tolerence 2018-04-25 10:51:46 -04:00
Yotam Mann
39d5898738 Time classes take Object notation as well
replacement for deprecated expression notation
2018-04-25 10:51:36 -04:00
Yotam Mann
542914bcb7 Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev 2018-04-25 10:29:18 -04:00
Yotam Mann
bd9e3b92ba additional NoiseSynth tests 2018-04-25 10:29:07 -04:00
Yotam Mann
2fab59e446 fixing typo in triggerAttack
fixes #333
2018-04-25 10:28:49 -04:00
jbpuryear
d4d569e52b Fix AudioNode.disconnect error when disconnecting from signals/params (#329) 2018-04-22 16:45:02 -04:00
Yotam Mann
838767d05e noting changes 2018-04-12 17:14:26 -04:00
Yotam Mann
785f07dbe8 adding additional midi to frequency tests 2018-04-12 17:14:17 -04:00
Matan Gover
147341688c Fix typo in documentation. (#327) 2018-04-09 12:09:46 -07:00
Yotam Mann
62e2cf5dfc fixing docs 2018-04-09 13:24:10 -04:00
Yotam Mann
ee3d077410 incrementing version 2018-04-08 00:29:01 -07:00
Yotam Mann
4c3f9bfc85 Merge branch 'master' into dev 2018-04-08 00:27:34 -07:00
Yotam Mann
c94e95cdcf merging 2018-04-06 17:25:09 -07:00
Yotam Mann
79397e1075 Merge branch 'dev'
# Conflicts:
#	Tone/core/Tone.js
2018-04-06 17:22:23 -07:00
Yotam Mann
247833f345 release candidate 2018-04-06 17:20:59 -07:00
Yotam Mann
803e02f6ba noting changes 2018-04-06 17:20:49 -07:00
Yotam Mann
198450e5a7 note about starting on user action 2018-04-06 16:56:30 -07:00
Yotam Mann
fde0a332f8 added reverb example 2018-04-06 16:56:30 -07:00
Yotam Mann
da2c8defb0 offline renders on click
addresses #237
2018-04-06 16:56:29 -07:00
Jon Wheeler
1da36262fe Fixed variable name in example (#324) 2018-04-01 11:38:51 -04:00
Yotam Mann
18fa10086d making the inner forEachBetween exclusive of the end time 2018-03-30 17:57:35 -04:00
Yotam Mann
433cd78689 fixing infinite loop when stop and start are scheduled at the same time
validating change with test
2018-03-30 13:15:53 -04:00
Yotam Mann
43f8725eff Transport.cancel disposes the events not just removes them from the timeline
Fixes #303
2018-03-30 11:54:56 -04:00
Yotam Mann
cd1e7fff12 forEachAfter -> forEachFrom, more consistent with Timeline 2018-03-30 11:52:52 -04:00
Yotam Mann
5dcf75ea01 updating synth sounds 2018-03-29 16:57:04 -04:00
Yotam Mann
08aeae8cc6 removing deprecated expression evaluation in time string 2018-03-29 16:56:56 -04:00
Yotam Mann
79a4aaae99 getLevelAtTime returns the envelope's value at the given time 2018-03-29 16:56:27 -04:00
Yotam Mann
2841fefe40 Revert "Encode URL when loading buffer (#318)"
This reverts commit e6db1daed8.
2018-03-29 15:43:44 -04:00
David Su
e6db1daed8 Encode URL when loading buffer (#318)
* encode url in request when loading buffer

* separate components by slash when encoding url

* match indentation style

* fix lint errors
2018-03-20 09:16:05 -05:00
Yotam Mann
77c7b85da5 changing simpleSynth sounds 2018-03-06 00:03:04 -05:00
Yotam Mann
65f15a1ef2 restart method to all the oscillators 2018-03-06 00:02:49 -05:00
Yotam Mann
ccc5fea22b portamento only happens on close retriggers 2018-03-05 23:56:42 -05:00
Yotam Mann
d2e82bab51 using online testing only where supported 2018-03-05 23:09:36 -05:00
Yotam Mann
2ec8e45966 extending test durations 2018-03-05 22:58:28 -05:00
Yotam Mann
c5c6ba94d5 noting changes 2018-03-05 22:29:08 -05:00
Yotam Mann
7a5b872f76 using more accurate seconds counter for syncedStop 2018-03-05 22:29:00 -05:00
Yotam Mann
cf585cbfd5 testing lookAhead compared to currentTime instead of 'now' 2018-03-05 22:28:43 -05:00