tambien
a9adacb794
using Tone.connect for native nodes
2019-01-28 11:55:48 -05:00
tambien
2780cac504
using Tone.connect for connections with native nodes
...
addresses #421
2019-01-28 11:02:15 -05:00
tambien
610b847f4d
fixing docs
2019-01-27 17:14:04 -05:00
tambien
87909ca4a3
BufferSourceNode shim is no longer needed
...
fixed issue in Safari which was resolved
2019-01-27 13:52:23 -05:00
tambien
ed71d8141b
amd to es6 import/export
...
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
2019-01-27 13:05:20 -05:00
tambien
0ba72ac93a
clamping start/stop time to currentTime
...
this way if someone passes in start(0), it will just play immediately and not break things.
addresses #424
2019-01-23 16:19:07 -05:00
tambien
ffe3d434c6
closes the stream before reopening it
2019-01-08 11:26:57 -05:00
tambien
e739c4f1f3
adding baseType to all oscillators
...
makes getting/setting through interface easier
2019-01-08 00:13:48 -05:00
tambien
1ca4242323
'get' does not return partials array for basic types
2018-12-28 16:00:03 -05:00
tambien
0c10c80b12
only set the stop when it's not synced
...
otherwise it reschedules multiple stops
2018-12-26 15:42:05 -05:00
tambien
fd62e31a94
loaded boolean indicates when GrainPlayer is loaded
...
consistent with Tone.Player
2018-12-23 18:13:57 -05:00
tambien
9178798993
computed duration can be longer than the buffer length
...
because of playback rate changes, the duration can be longer than the buffer duration.
fixes #375
2018-12-23 13:50:02 -05:00
tambien
795e0d90d7
removing position tracking from player
...
fixes #361
2018-12-23 13:46:52 -05:00
tambien
c20f703c40
making sure that the type is never set to custom+partialCount
2018-12-21 15:31:36 -05:00
tambien
6c748e3e9d
get and set the sourceType
...
this allows slight decoupling from combining everything in the 'type' string
2018-12-21 15:29:08 -05:00
tambien
f199af1f31
setting gain to 0 initially keeps it from popping
2018-12-17 12:41:14 -05:00
tambien
81f6ae1144
testing that a type can be passed into the constructor as an object
...
and gotten with the 'get()' method
2018-12-09 20:40:46 -05:00
tambien
85a606d81d
documenting partialCount
...
[skip ci]
2018-12-09 18:58:47 -05:00
tambien
761de621d8
adding partialCount parameter
...
offers alternative "non string" way to set the partials to an osc type
2018-12-09 18:45:01 -05:00
Paul Varache
cfa23cfd24
Make noiseArrays generate samples lazily ( #386 )
...
* Make noiseArrays generate samples lazily
* getter -> get
* Create noiseBuffers instead of arrays
fixes #384
2018-09-10 14:20:02 -04:00
tambien
3d1202043a
all modules are relative paths
...
simplifies deep references to individual files
2018-08-26 22:29:17 -04:00
tambien
ca5dccf1cb
extends AudioNode
2018-07-30 13:30:21 -04:00
Yotam Mann
f76beaf916
moving to updated BufferSource fade out api
...
Player still fades from the end
2018-06-20 15:08:16 -04:00
Yotam Mann
fec49b6936
stops clock after 1 iteration when loop = false
...
removing seek method. adjusts for playbackRate when scheduling grain duration
2018-06-20 14:57:42 -04:00
Yotam Mann
405a841db0
stop method is beginning of fadeOut curve instead of end
...
simplifies code
fixes #328
2018-06-20 14:55:43 -04:00
tambien
2d1c2dc705
no noise supression
2018-06-13 15:57:05 -04:00
Yotam Mann
26df78b0db
handles start/stop/restart better in many situations
...
less prone to errors where the OscillatorNode is silent after starting
2018-06-12 23:48:15 -04:00
Yotam Mann
ebbb1ef8bb
log and assert help in debugging classes
2018-06-12 23:47:30 -04:00
tambien
534b97bea4
removing unnecessary type from TickSignal
2018-06-05 22:56:47 -04:00
Yotam Mann
bbf2929b6f
rotating the phase of the oscillator group
...
addresses #354
2018-05-29 10:35:12 -04:00
Yotam Mann
4cb60ca111
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
2018-05-28 18:06:44 -04:00
Yotam Mann
5b20f572a3
removing unused lines
2018-05-28 18:01:19 -04:00
tambien
b8c5353638
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
2018-05-24 16:58:21 -04:00
Yotam Mann
54276555f2
correctly restarting PulseOscillator
2018-05-20 17:36:07 -04:00
Yotam Mann
ee18f87106
assign basic oscillator type
...
typo!
2018-05-20 17:25:39 -04:00
Yotam Mann
a7b783b0a5
updating docs
...
[skip ci]
2018-05-19 15:07:58 -04:00
tambien
9b78520038
noting that Oscillator is better for most cases
2018-05-17 18:38:53 -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
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
65f15a1ef2
restart method to all the oscillators
2018-03-06 00:02:49 -05:00
Yotam Mann
7a5b872f76
using more accurate seconds counter for syncedStop
2018-03-05 22:29:00 -05:00
Yotam Mann
8c2acd03d5
removing retrigger, maintaining array of activeSources
2018-03-05 22:26:37 -05:00
Yotam Mann
5ded029206
getSecondsAtTime returns elapsed seconds
...
also invoking event immediately if the window has already passed
2018-03-05 22:25:57 -05:00
Yotam Mann
103f01bdc7
getState at time, does not throw error if already stopped
2018-03-05 22:25:12 -05:00
Yotam Mann
dcd5a0d0e9
documenting getStateAtTime
2018-03-05 13:00:45 -05:00
Yotam Mann
a5503e02d2
linting
2018-03-05 12:25:33 -05:00
Yotam Mann
a80ae0656b
Tone.isDefined replaces !Tone.isUndef
2018-03-05 11:32:08 -05:00
Yotam Mann
701092d6e2
Fixing documentation error
...
fixes #316
2018-03-05 10:31:32 -05:00
Yotam Mann
efa06f43f1
testing that the stop event is not the first event
2018-03-01 14:44:20 -05:00