Commit graph

225 commits

Author SHA1 Message Date
Yotam Mann
5c3cdab7cc does string replacements 2014-11-01 21:53:36 -04:00
Yotam Mann
56791f2ef2 pow is just a waveshapercurve 2014-11-01 21:53:14 -04:00
Yotam Mann
4f6d04498a using Pow and optimizing nodes 2014-11-01 21:52:49 -04:00
Yotam Mann
21a0b84137 including Pow and Divide 2014-11-01 16:18:23 -04:00
Yotam Mann
c454357fd7 small modulo optimization 2014-11-01 16:16:27 -04:00
Yotam Mann
ef4692789e Tone.Divide division 2014-10-30 21:34:53 -04:00
Yotam Mann
77559a4264 Tone.Inverse multiplicative inverse of a number 2014-10-30 21:34:34 -04:00
Yotam Mann
3a6261c9b9 Tone.Pow exponential 2014-10-30 21:34:11 -04:00
Yotam Mann
36f4a85582 connect method from Tone.Signal 2014-10-30 19:48:53 -04:00
Yotam Mann
79e4c1c9fc refactored Expr
put regexp all in one place and function callbacks all in one place
2014-10-30 17:04:15 -04:00
Yotam Mann
9d41f7aa3d handles multiple inputs 2014-10-30 01:05:17 -04:00
Yotam Mann
47a5e2d962 bug fixes 2014-10-30 01:04:49 -04:00
Yotam Mann
e19e0cea30 first Expr version
aggregate signal processing expression
2014-10-29 23:56:08 -04:00
Yotam Mann
0fce1bf624 Modulo small doc changes. 2014-10-22 21:52:42 -04:00
Yotam Mann
7ae56f179c Equal accepts two signals. 2014-10-22 21:26:10 -04:00
Yotam Mann
0a68826768 LessThan accepts two signals 2014-10-22 21:25:28 -04:00
Yotam Mann
8b58bd0a9b Greater than compares two signals 2014-10-22 21:24:40 -04:00
Yotam Mann
de194f24c3 min and max accept two signals 2014-10-22 21:23:47 -04:00
Yotam Mann
fcba9bd62a multiply handles two signals 2014-10-22 21:20:43 -04:00
Yotam Mann
23eaf83935 handles summing two signals
or a signal and a number.
2014-10-22 21:19:04 -04:00
Yotam Mann
7f7e093a4b Subtract class
subtract a signal and a number or a signal and a signal
2014-10-22 21:17:29 -04:00
Yotam Mann
eb07e84a6e simplified internals of IfElseThen
changes API slightly because false is 0 and not != 1
2014-10-13 19:24:06 -04:00
Yotam Mann
7277a7eb68 wrote Min and Max with IfThenElse
makes the internals much more readable
2014-10-13 19:22:11 -04:00
Yotam Mann
231d803848 IfThenElse class
convenience on using the selector for signal switching logic.
2014-10-03 17:20:35 -04:00
Yotam Mann
fe96656d2a AND and OR classes
Fixes #22
2014-10-03 17:20:00 -04:00
Yotam Mann
4eaa4f75df es5 getter/setter on Tone.Signal value
#33
2014-10-03 15:50:21 -04:00
Yotam Mann
0270b3c9e0 deprecating Tone.Threshold 2014-10-03 13:07:53 -04:00
Yotam Mann
f94034345d rewrote GreaterThan and LessThan in terms of GreaterThanZero 2014-10-03 13:07:26 -04:00
Yotam Mann
93eace9694 new GreaterThanZero class
Fixes #20. Also deprecates the need for Tone.Threshold
2014-10-03 13:06:26 -04:00
Yotam Mann
2e753b80dc renamed Tone.Not -> Tone.NOT
much clearer this way.
2014-09-24 14:44:56 -04:00
Yotam Mann
a99ff1d48e removed Tone.Not
renaming it Tone.NOT
2014-09-24 14:44:01 -04:00
Yotam Mann
04359f6dbb documenting Tone.Not 2014-09-23 22:23:58 -04:00
Yotam Mann
dff5852607 greater than equal to on threshold. 2014-09-14 15:34:37 -04:00
Yotam Mann
e3dc3a2f6a modulo comments 2014-09-14 15:33:02 -04:00
Yotam Mann
a0fe662dcd more modulus optimization 2014-09-12 01:03:48 -04:00
Yotam Mann
5b178359fd optimizing modulo operator 2014-09-12 00:55:10 -04:00
Yotam Mann
669c52ee60 jsdoc'ing. 2014-09-11 13:38:41 -04:00
Yotam Mann
08c6d3d4b2 Modulus operator on incoming signal
the cost of the operation is proportional to the number of bits the
incoming signal has
2014-09-08 11:49:21 -04:00
Yotam Mann
8552833330 refactored GT and LT to get rid of redundant code
Fixes #21
2014-09-07 22:16:19 -04:00
Yotam Mann
820b9e8005 readded min...?
dunno what happened there.
2014-09-07 21:43:24 -04:00
Yotam Mann
253884d19e renamed Tone.Selector to Tone.Select 2014-09-07 21:42:31 -04:00
Yotam Mann
71af6ca206 testing dispose methods for all classes.
a few classes were not being disposed correctly and leaving some
garbage attached.
2014-09-06 18:55:11 -04:00
Yotam Mann
925e9b19a6 slight refactor + firefox exponential ramp bug 2014-09-06 15:57:01 -04:00
Yotam Mann
d71f1cb5b7 jsdocs updates. 2014-09-05 11:32:35 -04:00
Yotam Mann
af85ae7e19 Added "use strict" to all classes
Fixes #17
2014-09-04 00:41:40 -04:00
Yotam Mann
dc525e90ce fixed setTargetAtTime typo 2014-09-03 17:31:51 -04:00
Yotam Mann
9d337cb101 fixed wave shaper curve length 2014-08-27 15:22:21 -04:00
Yotam Mann
b612f7839c Added Signal dep to all Signals
#11
2014-08-24 15:47:59 -04:00
Yotam Mann
7890e74ac0 moved Merge and Split to components 2014-08-24 15:46:55 -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
5f29b82d3b privatized the _scalar 2014-08-23 14:22:18 -04:00
Yotam Mann
833132643e Tone.ScaleExp scales values with an exponent
Fixes #14
2014-08-23 13:11:01 -04:00
Yotam Mann
343b54b784 reflects new connect method with indexing
changed the input/output to be arrays so that they can be used with the
new connect method
2014-08-20 17:09:58 -04:00
Yotam Mann
4e531dc06f fixed deps. ability to setContext 2014-07-30 13:56:32 -04:00
Yotam Mann
ded3f1a61a formerly Tone.Gate 2014-07-23 15:47:46 -04:00
Yotam Mann
b09fc13dc2 rename Gate to Switch and Switch to Selector 2014-07-23 15:47:00 -04:00
Yotam Mann
86c3b6e261 uses Tone.Switch now 2014-07-22 18:54:23 -04:00
Yotam Mann
8e646f033f route a single input to multiple outputs
select the open output. (similar to Switch)
2014-07-22 13:39:53 -04:00
Yotam Mann
738f1c8c5d api change from open to select 2014-07-22 13:39:28 -04:00
Yotam Mann
3494326f65 min and max using the new Tone.Switch 2014-07-22 12:48:37 -04:00
Yotam Mann
d9aa476a3f some linting 2014-07-22 12:48:22 -04:00
Yotam Mann
524bae2e60 accepts input/output number selection 2014-07-22 12:48:04 -04:00
Yotam Mann
fe418cbe89 switch that accepts multiple inputs 2014-07-22 12:47:28 -04:00
Yotam Mann
1a9a5fae2b min / max setters 2014-07-22 11:31:14 -04:00
Yotam Mann
fca7b0eba3 clip the incoming signal 2014-07-20 18:26:33 -04:00
Yotam Mann
69294ce410 switch between two sources 2014-07-20 18:18:43 -04:00
Yotam Mann
505bad1674 signal min and max 2014-07-20 18:18:29 -04:00
Yotam Mann
2ee294b278 fixed logic.
now nearly the same as greater than
2014-07-20 18:17:01 -04:00
Yotam Mann
d91f177fb5 fixed dep and doc 2014-07-20 18:15:17 -04:00
Yotam Mann
10e2acdea9 class description for signals 2014-07-04 13:47:56 -04:00
Yotam Mann
2f027cfd50 updated docs 2014-07-04 13:36:13 -04:00
Yotam Mann
2bab21a9f5 rename 2014-07-03 22:59:35 -04:00
Yotam Mann
465d83f308 signal comparison 2014-07-03 22:59:16 -04:00
Yotam Mann
ce4d75db50 signal absolute value 2014-07-03 22:57:04 -04:00
Yotam Mann
343ab3dee4 code cleanup a bit 2014-07-02 23:38:20 -04:00
Yotam Mann
63f264ad6f compare a signal to a number 2014-07-02 23:37:19 -04:00
Yotam Mann
67a1f7e76a absolute value of any input signal 2014-07-02 23:36:59 -04:00
Yotam Mann
1436aa2990 renamed EqualsZero 2014-07-02 19:18:00 -04:00
Yotam Mann
95113267c5 absolute value of incoming signal
between -1 and 1. can update this to work with all values if i use
Tone.Switch
2014-07-02 18:20:02 -04:00
Yotam Mann
bb9d4b9603 updated docs 2014-07-02 17:33:00 -04:00
Yotam Mann
89593b6dbc optimizing the component count 2014-07-02 17:26:27 -04:00
Yotam Mann
793eb1ce39 negate an incoming signal 2014-07-02 17:08:59 -04:00
Yotam Mann
fbf7b189c0 open and close a switch 2014-07-02 17:08:50 -04:00
Yotam Mann
07a96711e5 update thresh value 2014-07-02 17:08:03 -04:00
Yotam Mann
8aa3e06085 moved bit crusher to effects 2014-07-02 17:07:53 -04:00
Yotam Mann
e0bbf3b460 threshold a signal between -1 and 1 2014-07-02 17:07:40 -04:00
Yotam Mann
2d32b38bb7 fixed deps in Multiply 2014-07-02 16:00:39 -04:00
Yotam Mann
113e103514 dispose methods 2014-07-02 15:47:05 -04:00
Yotam Mann
5098ab8e10 Threshold ToneNode 2014-07-02 15:37:17 -04:00
Yotam Mann
070da78981 EqualsZero ToneNode 2014-07-02 15:37:08 -04:00
Yotam Mann
88336c50bb cleaner looking alias 2014-06-30 17:11:46 -04:00
Yotam Mann
12f661c147 fixed single line docs 2014-06-22 12:33:27 -04:00
Yotam Mann
a0bdadc927 fixed error in API 2014-06-21 18:39:45 -04:00
Yotam Mann
d82129f995 fixed doc error 2014-06-21 18:39:09 -04:00
Yotam Mann
494cd5576f new connect method. signal now has an input 2014-06-21 15:55:15 -04:00
Yotam Mann
beee9c2a74 fixed error in dispose method 2014-06-21 15:55:15 -04:00
Yotam Mann
e1647e2031 don't garbage collect the generator 2014-06-21 15:55:14 -04:00
Yotam Mann
eec6e154a2 can set the sync ratio 2014-06-20 01:23:47 -04:00
Yotam Mann
812691a95b added dispose methods to signals 2014-06-20 00:38:14 -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
8c39cd08a0 can pass in a 'now' in setCurrentValueNow 2014-06-18 16:56:50 -04:00
Yotam Mann
6566a32531 jshint + jsdoc 2014-06-18 15:39:10 -04:00
Yotam Mann
13eca51a08 corrected API issue 2014-06-18 12:50:00 -04:00
Yotam Mann
78ee81a256 ramp a value starting from the current time and value 2014-06-18 01:36:22 -04:00
Yotam Mann
3d6353e9f5 doc + lint 2014-06-17 13:01:06 -04:00
Yotam Mann
bc89e3746a doc 2014-06-17 12:30:45 -04:00
Yotam Mann
92d3c7a238 doc'ing 2014-06-17 12:15:10 -04:00
Yotam Mann
76fb8e7aa5 jsdoc + jshint 2014-06-17 11:48:17 -04:00
Yotam Mann
d900c2ae40 updated multiply doc 2014-06-17 11:42:38 -04:00
Yotam Mann
c4f8a98c2f jshint and jsdoc the merger 2014-06-17 11:40:01 -04:00
Yotam Mann
766951c8ae JSDoc + JSHint 2014-06-16 20:05:54 -04:00
Yotam Mann
20a592bd1c JSHint + JSDoc 2014-06-16 19:57:55 -04:00
Yotam Mann
21ee84d1cf optimization. all signals share the same generator 2014-06-16 19:37:25 -04:00
Yotam Mann
916c87345d some linting. 2014-06-15 18:19:05 -04:00
Yotam Mann
9e8bd8a234 JSHint + JSDoc started 2014-06-15 17:38:59 -04:00
Yotam Mann
046a5b9142 Signal can be synced to another signal 2014-06-14 19:11:37 -04:00
Yotam Mann
0643cdd765 scale takes an input min/max
removed normalize and subtract.
2014-04-16 19:56:18 -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
85e0201371 integrated Transport and musical timing for all methods that take times 2014-04-11 19:17:01 -04:00
Yotam Mann
84eb56c19d pass through node. just because 2014-04-06 23:57:32 -04:00
Yotam Mann
7fe5c47b8a major rename. sorry again. 2014-04-06 16:51:30 -04:00