Yotam Mann
3b8d44d344
Buffer.prototype.load returns Promise
...
Also simplified/removed XHR queuing and other complications
2016-09-19 00:08:16 -04:00
Yotam Mann
6a951fa217
using 'emit' instead of 'trigger'
...
more similar to Node.js EventEmitter class
2016-09-18 20:07:00 -04:00
Yotam Mann
ceefac97e7
adding lengthComputable so that it never divides by 0
2016-09-18 19:45:16 -04:00
Yotam Mann
71a4c986fc
Can pass in an LFO description in the .value parameter
2016-09-18 19:25:47 -04:00
Yotam Mann
de9f15f1e7
fixed another linting error
...
[skip ci]
2016-09-08 21:20:49 -04:00
Yotam Mann
3eaa98ef51
fixed some linting errors
...
[skip ci]
2016-09-08 10:29:41 -04:00
Yotam Mann
b4c31342fe
loaded
attribute
...
iterates over the contained buffers and returns true if all of them are
loaded
2016-08-19 18:03:13 -04:00
Yotam Mann
535ce86179
adding error callbacks
2016-08-16 15:26:51 -04:00
Yotam Mann
cea47e5cdb
added seek
event when changing the Transport's position
2016-08-15 23:13:09 -04:00
Yotam Mann
2569bfef8b
to/fromArray
...
plus a few more properties.
2016-08-15 10:23:01 -04:00
Yotam Mann
682ec0e46e
get/set the progress in seconds
2016-08-15 07:28:52 -04:00
Yotam Mann
e8178581c0
Merge pull request #161 from JackCA/allow-silencing-version-log
...
allow silencing of version log
2016-08-15 06:44:15 -04:00
Jack Anderson
f2f1cf6b9c
allow silencing of version log
...
- useful for test environments
2016-08-14 12:21:50 -07:00
Yotam Mann
3d2b86032e
added has
method to test if buffer exists
2016-08-09 01:14:52 -04:00
Yotam Mann
464d64d13b
Merge branch 'master' into dev
2016-07-20 15:44:34 -04:00
Yotam Mann
3aea0546f5
starting r8
...
[skip ci]
2016-07-10 12:31:15 -04:00
Yotam Mann
6c8c75a2ec
Clock ticks do not catch up when restarted after pause
...
fixes #145
2016-07-08 12:26:58 -04:00
Yotam Mann
8195d9d260
release candidate
2016-07-07 14:56:33 -04:00
Yotam Mann
62ca8f8c7b
setRampPoint does not need to convert from units
2016-07-07 14:23:48 -04:00
Yotam Mann
99d7d2f8bd
disconnects from a specific node
...
(tests this feature only when supported)
2016-07-06 23:39:06 -04:00
Yotam Mann
c08e16087f
correctly setting PPQ
...
wasn’t taking into account that the returns bpm value was dependent on
the PPQ. therefore, need to read the bpm before setting the PPQ.
2016-07-06 23:23:14 -04:00
Yotam Mann
d0b18c5d09
test for file type support.
2016-07-06 23:09:56 -04:00
Yotam Mann
2905cce5d2
making fadeTo exponential when set to decibels.
...
also converting from units to set ramp point
2016-07-06 22:59:21 -04:00
Yotam Mann
1ba3733439
interval is exclusive of end point
...
specifically the repeat time is: [start, start + duration).
so Transport.scheduleRepeat(fn, 1, 0, 2) will repeat twice, not three
times (since it’s exclusive of the end time).
2016-06-22 16:39:48 -04:00
Yotam Mann
96644f37d2
Adjusting the timing of the tests
...
also using wav’s instead of mp3s
2016-06-14 20:27:12 -04:00
Yotam Mann
693867f9be
Revert "encoding the URI"
...
This reverts commit 754e9fc500
.
2016-06-14 20:04:28 -04:00
Yotam Mann
754e9fc500
encoding the URI
2016-06-14 19:57:15 -04:00
Yotam Mann
5978d46825
Buffers is a data structure for holding multiple Tone.Buffer
2016-06-14 19:57:01 -04:00
Yotam Mann
cce32d7efc
IntervalTimeline.forEachOverlap -> forEachAtTime
2016-06-13 09:02:51 -04:00
Yotam Mann
4628f8c47a
prefixing errors with class name.
2016-05-25 20:50:46 -04:00
Yotam Mann
3b9b65bf89
adding additional startTime value to rampTo
2016-05-17 21:59:27 -04:00
Yotam Mann
2db3265fb9
needs to cancel at 0 for some reason to take effect in Chrome
2016-05-14 18:57:18 -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
af1a737f71
simplifying position
code to use TransportTime
2016-05-14 16:32:16 -04:00
Yotam Mann
688e3812ab
removing old types
2016-04-18 02:19:29 -04:00
Yotam Mann
16c28892c8
using Time instead of TransportTime
2016-04-18 01:12:55 -04:00
Yotam Mann
cebeb3e577
clock goes to stop state immediately
...
no need to test if it’s started.
2016-04-18 01:12:35 -04:00
Yotam Mann
733b49bcd5
using new types
2016-04-18 00:36:08 -04:00
Yotam Mann
9b5837df3e
Using new types
...
swing sinusoidally delays until a triplet.
2016-04-18 00:17:02 -04:00
Yotam Mann
ca95a0bef5
increasing PPQ to 192. quantize->nextSubdivision
...
separating out Timeline quantization from quantization method and
moving it elsewhere.
2016-04-13 13:05:27 -04:00
Yotam Mann
6d4a4cf164
moving intervalToFrequencyRatio into core
2016-04-12 20:30:18 -04:00
Yotam Mann
4a05dc4534
removing unused method
...
`fan` is more useful
2016-04-10 23:35:22 -04:00
Yotam Mann
4f4d93ba71
removing deprecated Note class
2016-04-10 23:34:34 -04:00
Yotam Mann
272ad66873
documenting distinction between Time and TimelinePosition
...
Fixes #104
[skip ci]
2016-03-18 11:28:49 -04:00
Yotam Mann
df30c40bd3
maximum diff between frames
2016-03-18 10:24:11 -04:00
Yotam Mann
5ddf71a3da
removing millisecond conversion
...
accidentally still had that in there.
2016-03-17 18:00:42 -04:00
Yotam Mann
78095af046
properly handles error on buffer decoding
2016-03-05 00:07:42 -05:00
Yotam Mann
ac6ef2c263
ifdef which allows Tone work on the same page as p5.sound
2016-03-04 18:14:24 -05:00
Yotam Mann
f2fc38210f
updated doc examples
2016-03-03 13:08:26 -05:00
Yotam Mann
2020194a1c
testing and handling edge cases
2016-03-03 13:00:59 -05:00
Yotam Mann
724ac4090c
removing threshold value
...
making _worker static
2016-03-03 01:34:48 -05:00
Yotam Mann
89711b336e
process single occurrence events first
...
Fixes #114
2016-02-27 17:23:38 -05:00
Yotam Mann
e8eb147935
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
2016-02-27 17:19:26 -05:00
Yotam Mann
bfbf567d98
Clocks uses Workers instead of requestAnimationFrame
...
Fixes #124
2016-02-27 17:14:39 -05:00
Yotam Mann
12c7426f53
baseUrl
...
useful for various production environments.
2016-02-27 17:12:11 -05:00
Yotam Mann
ac5841d8ad
removing startMobile
...
use StartAudioContext to accomplish the same thing.
2016-02-27 16:46:13 -05:00
Yotam Mann
670e3ef92b
static 'now' function
...
updated description.
2016-02-25 17:58:26 -05:00
Yotam Mann
79ab31603a
cache the time in seconds of 1 sample
2016-01-31 23:13:00 -05:00
Yotam Mann
3d67297166
updated copyright year
2016-01-23 12:30:34 -05:00
Yotam Mann
9f785b371e
removing deprecated methods
2016-01-18 22:45:46 -05:00
Yotam Mann
e371c69a79
incrementing version
2015-12-13 13:09:53 -05:00
Yotam Mann
6c81d59df2
r6 version
2015-12-08 00:26:03 -05:00
Yotam Mann
cfc33cf39c
doc'ing
2015-12-08 00:07:16 -05:00
Yotam Mann
f7547217c8
Timeline has an optional memory length
2015-12-06 23:48:53 -05:00
Yotam Mann
8984365883
resolves case where items are removed during iteration
2015-12-06 17:23:30 -05:00
Yotam Mann
dbc33d0a1c
fixes case of canceling events when there's only one event in the timeline
2015-12-06 17:23:30 -05:00
Yotam Mann
12d7cd0e1f
eventsToRemove is no longer necessary
2015-12-06 13:14:36 -05:00
Yotam Mann
2bf8039b4e
iterator with guarding in case items are deleted
...
makes it safer to delete an item during a forEach loop
2015-12-06 13:14:36 -05:00
Yotam Mann
c8cfe33864
doc'ing
2015-11-17 22:52:22 -05:00
Yotam Mann
e09ec8de23
reverting to old volume implementation in Master
2015-11-16 11:10:12 -05:00
Yotam Mann
42dadb6d2d
using Emitter style for load/progress/error
...
The new syntax is `Tone.Buffer.on(“load”, callback);`
2015-11-11 12:33:02 -05:00
Yotam Mann
4f9871cd30
fixing 'off' case where Emitter is mixed into the class
2015-11-11 12:13:36 -05:00
Yotam Mann
3e14c63313
updated docs
2015-11-10 23:02:01 -05:00
Yotam Mann
1dd36570d3
doc'ing
2015-11-02 20:10:36 -05:00
Yotam Mann
afba7d77d2
toRemove array
...
This fixes issues where an event is removed mid loop.
2015-11-02 20:08:20 -05:00
Yotam Mann
67221f8f39
Delay no longer extends Tone.Param
2015-11-02 09:31:12 -05:00
Yotam Mann
8c1bf599d0
reverting : gain no longer extends Tone.Param
2015-11-01 17:48:52 -05:00
Yotam Mann
b90db92749
parses quantized values with toSeconds
2015-10-27 21:08:02 -04:00
Yotam Mann
026501144d
better accuracy by using the clock's next tick time.
2015-10-27 20:58:06 -04:00
Yotam Mann
681c38182d
can quantize to a subdivision
2015-10-27 17:46:34 -04:00
Yotam Mann
bfa4f1ada2
renaming EventEmitter to just Emitter
2015-10-27 17:40:52 -04:00
Yotam Mann
1a8ccff5a0
removing shallowCopy from optionsObject
...
addresses #99
2015-10-21 15:27:52 -04:00
Yotam Mann
9cbcd5b94e
handles case where first argument is a Tone.Buffer
...
addresses #99
2015-10-21 13:51:53 -04:00
Yotam Mann
61fc3b298d
isObject checks only for Object literals
2015-10-21 13:51:23 -04:00
Yotam Mann
4a2bd215e7
using new type checking methods
2015-10-21 13:13:15 -04:00
Yotam Mann
0ba977456d
removing shallowCopy
...
adding more type check methods
2015-10-21 13:12:51 -04:00
Yotam Mann
61fb1df660
adding strict mode
2015-10-21 12:11:19 -04:00
Yotam Mann
1c00c650db
updating to new Volume API
2015-10-21 10:33:13 -04:00
Yotam Mann
dd3667a234
no need for getType
2015-10-21 10:29:47 -04:00
Yotam Mann
1c7e9483e9
updating syncing for Params
2015-10-21 10:29:29 -04:00
Yotam Mann
796da24d9e
connect method accommodates Tone.Param
...
also better way of testing for object literals instead of `typeof` in
`optionsObject`
2015-10-21 10:29:04 -04:00
Yotam Mann
11b4995b25
moving overridden flag to Param
2015-10-21 10:27:44 -04:00
Yotam Mann
c2311b0794
Delay extends Param
2015-10-21 10:04:55 -04:00
Yotam Mann
532a8e6745
Gain class wraps native GainNode
2015-10-21 10:02:23 -04:00
Yotam Mann
386acdbb03
Param base class wraps native AudioParam
2015-10-21 10:01:40 -04:00
Yotam Mann
36d09dacc7
additional type-checking helpers
2015-10-11 16:04:14 -04:00
Yotam Mann
3fe5ef2b6c
after-inclusive search
2015-10-11 16:03:20 -04:00
Yotam Mann
bd7168825e
normalized loop progress
...
Fixes #75
2015-10-09 19:09:02 -04:00
Yotam Mann
db904f0510
updating parameter order in docs
2015-10-09 11:01:03 -04:00
Yotam Mann
8efd9b9c64
allowing for shallow copies with defaults
2015-10-08 11:36:15 -04:00
Yotam Mann
4b29736ba2
don't do recurse defaultArg if it's an array
2015-09-05 19:17:00 -04:00
Yotam Mann
615c120688
getNextEvent -> getEventAfter and getEventBefore method
...
also fixed bug in forEachAfter method
2015-09-05 16:27:19 -04:00
Yotam Mann
42134d7ac3
scheduleRepeat implemented with IntervalTimeline
2015-09-05 15:15:04 -04:00
Yotam Mann
c66557a2cb
Removes all events when no callback with off
`
2015-09-05 15:06:58 -04:00
Yotam Mann
6a21b231ff
the BSD now balances itself.
2015-09-05 14:26:19 -04:00
Yotam Mann
eccdb659c2
renamed Tone/core/Types -> Tone/core/Type
2015-09-04 16:48:21 -04:00
Yotam Mann
3e2ebfcc05
IntervalTimeline which implements an interval tree
...
used to keep track of events with a time and duration
2015-09-04 16:17:56 -04:00
Yotam Mann
7393a59410
cancel <-> clear
...
clear removes an ID and cancel cancels events after the given time. API
is now more consistent with the Web Audio’s cancelScheduledValues
2015-09-03 16:56:05 -04:00
Yotam Mann
c222d7752d
clean up events array.
2015-08-31 16:42:54 -04:00
Yotam Mann
94e4c882fd
Milliseconds type
2015-08-31 15:47:25 -04:00
Yotam Mann
56eca9b690
"loop" event when the transport loops
2015-08-31 15:19:03 -04:00
Yotam Mann
ec5504c8c3
off can take multiple event names.
2015-08-31 15:16:05 -04:00
Yotam Mann
80b938a4d1
removed old comment
2015-08-31 15:15:53 -04:00
Yotam Mann
3a6bc7adbd
Source Syncing using events.
...
Signal syncing refactored.
2015-08-31 15:15:44 -04:00
Yotam Mann
155f83d948
making bpm readOnly
...
keeps people from overwriting it.
2015-08-28 18:42:08 -04:00
Yotam Mann
ba87494ee7
bpm is a readOnly attribute
2015-08-28 18:33:20 -04:00
Yotam Mann
117337e5e1
make sure signal is defined before checking instanceof
2015-08-28 18:33:02 -04:00
Yotam Mann
4712580937
handles case where there is no Transport loaded
2015-08-24 17:29:35 -04:00
Yotam Mann
c8cb6c5256
buffer accepts Buffer in constructor
2015-08-24 11:18:01 -04:00
Yotam Mann
180c7fc943
Better docs for some math functions
2015-08-21 17:05:09 -04:00
Yotam Mann
74a63110da
NewClock -> Clock
2015-08-18 18:15:19 -04:00
Yotam Mann
e5b0fb49d3
NewClock -> Clock
2015-08-18 18:14:26 -04:00
Yotam Mann
d64fe31df7
doc'ing the clock
2015-08-18 18:13:30 -04:00
Yotam Mann
dff1e43239
fixes bug when clear time was before any events
2015-08-18 18:07:35 -04:00
Yotam Mann
ad57ad2bcb
fixing tick offset on start method
2015-08-18 18:06:45 -04:00
Yotam Mann
36e8002e85
fixed clearBefore to do what it says
2015-08-18 17:33:39 -04:00
Yotam Mann
d85c973a83
added index to iterator.
...
removeEvent uses iterator
2015-08-18 17:08:14 -04:00
Yotam Mann
ac2d078afd
using clock's ticks
2015-08-18 16:30:50 -04:00
Yotam Mann
673abf3649
clock counts its own ticks
2015-08-18 16:30:33 -04:00
Yotam Mann
72ee2dcc37
renamed Schedulable to Timeline
2015-08-18 16:28:55 -04:00
Yotam Mann
5fd98c2064
doc'ing the EventEmitter
2015-08-17 14:57:54 -04:00
Yotam Mann
f380627628
updating to new Schedulable API
2015-08-17 01:02:06 -04:00
Yotam Mann
257c313f58
events are no longer private
...
added getNextEvent
2015-08-17 01:01:38 -04:00
Yotam Mann
4b78dcbed1
buffer accepts AudioBuffer in the constructor
2015-08-16 22:22:07 -04:00
Yotam Mann
1bd7f72b04
SchedulableState extends Schedulable
2015-08-16 22:21:54 -04:00
Yotam Mann
57402b289c
updated Schedulable API
2015-08-16 22:21:42 -04:00
Yotam Mann
4076c24b82
fixed midi to note conversion octave problem
2015-08-16 22:21:28 -04:00
Yotam Mann
c4757ee146
Merge pull request #86 from Tonejs/dev
...
Dev
2015-08-16 20:35:46 -04:00
Yotam Mann
6fb8995170
WIP schedule methods + PPQ
2015-08-16 20:31:11 -04:00
Yotam Mann
5d6a669bba
EventEmitter class
2015-08-16 20:30:41 -04:00
Yotam Mann
102b93ccda
starting new Clock not using ScriptProcessor
2015-08-16 20:30:26 -04:00
Yotam Mann
77973f64ab
Schedulable state
2015-08-16 15:15:32 -04:00
Yotam Mann
8047294b32
test if signal exists before checking instanceof
2015-08-16 14:23:30 -04:00
Yotam Mann
cb963405ed
master gets dispose method
2015-08-16 14:23:14 -04:00
Yotam Mann
1decb210f3
Gain takes options object
2015-08-16 14:23:01 -04:00
Yotam Mann
bc44a2ff99
wrapping GainNode in Tone class
2015-08-15 19:30:43 -04:00
Yotam Mann
f2bae50952
wrapping DelayNode into Tone class
2015-08-15 19:30:33 -04:00
Yotam Mann
1953309e2f
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
2015-08-15 18:49:16 -04:00
Yotam Mann
05ae3480b9
F had the wrong index
2015-08-07 13:25:52 -04:00
Matthew Hasbach
73528051ec
Fix typo "Tranport"
2015-08-04 19:34:28 -04:00
Yotam Mann
f9dadbf320
Exposed concert pitch in frequency conversions
...
now accommodates global detune
2015-08-01 01:25:10 -04:00
Yotam Mann
e1c8fdaec5
Double accidental support
...
Fixes #81
2015-08-01 00:58:49 -04:00
Yotam Mann
c3f41e8424
Handles negative octaves
2015-07-24 23:16:00 -04:00
Yotam Mann
025a009d5b
convert a Time value to Notation
2015-07-21 13:30:20 -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
7608371843
exposing toTicks and ticksToSeconds
2015-07-13 21:58:20 -04:00
Yotam Mann
5629ecd360
starting r6-dev
2015-07-11 14:55:48 -04:00
Yotam Mann
1d16c25ad9
r5
2015-07-04 16:35:46 -04:00
Yotam Mann
3ccc0683bf
changing doc links to markdown style
2015-07-04 15:25:37 -04:00
Yotam Mann
747dff0636
fixing mute/unmute
2015-06-22 01:21:09 -04:00
Yotam Mann
4e9cb3ce1e
doc'ing
2015-06-20 15:50:57 -04:00
Yotam Mann
8449622a68
new types MIDI and TransportTime
2015-06-20 15:50:06 -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
8d02f2eb81
editing class comments.
2015-06-14 01:45:12 -04:00
Yotam Mann
4b1f235781
doc'ing bus
2015-06-14 01:24:12 -04:00
Yotam Mann
bb4754928f
styling docs
2015-06-14 01:21:10 -04:00
Yotam Mann
b2fa7a065e
jsdocing
2015-06-13 23:56:32 -04:00
Yotam Mann
de3564827d
set
example
2015-06-13 22:03:58 -04:00
Yotam Mann
23cc2408b2
changing link tag
2015-06-13 21:54:20 -04:00
Yotam Mann
20ad29dc61
removing types from array notation
2015-06-13 20:56:41 -04:00
Yotam Mann
a81ba071f3
changing the styling of this
in return statements
2015-06-13 20:54:29 -04:00
Yotam Mann
6bb7b761a1
updating docs
2015-06-13 20:52:51 -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
07264eb05b
signal jsdocing
2015-06-13 19:29:25 -04:00
Yotam Mann
3bf65cddb3
type annotation
2015-06-07 12:09:08 -04:00
Yotam Mann
3ee0ab2e3e
adding typedefs to Tone.Type
2015-05-31 10:54:23 -04:00
Yotam Mann
68a47a9d58
Normal->NormalRange & Number->Default
2015-05-24 09:45:15 -04:00
Yotam Mann
38f66d92ad
get can use "." to access deeper props
2015-05-24 09:34:17 -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
f765c6127f
chain and mute
2015-05-23 18:15:39 -04:00
Yotam Mann
a53c7b8eec
moving typedefs into Tone core
2015-05-23 18:14:39 -04:00
Yotam Mann
d63290f4ee
returning to original get
method
...
gets everything, not just the defaults of the parent
2015-05-13 12:13:00 -04:00
Yotam Mann
d8575a38ba
get
crawls defaults correctly
2015-05-12 23:46:12 -04:00
Yotam Mann
a2f4a3595b
jsdoc'ing
2015-05-05 16:40:52 -04:00
Yotam Mann
2fdaa36d1f
Clock onended callback similar to Sources
...
Fixes #65
2015-05-05 15:36:06 -04:00
Yotam Mann
e797398395
buffer is reversed when it's loaded
...
not every time the buffer is set (as in the case a Sampler’s buffer is
being set).
2015-04-28 16:27:11 -04:00
Yotam Mann
f0861838fc
mute boolean so that you can't double mute the master output
2015-04-24 17:45:32 -04:00
Yotam Mann
a85b72727f
setting read/write as an array
2015-04-05 14:53:27 -04:00
Yotam Mann
4be776955d
private _writable
method
...
inverse of readOnly
2015-04-05 14:42:32 -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
ec2bd15ee1
can reverse buffer playback
2015-03-26 10:51:44 -04:00
Yotam Mann
829934d0e6
send values in decibels
2015-03-24 16:28:36 -04:00
Yotam Mann
56e178af76
incremented version
2015-03-09 10:47:44 -04:00
Luke Phillips
237202c049
updated typescript definitions and fixed a few type errors
2015-03-07 19:17:16 +00:00
Yotam Mann
269b2940c3
r4 build
2015-03-03 12:15:37 -05:00
Yotam Mann
d609f8e266
jsdoc'ing instruments
2015-02-27 23:24:51 -05:00
Yotam Mann
a791d80ddf
removing some vestigial methods
2015-02-26 11:26:49 -05:00
Yotam Mann
24875c2f4c
more JSDoc massaging
2015-02-26 11:26:23 -05:00
Yotam Mann
371e3ce387
more jsdoc examples
2015-02-25 16:20:12 -05:00
Yotam Mann
76973cda7d
changed internal tag to private tag
...
JSDoc stuff
2015-02-25 16:19:43 -05:00
Yotam Mann
a28f805374
made toTicks and ticksToSeconds private
2015-02-25 16:18:40 -05:00
Yotam Mann
12896a5630
get/set method on Transport
2015-02-23 22:14:22 -05:00
Yotam Mann
9e7742fde7
ramp values in set
method
2015-02-23 14:07:52 -05:00
Yotam Mann
c7cf0d0823
setting a preset moved to core
2015-02-23 00:32:33 -05:00
Yotam Mann
adb80fe792
update to new Transport API
2015-02-23 00:27:37 -05:00
Yotam Mann
012b1c28f3
es5 getter/setter on Transport
2015-02-21 14:05:12 -05:00
Yotam Mann
baba517f09
unmuting the output returns previous value
2015-02-20 00:58:29 -05:00
Yotam Mann
0ae0d60419
safety checks on set
2015-02-17 11:07:34 -05:00
Yotam Mann
3d1ba46e4c
fixed bug in fan
method
2015-02-13 16:09:49 -05:00
Yotam Mann
35ca46e811
removing static annotation.
2015-02-11 14:38:10 -05:00
Yotam Mann
51622a1272
renaming rate to frequency
2015-02-10 16:33:18 -05:00
Yotam Mann
e1bdfdc8ef
return this
in Core
2015-02-10 11:41:14 -05:00
Yotam Mann
afb913aec6
Tone.Frequency typedef
2015-02-10 11:40:42 -05:00
Yotam Mann
3bc48cbb75
moving loaded flag to 'set' method
2015-02-04 10:16:49 -05:00
Yotam Mann
9c3aa24426
using new setter/getter in core
2015-02-04 10:16:33 -05:00
Yotam Mann
ee8c2cd43f
using isFunction method
2015-02-02 09:41:32 -05:00
Yotam Mann
362afb32eb
returning to public dispose method
2015-02-01 22:05:24 -05:00
Yotam Mann
dd57603003
loaded flag
2015-02-01 21:32:49 -05:00
Yotam Mann
0429548703
small optimization in getter/setter
2015-02-01 20:37:40 -05:00
Yotam Mann
0551f451d0
getter/setter and new dispose
2015-02-01 20:02:54 -05:00
Yotam Mann
fc20586939
getVolume
2015-02-01 20:02:38 -05:00
Yotam Mann
650458fafd
new dispose and get/set api
...
integrated new API on sources
2015-02-01 20:02:13 -05:00
Yotam Mann
9070b13c89
ES5 add getter/setter method
2015-02-01 15:48:20 -05:00
Yotam Mann
8a9f5a9ce9
updating docs
2015-02-01 13:32:02 -05:00
Yotam Mann
2e15f03490
Revert Tone.Volume representation
2015-01-05 23:33:05 -05:00
Yotam Mann
177b096f55
moved isFrequency to Tone
2015-01-05 22:46:38 -05:00
Yotam Mann
a60ec836db
migrating to Tone.Volume representation
2015-01-05 22:46:19 -05:00
Yotam Mann
d659e923bb
Tone.Volume representation
...
accepts db as strings like “6db”
2015-01-05 22:45:24 -05:00
Yotam Mann
a965c520f0
make buffer private
...
reset download count after the download is complete
2015-01-05 21:47:07 -05:00
Yotam Mann
3c2d962715
renamed onend to onended
2015-01-04 22:25:16 -05:00
Yotam Mann
693d96b1b7
Clock uses setTimeout to invoke onended
...
the native onended is too flakey. addresses #48
2015-01-04 22:19:33 -05:00
Yotam Mann
c11d66f2c3
Tone.Buffer has static progress and load event
2015-01-04 20:59:08 -05:00
Yotam Mann
cc26f35e57
master send/receive
...
master effects chain
2014-12-19 16:32:59 -05:00
Yotam Mann
3b7b7b5423
fixed bus infinite recursion.
2014-12-08 00:44:40 -05:00
Yotam Mann
f7a14f2b37
all frequency values accept a note name as well
2014-12-06 16:48:36 -05:00
Yotam Mann
bf325680a6
started r4-dev
2014-12-03 23:04:56 -05:00
Yotam Mann
f79ccd9825
release candidate 3
2014-12-03 22:41:56 -05:00
Yotam Mann
db544d20c4
using markdown instead of example tag
2014-12-03 17:25:34 -05:00
Yotam Mann
1b9cc1483b
jsdoc'ing
2014-12-03 17:20:23 -05:00
Yotam Mann
2d0bcffc9f
adding defaults to jsdocs
2014-12-02 01:42:08 -05:00
Yotam Mann
c8478192e1
get the time till the next beat
...
useful for the eventual quantization
2014-11-30 22:40:07 -05:00
Yotam Mann
25496dea77
switched to updated chain method
2014-11-30 21:32:09 -05:00
Yotam Mann
c5da40969e
chain and fan methods use 'this' nodes output
2014-11-30 17:46:09 -05:00
Yotam Mann
cf2cb263b2
chain -> connectSeries, fan -> connectParallel
2014-11-30 17:37:29 -05:00
Yotam Mann
484a7bf47d
Tone constructor accepts input/output num as param
2014-11-04 01:01:57 -05:00
Yotam Mann
7a8c8d168b
Merge branch 'expr' into dev
...
Conflicts:
.gitignore
CHANGELOG.md
Tone/signal/Modulo.js
test/tests/Effect.js
2014-11-01 18:34:22 -04:00
Yotam Mann
6362b59725
fixed connect method bug non-array multiple ins
2014-11-01 16:18:07 -04:00
Yotam Mann
76c596ca31
Fixed whitespace problem with toSeconds
2014-10-25 11:57:00 -04:00
Yotam Mann
4766f5a27f
Transport loops when greater than the loopEnd
...
used to be just equal to. caused bugs sometimes.
2014-10-23 00:24:02 -04:00
Yotam Mann
e1ba3a4487
returns an array when given an array
2014-10-22 22:27:01 -04:00
Yotam Mann
3b10b93eca
Merge pull request #39 from indefinit/unicode-fix
...
Unicode fix
2014-10-22 21:55:21 -04:00
Kevin Siwoff
d71f83c8fd
adds new Buffer class to core
2014-10-21 14:44:02 -04:00
Yotam Mann
4a4da6c85b
use MasterConstructor on init
2014-10-19 16:08:40 -04:00
Yotam Mann
f913c50241
precompute the bufferTime for a single frame
...
still need to figure out how to find the frame size
2014-10-16 14:51:25 -04:00
Kevin Siwoff
f784f5585f
adds Buffer class, refactors Player class to use new Buffer member
2014-10-16 14:48:23 -04:00
Yotam Mann
3eba6e58a4
optimizing initial script loading
2014-10-16 00:49:31 -04:00
Yotam Mann
4f9850d315
disconnect method handles output arrays
2014-10-13 15:58:21 -04:00
Yotam Mann
666d8f96c1
removed reference to global 'define' with build
...
gets rid of the problem of having the global ‘define’ left defined in
the window which may have adverse effects on other AMD shim modules.
2014-10-02 18:55:24 -04:00
Yotam Mann
93d9dd24c0
can start the transport at a specific offset
2014-10-02 13:22:44 -04:00
Yotam Mann
0233abf40e
cool color console printing
2014-10-01 14:48:05 -04:00
Yotam Mann
ef80d1e81c
light styling.
2014-10-01 14:47:45 -04:00
Yotam Mann
0c6383c49c
change swing to default to 16th note
2014-09-29 23:42:56 -04:00
Yotam Mann
704593b655
swing control on the Transport
2014-09-24 23:46:57 -04:00
Yotam Mann
26d2e1ef59
making a note of where methods get defined.
...
makes it easier to know which files to include.
2014-09-24 23:43:10 -04:00
Yotam Mann
d99de46c26
started r3-dev version.
2014-09-24 14:43:11 -04:00
Yotam Mann
4427463013
release candidate 2
2014-09-23 21:57:32 -04:00
Yotam Mann
b59978d5fa
note<-->midi methods
2014-09-21 15:18:04 -04:00
Yotam Mann
b4d2ad9bc7
put bufferSize back to 2048
...
need a solution where i can determiner he buffer size of the sound
card.
2014-09-20 21:17:24 -04:00
Yotam Mann
49341e2eae
lowered buffer size
2014-09-20 19:23:07 -04:00
Yotam Mann
603bc03d62
deferring on clock tick
...
to not block the audio thread
2014-09-15 21:45:31 -04:00
Yotam Mann
ef12e6e5d0
fixed bugs with context setting and stop method
2014-09-14 15:34:17 -04:00
Yotam Mann
f2ae3bd594
include an onend function for stop
2014-09-14 15:33:32 -04:00
Yotam Mann
41225430aa
started r2-dev
2014-09-12 11:53:07 -04:00
Yotam Mann
01003bc9d5
fixed note comment.
2014-09-11 20:45:02 -04:00
Yotam Mann
2ebd70b09b
release 1 candidate.
2014-09-11 20:37:40 -04:00
Yotam Mann
669c52ee60
jsdoc'ing.
2014-09-11 13:38:41 -04:00
Yotam Mann
7850bdabc1
changed Master class to Tone.Master
...
this is for jsdoc purposes.
2014-09-11 13:00:59 -04:00
Yotam Mann
f51f7370a4
moved note stuff to Tone.Note
2014-09-11 13:00:09 -04:00
Yotam Mann
b3af62fa4a
documented Transport and Tone.Time
2014-09-10 22:37:57 -04:00
Yotam Mann
50dcc6ccb0
jshint wants constructors to be Capitalized
2014-09-10 13:51:37 -04:00
Yotam Mann
06987ea9e6
class tag on Tone
2014-09-09 00:24:51 -04:00
Yotam Mann
d6806a02ea
setLoopPoint -> setLoopPoints
2014-09-06 15:37:33 -04:00
Yotam Mann
2016778123
checks if part is array
2014-09-06 15:37:15 -04:00
Yotam Mann
a01dbb8518
setVolume in db like other set volumes
2014-09-06 15:36:59 -04:00
Yotam Mann
d71f1cb5b7
jsdocs updates.
2014-09-05 11:32:35 -04:00
Yotam Mann
f378b81fcf
can set context with master as well
...
Fixes #7
2014-09-04 19:04:16 -04:00
Yotam Mann
1cfa016026
fixes jsdoc error
2014-09-04 15:22:25 -04:00
Yotam Mann
af85ae7e19
Added "use strict" to all classes
...
Fixes #17
2014-09-04 00:41:40 -04:00
Yotam Mann
03bec5cb05
new score format.
2014-09-03 22:37:05 -04:00
Yotam Mann
c1bdba8cf4
WaveTable -> PeriodicWave for old browsers
2014-09-02 16:57:25 -04:00
Yotam Mann
e4d3aaab2b
optional input arg to receive.
2014-09-02 12:09:16 -04:00
Yotam Mann
62b5bfffed
flexible function signature if define is not defined
2014-09-02 12:08:52 -04:00
Yotam Mann
b45fc88ed0
removing base class set method.
...
it did nothing…
2014-08-29 16:40:20 -04:00
Yotam Mann
59b69a8d3a
has an initial bpm of 120
2014-08-29 16:36:31 -04:00
Yotam Mann
1dae08f874
switching to releases instead of versions
2014-08-25 18:43:37 -04:00
Yotam Mann
b4b3b46521
Note values should be JSONable
2014-08-25 18:40:15 -04:00
Yotam Mann
43206cbf29
ability to take options object AND parameters
2014-08-24 19:28:42 -04:00
Yotam Mann
ccc24fb21b
fan out connections
2014-08-24 15:58:02 -04:00
Yotam Mann
595f81283e
updated Tone.dispose to handle input/output arrays
...
#15
2014-08-24 15:51:24 -04:00
Yotam Mann
b2c85eaf44
signals inherit Signal.connect method
...
this is so that params and signals they connect to don’t need to be
manually zeroed out after connecting.
Fixed #11
2014-08-24 13:19:49 -04:00
Yotam Mann
c92c76fef3
added an abstract set method to the base class
...
#16
2014-08-23 16:07:55 -04:00
Yotam Mann
dc98641558
dispose method calls parent's dispose method
...
related to issue #15 . finished for all effects.
2014-08-23 15:51:21 -04:00
Yotam Mann
6f6d0ea91b
recursively handles nested objects
2014-08-21 20:55:00 -04:00
Yotam Mann
b26f313bd7
defaultArgs can do defaults on objects
2014-08-21 00:58:44 -04:00
Yotam Mann
41e3e877d2
notes start at C instead of A
2014-08-20 20:46:28 -04:00
Yotam Mann
5f383d1f03
Tone.Note registers note events
...
makes it easy to write JSON scores for multiple instruments.
2014-08-20 16:51:56 -04:00
Yotam Mann
ffcd6807df
simplified version number
2014-08-18 07:50:58 -04:00
Yotam Mann
474b51ddd8
a single Transport object which doesn't get replaced
2014-07-30 15:12:21 -04:00
Yotam Mann
a9714afbc2
setContext
2014-07-30 13:55:59 -04:00
Yotam Mann
7081619bcf
doesn't expose Buses anymore
2014-07-30 13:55:36 -04:00
Yotam Mann
9afc03afa7
fixed typo, can now set context
2014-07-30 13:55:24 -04:00
Yotam Mann
cd4388fe89
refactored out clock from Transport
2014-07-30 13:54:55 -04:00
Yotam Mann
1ce8c653a8
fixed output connection bug
2014-07-22 13:38:42 -04:00
Yotam Mann
524bae2e60
accepts input/output number selection
2014-07-22 12:48:04 -04:00
Yotam Mann
bd05a1c1ed
startMobile. connect to array of inputs
2014-07-22 11:30:18 -04:00
Yotam Mann
b848ee9f9b
incremented version
2014-07-02 17:11:50 -04:00
Yotam Mann
f840861496
added a version number
2014-07-02 15:59:11 -04:00
Yotam Mann
072709f5b3
license in JSDocs
2014-07-02 15:51:55 -04:00
Yotam Mann
0af07289fd
recursive connect if the input is also a ToneNode
2014-07-02 15:36:41 -04:00
Yotam Mann
3391d0d08d
added notes to frequency and updated connect method
2014-06-30 17:09:55 -04:00
Yotam Mann
0b4def6155
Tone.Sources can sync to the Transport
2014-06-25 12:47:47 -04:00
Yotam Mann
265b604e83
small doc changes
2014-06-23 23:18:19 -04:00
Yotam Mann
9ea64668cc
new docs theme.
2014-06-23 14:52:33 -04:00
Yotam Mann
5ff3b1e4ee
working on docs
2014-06-23 14:20:20 -04:00
Yotam Mann
4cd751e541
transportTicks and timelineTicks are separate
...
this allows for timeouts and intervals to go on independent of timeline
loop points.
2014-06-23 13:30:38 -04:00
Yotam Mann
1f922516e7
aesthetic improvements
2014-06-23 00:53:59 -04:00
Yotam Mann
fd75f7e167
updated initial tempo value and toSeconds API
2014-06-21 15:55:14 -04:00
Yotam Mann
275b05b96e
updated toSeconds api and throws error if no web audio
2014-06-21 15:55:14 -04:00
Yotam Mann
63278d6042
set master volume
2014-06-21 15:55:14 -04:00
Yotam Mann
c9713d46dd
renamed tests/WebAudio to tests/Core
...
added tests to core
2014-06-20 00:57:56 -04:00
Yotam Mann
4b319a0690
new docs.
2014-06-19 21:48:16 -04:00
Yotam Mann
2201089ebd
working on docs
2014-06-19 13:38:21 -04:00
Yotam Mann
8c9c236bf1
Merge branch 'master' of https://github.com/TONEnoTONE/Tone.js
...
Conflicts:
Tone/source/Player.js
2014-06-19 01:41:04 -04:00
Yotam Mann
0d16ca01ae
handling Garbage Collection more explicitly
...
surfacing memory management methods so that users can control when
things get garbage collected
2014-06-18 22:35:31 -04:00
Chris Deaner
9e1c46a85d
merged transport.js with yotam
2014-06-18 17:41:39 -04:00
Chris Deaner
ab776cca3c
Added Grunt Buid system for building the lib as well as generating jsdocs.modified files in accordance with the grunt jsdoc specs
2014-06-18 17:39:05 -04:00
Yotam Mann
ded174c20a
ability to clear all timeline events
2014-06-18 16:45:25 -04:00
Yotam Mann
7ca876d24a
jshint
2014-06-18 15:46:31 -04:00
Yotam Mann
6566a32531
jshint + jsdoc
2014-06-18 15:39:10 -04:00
Yotam Mann
13f6e3df8a
added transport state
...
stopped/started/paused
2014-06-18 15:10:18 -04:00
Yotam Mann
a43e745464
transport events added correctly
2014-06-18 14:44:30 -04:00
Yotam Mann
5aba8dd6de
component to record anything from it's input
2014-06-18 12:06:29 -04:00
Yotam Mann
93d053aec5
removed ability to set new AudioContext
...
for now…
2014-06-18 01:35:56 -04:00
Yotam Mann
7d02476732
setBpm after start working
2014-06-18 01:35:34 -04:00
Yotam Mann
164252cf0c
moved frequency timing to Transport
...
now all timing is in Tone.Transport
2014-06-17 18:46:24 -04:00
Yotam Mann
e69b897eac
ability to set new AudioContext
2014-06-16 19:58:07 -04:00
Yotam Mann
6ff458845c
document, cleanup and lint
2014-06-16 01:44:00 -04:00
Yotam Mann
91dfc19b60
jshint + jsdoc. setTimeline
...
refactor includes privatizing many functions and variables
2014-06-15 20:59:49 -04:00
Yotam Mann
5e41da8f46
JSHint + JSDoc
2014-06-15 18:32:49 -04:00
Yotam Mann
4f4db8d2ac
started JSHinting + JSDocs
2014-06-15 17:38:36 -04:00
Yotam Mann
a9e965d5ae
Added multiply signal
...
working towards being able to lock LFOs to tempo
2014-04-16 16:47:28 -04:00
Yotam Mann
481b728d18
added named buses.
2014-04-16 00:23:58 -04:00
Yotam Mann
85e0201371
integrated Transport and musical timing for all methods that take times
2014-04-11 19:17:01 -04:00
Yotam Mann
7fe5c47b8a
major rename. sorry again.
2014-04-06 16:51:30 -04:00