Commit graph

49 commits

Author SHA1 Message Date
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
3d1202043a all modules are relative paths
simplifies deep references to individual files
2018-08-26 22:29:17 -04:00
Yotam Mann
65f166570b Sources call 'restart' method if already started when 'start' is invoked 2018-02-08 11:10:53 -05:00
Yotam Mann
fd84c251f7 eslinting 2018-01-03 12:07:06 -05:00
Yotam Mann
cb2a982c39 linting 2017-10-21 19:02:46 -04:00
Yotam Mann
59a276d8fe including lookAhead in now() removes need for adding blockTime to reduce clicks 2017-05-28 21:52: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
2030034494 sources to new defaults api
and es6 classes prep
2017-04-26 00:00:01 -04:00
Yotam Mann
5a772466ae 3 new oscillator types
and combined them into the OmniOscillator
2016-01-17 22:43:44 -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
4c3cf0d8fc handling partials member for other oscillator types 2015-11-17 22:51:10 -05:00
Yotam Mann
054662e033 accept phase in constructor 2015-08-21 17:04:29 -04:00
Yotam Mann
50d34c0ade using Error instead of TypeError 2015-08-16 15:16:26 -04:00
Yotam Mann
17f5e8bb8e delays are offset only 1 block now. 2015-07-21 11:22:36 -04:00
Yotam Mann
caddec650f doc'ing sources
mergine @polyrhythmatic changes
2015-07-04 12:43:21 -04:00
Yotam Mann
4e9cb3ce1e doc'ing 2015-06-20 15:50:57 -04:00
Yotam Mann
0877a4862c jsdoc'ing sources 2015-06-13 22:03:06 -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
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
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
Luke Phillips
237202c049 updated typescript definitions and fixed a few type errors 2015-03-07 19:17:16 +00:00
Yotam Mann
4e77c61638 JSDoc'ing sources 2015-02-27 11:19:45 -05:00
Yotam Mann
8f0fbe2de8 changing _onended callback 2015-02-23 00:29:49 -05:00
Yotam Mann
50917ac49f migrating signals to ES5 getter/setters 2015-02-06 17:47:26 -05:00
Yotam Mann
914123b9d1 using only ES5 getter/setters
replacing old getThing and setThing starting with Oscillators
2015-02-03 23:48:47 -05:00
Yotam Mann
362afb32eb returning to public dispose method 2015-02-01 22:05:24 -05:00
Yotam Mann
7d30c7784b moving state management to Source 2015-02-01 21:32:07 -05:00
Yotam Mann
e96fb08c44 moved onended in Tone.Source 2015-02-01 20:38:06 -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
251a1e02a5 phase get/set for each of the extended oscillators 2015-02-01 15:47:31 -05:00
Yotam Mann
9eee63459a all sources return this
good for chaining methods
2015-02-01 14:40:47 -05:00
Yotam Mann
b6875955e4 add type getter/setter 2015-02-01 13:32:39 -05:00
Yotam Mann
cd31d02048 jsdoc'ing 2014-12-03 21:38:24 -05:00
Yotam Mann
9f827a8dad short delay to avoid clicks on change OmniOsc type 2014-10-16 14:52:08 -04:00
Yotam Mann
a4cc79cfde stopped state doesn't wait for on ended event
the oneneded event is inconsistent when the source is not connected
directly to Master (such as in the case of an LFO).

Fixes #34
2014-10-08 11:59:31 -04:00
Yotam Mann
7972f0db34 Pulse, PWM, and Omni extend Oscillator 2014-10-03 16:07:30 -04:00
Yotam Mann
2daa8c64ad Oscillators inherit Tone.Oscillator setFrequency 2014-10-03 15:16:32 -04:00
Yotam Mann
02c21fed73 switches types without a pop 2014-10-03 01:00:37 -04:00
Yotam Mann
452983920f using OmniOscType enum type 2014-09-30 22:48:21 -04:00
Yotam Mann
18bab7da59 setters and options objects for Sources
Fixes #27
2014-09-30 00:28:48 -04:00
Yotam Mann
23128469ca combination oscillator class 2014-09-29 23:44:59 -04:00