Yotam Mann
|
4bd1044cb4
|
using only static type queries
|
2017-04-26 00:27:28 -04:00 |
|
Yotam Mann
|
edfa168713
|
moving to static type queries
i.e. this.isString -> Tone.isString
|
2017-04-26 00:24:19 -04:00 |
|
Yotam Mann
|
c544255953
|
using defaults in last remaining classes
|
2017-04-26 00:07:10 -04:00 |
|
Yotam Mann
|
2030034494
|
sources to new defaults api
and es6 classes prep
|
2017-04-26 00:00:01 -04:00 |
|
Yotam Mann
|
b5d6647c12
|
optimizing noise array creation
only created on initialization
addresses #216
|
2017-03-18 14:03:04 -04:00 |
|
Yotam Mann
|
10431589d2
|
moving shims to their respective files
hopefully simplifies maintenance
|
2017-03-13 01:12:20 -04:00 |
|
Yotam Mann
|
dba464fcca
|
safety checks for drift
fixes #199
|
2017-03-05 12:39:43 -05:00 |
|
Yotam Mann
|
9858dbe563
|
start method takes an optional duration
also includes start method docs
fixes #195
|
2017-02-20 14:03:36 -05:00 |
|
Yotam Mann
|
7549bdaa1a
|
renaming _initAudioContext() -> on("init")
|
2017-02-19 11:50:15 -05:00 |
|
Yotam Mann
|
7f06666729
|
only add a stop event if it's not synced to the Transport
fixes #192
|
2017-01-30 23:17:14 -05:00 |
|
Yotam Mann
|
9669e70d4f
|
using a local instance instead of the class in example
[skip ci]
|
2017-01-08 17:20:55 -05:00 |
|
Yotam Mann
|
7f2608ab06
|
updated example to Promise api
[skip ci]
|
2017-01-08 17:20:07 -05:00 |
|
Yotam Mann
|
31fe050475
|
getStateAtTime -> getValueAtTime
|
2016-12-18 22:14:14 -05:00 |
|
Yotam Mann
|
9c94b89eec
|
renaming addEvent->add, removeEvent->remove, getEvent->get
|
2016-12-18 21:56:22 -05:00 |
|
Yotam Mann
|
7f23302d01
|
linting
|
2016-12-17 16:35:50 -05:00 |
|
Yotam Mann
|
77953eede9
|
ExternalInput -> UserMedia
updated to latest MediaDevice API
|
2016-12-17 16:26:27 -05:00 |
|
Yotam Mann
|
cf69804322
|
uses buffer as string of actual buffer
|
2016-12-15 13:01:48 -05:00 |
|
Yotam Mann
|
423029d4b8
|
managing multiple starts of the same note
|
2016-12-15 12:48:49 -05:00 |
|
Yotam Mann
|
b19a2b5622
|
using setTimeout to trigger the onended callback
|
2016-12-15 12:48:06 -05:00 |
|
Yotam Mann
|
7a1380637e
|
Previous playback is not stopped if retrigger=true
Fixes #186
|
2016-12-05 21:29:55 -05:00 |
|
Yotam Mann
|
3ca0eadafd
|
.load method returns a Promise
|
2016-11-06 19:16:31 -05:00 |
|
Yotam Mann
|
6c222a4b03
|
looping transport emits 'loopStart' / 'loopEnd' instead of 'start' / 'stop'
Fixes #173
|
2016-10-19 14:50:55 -04:00 |
|
Yotam Mann
|
64a33b0c16
|
correcting offset when greater than loopEnd
|
2016-10-11 14:03:10 -04:00 |
|
Yotam Mann
|
da59018fb3
|
convert the offset into seconds
|
2016-10-01 18:31:24 -04:00 |
|
Yotam Mann
|
b07577d53d
|
using Tone.seconds instead of Tone.position in start/stop
so that it can be fed straight into getStateAtTime
|
2016-10-01 16:26:37 -04:00 |
|
Yotam Mann
|
0285b4d83f
|
handle offset greater than the duration when set to loop
|
2016-09-29 09:57:31 -04:00 |
|
Yotam Mann
|
9ebd1dd7f4
|
min duration is 0
|
2016-09-26 21:13:20 -04:00 |
|
Yotam Mann
|
753640bdeb
|
seek to a position in the buffer
|
2016-09-25 22:32:54 -04:00 |
|
Yotam Mann
|
827fda3d00
|
more accurate handling of syncing to Transport start with an offset / duration
|
2016-09-25 12:35:57 -04:00 |
|
Yotam Mann
|
e19e54b072
|
wrapping playbackRate in Tone.Param
|
2016-09-22 18:36:44 -04:00 |
|
Yotam Mann
|
a60328345e
|
using Tone.Gain everywhere instead of GainNode
|
2016-09-19 23:53:07 -04:00 |
|
Yotam Mann
|
76ad44360d
|
updating to new API
|
2016-09-19 23:02:42 -04:00 |
|
Yotam Mann
|
d8d69ae662
|
changing old docs which used Buffer.onload
[skip ci]
|
2016-09-18 20:05:01 -04:00 |
|
Yotam Mann
|
f5b7924bf2
|
make sure the duration is always positive
otherwise it throws an error
|
2016-08-15 23:13:09 -04:00 |
|
Yotam Mann
|
12392eba34
|
new Transport syncing API
now all calls after sync will be placed along the Transport’s timeline
instead of the AudioContext
Fixes #154
|
2016-08-15 23:13:09 -04:00 |
|
Yotam Mann
|
6d0565387e
|
only schedule the stop in a valid state
the playbackState API has been deprecated, but the bug still is
implemented in Safari.
|
2016-08-11 23:58:48 -04:00 |
|
Yotam Mann
|
9a74728858
|
no longer throws error when no buffer is set
just doesn’t play instead
|
2016-08-09 01:14:52 -04:00 |
|
Yotam Mann
|
e029ead2bc
|
small update to the docs
[skip ci]
|
2016-07-20 13:12:31 -04:00 |
|
Yotam Mann
|
f5f75718e1
|
buffers can be more easily passed into the options object
|
2016-07-06 22:36:40 -04:00 |
|
Yotam Mann
|
b0f11dfa5b
|
granular synthesis player
|
2016-07-05 20:32:53 -04:00 |
|
Yotam Mann
|
20f8adebba
|
adjust PWM scaling so it doesn't go silent
|
2016-06-17 14:02:24 -04:00 |
|
Yotam Mann
|
49c401e6d8
|
calling stop when duration is given.
making sure to assign _startTime using it.
|
2016-06-17 11:32:34 -04:00 |
|
Yotam Mann
|
3dece40ac6
|
disposing of volume
|
2016-06-17 10:54:35 -04:00 |
|
Yotam Mann
|
a2000bf42b
|
adding volume and mute controls
|
2016-06-17 10:43:30 -04:00 |
|
Yotam Mann
|
89636d40ef
|
ramping from current gain value
|
2016-06-17 10:43:06 -04:00 |
|
Yotam Mann
|
c70ab5d07a
|
using fadeOut when duration is set
|
2016-06-16 17:30:46 -04:00 |
|
Yotam Mann
|
74ebee4bfe
|
MultiPlayer keeps track of all the BufferSources it's played
|
2016-06-15 00:48:55 -04:00 |
|
Yotam Mann
|
f1e6c154e0
|
using linear ramping instead (sounds pretty much the same)
also compensating for the fade time when there is a passed in
duration.
|
2016-06-14 23:48:25 -04:00 |
|
Yotam Mann
|
ac0851b4c8
|
ensure onended callback is not invoked after disposing
|
2016-06-14 21:08:30 -04:00 |
|
Yotam Mann
|
1efc061ebd
|
explicitly stop the AudioBufferSource when duration is given
|
2016-06-14 20:43:26 -04:00 |
|
Yotam Mann
|
e0edb67a75
|
Wrapper around the basic AudioBufferSourceNode
|
2016-06-14 19:57:46 -04:00 |
|
Yotam Mann
|
238cf0caa4
|
randomizing the noise offset
this should make two noises played starting at the same time slightly
different.
|
2016-06-14 19:56:18 -04:00 |
|
Yotam Mann
|
4628f8c47a
|
prefixing errors with class name.
|
2016-05-25 20:50:46 -04:00 |
|
Yotam Mann
|
24692aa343
|
can be muted in the constructor options
|
2016-05-14 17:46:21 -04:00 |
|
Yotam Mann
|
3ecd99ecb6
|
moving mute code to Volume
|
2016-05-14 17:34:23 -04:00 |
|
Yotam Mann
|
c83c70d11c
|
cancels scheduling when setting a value with .value
this makes the behavior consistent between Webkit and FF
|
2016-05-14 16:52:58 -04:00 |
|
Yotam Mann
|
733b49bcd5
|
using new types
|
2016-04-18 00:36:08 -04:00 |
|
Yotam Mann
|
cd29397a15
|
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
|
2016-04-10 16:49:51 -04:00 |
|
Yotam Mann
|
48c7ca5cc4
|
Updating documentation to show start offset time and duration arguments
Fixes #136
[skip ci]
|
2016-04-10 16:00:10 -04:00 |
|
Yotam Mann
|
90c0b5febe
|
MultiPlayer needs Buffer as dependency
|
2016-03-22 16:01:32 -04:00 |
|
Yotam Mann
|
0a4b997bde
|
updating start method documentation
[skip ci]
|
2016-03-18 11:00:07 -04:00 |
|
Yotam Mann
|
366e61562f
|
canceling future states on stop
also not checking if it’s already started.
Fixes #121
|
2016-03-03 13:02:38 -05:00 |
|
Yotam Mann
|
faf434400b
|
pull in Master like the rest of the sources
|
2016-02-18 14:12:30 -05:00 |
|
Yotam Mann
|
35e065ca80
|
adding error callback on open
|
2016-02-18 14:11:47 -05:00 |
|
Yotam Mann
|
9049857b80
|
fire-and-forget buffer player
|
2016-02-08 13:44:49 -05:00 |
|
Yotam Mann
|
de37b6798d
|
adding Master as a dependency
Addresses #112
|
2016-01-31 12:20:55 -05:00 |
|
Yotam Mann
|
61caca5054
|
volume change proportional to the number of oscillators
|
2016-01-18 00:27:46 -05:00 |
|
Yotam Mann
|
5a772466ae
|
3 new oscillator types
and combined them into the OmniOscillator
|
2016-01-17 22:43:44 -05:00 |
|
Yotam Mann
|
9d3b5947fd
|
Reverting to non-signal playbackRate
because Safari isn’t there yet with signal-rate playbackRate
|
2015-12-06 13:14:36 -05:00 |
|
Yotam Mann
|
74110715f5
|
Revert "playbackRate is now a signal"
This reverts commit f889a77f0f .
|
2015-12-06 13:14:36 -05:00 |
|
Yotam Mann
|
f6a95f2f49
|
default partials value
|
2015-11-25 21:46:54 -05:00 |
|
Yotam Mann
|
33dbdeff41
|
can set partials in constructor
|
2015-11-25 21:46:47 -05:00 |
|
Yotam Mann
|
fe5d6ac94e
|
getting partials (correctly) for other Oscillator types
|
2015-11-23 23:51:36 -05:00 |
|
Yotam Mann
|
ac693eac4b
|
doc'ing
|
2015-11-17 23:21:55 -05:00 |
|
Yotam Mann
|
4c3cf0d8fc
|
handling partials member for other oscillator types
|
2015-11-17 22:51:10 -05:00 |
|
Yotam Mann
|
22ab61fb09
|
noise has playbackRate which adjusts the "frequency"
|
2015-11-10 23:47:10 -05:00 |
|
Yotam Mann
|
f889a77f0f
|
playbackRate is now a signal
|
2015-11-10 23:46:47 -05:00 |
|
Yotam Mann
|
f1be71c0c2
|
updating to new Volume API
|
2015-11-02 20:08:53 -05:00 |
|
Yotam Mann
|
1c00c650db
|
updating to new Volume API
|
2015-10-21 10:33:13 -04:00 |
|
Yotam Mann
|
8a7195e962
|
canGetUserMedia -> supported
also handling MediaStream.stop deprecation
|
2015-09-30 13:47:42 -04:00 |
|
Yotam Mann
|
971c6ddfe1
|
updated mic docs
|
2015-09-18 17:19:09 -07:00 |
|
Yotam Mann
|
14a780c1ca
|
bug fixes and compatibility tests
|
2015-09-18 17:18:44 -07:00 |
|
Yotam Mann
|
2d5d4d1dfe
|
Merge pull request #89 from polyrhythmatic/externalinput
updated Microphone, added ExternalInput
|
2015-09-18 15:43:11 -07:00 |
|
Yotam Mann
|
813a665ac8
|
looped player passes no duration to start method
|
2015-09-11 17:06:57 -04:00 |
|
Yotam Mann
|
95f1f15a12
|
giving example of repeated start and stop methods
|
2015-09-05 15:15:47 -04:00 |
|
Yotam Mann
|
eccdb659c2
|
renamed Tone/core/Types -> Tone/core/Type
|
2015-09-04 16:48:21 -04:00 |
|
Yotam Mann
|
09a151ea2b
|
light styling.
|
2015-09-03 10:32:00 -04:00 |
|
Yotam Mann
|
a68b1aecd6
|
cleaning up syncing.
|
2015-09-03 10:24:20 -04:00 |
|
Yotam Mann
|
7ff330cb96
|
schedules a stopped state if the source is not looped
|
2015-09-03 10:24:10 -04:00 |
|
Seth Kranzler
|
1f667411fe
|
removes double checking, changes sourceList to sources
|
2015-09-02 11:11:42 -04:00 |
|
Yotam Mann
|
5e8c2c3777
|
source uses Tone.Volume as the output.
|
2015-08-31 16:55:47 -04:00 |
|
Yotam Mann
|
45b6988090
|
set custom partials array for Oscillator
|
2015-08-31 16:42:27 -04:00 |
|
Yotam Mann
|
b2283d640f
|
syncing to the Transport through events
|
2015-08-31 15:13:43 -04:00 |
|
Yotam Mann
|
9f0935967b
|
can compute the first value of the oscillator
|
2015-08-27 21:32:09 -04:00 |
|
Seth Kranzler
|
68a0dcf943
|
adds open/close methods with callback, removes onLoad
|
2015-08-26 15:40:14 -04:00 |
|
Yotam Mann
|
054662e033
|
accept phase in constructor
|
2015-08-21 17:04:29 -04:00 |
|
Yotam Mann
|
0eeaa402de
|
player accepts a Tone.Buffer in the constructor
|
2015-08-21 17:04:15 -04:00 |
|
Yotam Mann
|
ec400401c7
|
Sources don't extend TimelineState
|
2015-08-21 15:01:22 -04:00 |
|
Yotam Mann
|
af5609ce2e
|
Player takes AudioBuffer in constructor
|
2015-08-21 15:01:09 -04:00 |
|
Yotam Mann
|
d714e05bb3
|
more precise regexp
|
2015-08-21 15:00:52 -04:00 |
|
Yotam Mann
|
80c416e398
|
throws error with invalid noise type
|
2015-08-21 15:00:40 -04:00 |
|
Seth Kranzler
|
c7b04bae47
|
remove unused callback, name change, remove error
|
2015-08-20 15:04:48 -04:00 |
|
Seth Kranzler
|
8fc5de8677
|
updated Microphone, added ExternalInput
|
2015-08-19 21:28:47 -04:00 |
|
Yotam Mann
|
80abf87292
|
reflecting rename
|
2015-08-18 16:29:39 -04:00 |
|
Yotam Mann
|
79e0383ad6
|
connectSeries -> chain
|
2015-08-16 15:18:48 -04:00 |
|
Yotam Mann
|
21391f2a9d
|
Source is schedulable state
|
2015-08-16 15:16:36 -04:00 |
|
Yotam Mann
|
50d34c0ade
|
using Error instead of TypeError
|
2015-08-16 15:16:26 -04:00 |
|
Yotam Mann
|
d36af98c46
|
filter rolloff goes up to -96 now
because why not? Also accepts a string as the type. fixes #84.
|
2015-08-12 13:13:04 -04:00 |
|
Yotam Mann
|
17f5e8bb8e
|
delays are offset only 1 block now.
|
2015-07-21 11:22:36 -04:00 |
|
Yotam Mann
|
01060f13db
|
removing old API test
|
2015-07-18 14:59:18 -04:00 |
|
Yotam Mann
|
3ccc0683bf
|
changing doc links to markdown style
|
2015-07-04 15:25:37 -04:00 |
|
Yotam Mann
|
caddec650f
|
doc'ing sources
mergine @polyrhythmatic changes
|
2015-07-04 12:43:21 -04:00 |
|
Yotam Mann
|
8ffd6e538f
|
fixed doc bugs
|
2015-06-22 01:21:25 -04:00 |
|
Yotam Mann
|
4e9cb3ce1e
|
doc'ing
|
2015-06-20 15:50:57 -04:00 |
|
Yotam Mann
|
6306841779
|
doc'ing
|
2015-06-15 11:27:13 -04:00 |
|
Yotam Mann
|
80a28f8554
|
using noOp function for defaults
|
2015-06-14 01:54:36 -04:00 |
|
Yotam Mann
|
800ac13332
|
jsdoc'ing the sources
|
2015-06-13 22:30:33 -04:00 |
|
Yotam Mann
|
0877a4862c
|
jsdoc'ing sources
|
2015-06-13 22:03:06 -04:00 |
|
Yotam Mann
|
23cc2408b2
|
changing link tag
|
2015-06-13 21:54:20 -04:00 |
|
Yotam Mann
|
a81ba071f3
|
changing the styling of this in return statements
|
2015-06-13 20:54:29 -04:00 |
|
Yotam Mann
|
571183bf27
|
removing Tone.Type prefix in docs
|
2015-06-13 20:20:36 -04:00 |
|
Yotam Mann
|
f2f838b630
|
using signal jsdoc
|
2015-06-13 19:50:39 -04:00 |
|
Yotam Mann
|
5cb915a332
|
removing notes on default
|
2015-06-13 19:29:35 -04:00 |
|
Yotam Mann
|
99c7067f54
|
sets initial volume of source
|
2015-06-07 14:05:59 -04:00 |
|
Yotam Mann
|
3bf65cddb3
|
type annotation
|
2015-06-07 12:09:08 -04:00 |
|
Yotam Mann
|
68a47a9d58
|
Normal->NormalRange & Number->Default
|
2015-05-24 09:45:15 -04:00 |
|
Yotam Mann
|
1f69151c5f
|
renamed Tone.Frequency -> Tone.Type.Frequency
|
2015-05-23 19:07:28 -04:00 |
|
Yotam Mann
|
6ef3dd2f51
|
renamed Tone.Time -> Tone.Type.Time
|
2015-05-23 19:01:05 -04:00 |
|
Yotam Mann
|
f0bcd68812
|
renamed Tone.Signal.Units to Tone.Type
also renamed Tone.Source.State to Tone.State
|
2015-05-23 18:57:05 -04:00 |
|
Yotam Mann
|
3f3cbe5f04
|
detune value in cents
|
2015-05-21 13:51:40 -04:00 |
|
Yotam Mann
|
02ec3215df
|
new oscillator types
sine[partialsCount] i.e. sine6, triangle2, square3, etc.
|
2015-05-12 23:49:03 -04:00 |
|
Yotam Mann
|
a2f4a3595b
|
jsdoc'ing
|
2015-05-05 16:40:52 -04:00 |
|
Yotam Mann
|
4818c14faa
|
fixes AudioSourceNode looping bug in Chrome 42
This should be addressed in Chrome 43.
Fixes #64
|
2015-04-28 22:12:59 -04:00 |
|
Yotam Mann
|
15ebac4c37
|
Player autostart
Plays as soon as the buffer is loaded.
|
2015-04-28 16:17:54 -04:00 |
|
Yotam Mann
|
c7ff31caf9
|
sources are explicitly stereo
makes it easier to go through stereo effects.
|
2015-04-28 14:33:59 -04:00 |
|
Yotam Mann
|
a85b72727f
|
setting read/write as an array
|
2015-04-05 14:53:27 -04:00 |
|
Yotam Mann
|
81670122d3
|
completely disposing readOnly properties
need to set them writable first
|
2015-04-05 14:41:43 -04:00 |
|
Yotam Mann
|
3a93d52ee1
|
making source's signal attributes readOnly
this helps avoid a common error which is overwriting a signal property
instead of setting the .value attribute
|
2015-04-05 14:00:52 -04:00 |
|
Yotam Mann
|
e6602d561d
|
fixing bug when updating phase
previously wouldn’t update because the type was still the same. thanks
@mindofmatthew
|
2015-04-05 10:38:17 -04:00 |
|
Yotam Mann
|
33bedd3fbe
|
applying @mindofmatthew patch
|
2015-03-27 09:42:20 -04:00 |
|
Yotam Mann
|
a572df7a88
|
Merge pull request #61 from mindofmatthew/phase-patch
Phase patch
|
2015-03-27 09:32:59 -04:00 |
|
Matthew Kaney
|
5576c3db22
|
Fix phase bug for complex waveforms
Fix bug where phase is applied to partials relative to the partial,
rather than the fundamental, frequency
|
2015-03-26 13:18:41 -04:00 |
|
Yotam Mann
|
ec2bd15ee1
|
can reverse buffer playback
|
2015-03-26 10:51:44 -04:00 |
|
Yotam Mann
|
470e8063e3
|
fix unused playback rate in Noise
|
2015-03-24 16:28:48 -04:00 |
|
Luke Phillips
|
237202c049
|
updated typescript definitions and fixed a few type errors
|
2015-03-07 19:17:16 +00:00 |
|
Luke Phillips
|
e706e0ad5e
|
remove getOversample
|
2015-03-07 19:04:40 +00:00 |
|
Luke Phillips
|
f4fc005a57
|
new typescript definitions
|
2015-03-07 18:45:11 +00:00 |
|
Luke Phillips
|
db5c6eb865
|
remove old get and set functions
|
2015-03-07 18:41:10 +00:00 |
|
Luke Phillips
|
17df3dc4bb
|
es5 getters and setters used in multiband eq
|
2015-03-07 18:26:08 +00:00 |
|
Luke Phillips
|
d2755e10de
|
Merge Tone r4
|
2015-03-05 16:06:27 +00:00 |
|