Yotam Mann
e1652b8c20
releaseAll uses multiple triggerRelease instead of directly scheduling the voice
...
seems to cause fewer issues with held notes
2019-08-12 14:15:10 -04:00
Yotam Mann
150e8be0d3
cleaning up
2019-08-12 13:33:18 -04:00
Yotam Mann
5b3df95487
warning when max polyphony is exceeded
2019-08-12 13:21:55 -04:00
Yotam Mann
4f3e8e233f
removing voice-stealing
...
adds too much complixity for now in terms of scheduling into the future. Using setTimeout for scheduling notes into the future. keeps track of active notes better with this type of scheduling.
2019-08-12 13:18:18 -04:00
Yotam Mann
e7c429f4ec
adding back envelope
...
getLevelAtTime was used for the portamento
2019-08-12 00:21:34 -04:00
Yotam Mann
c81364610c
converting polysynth to typescript
...
slightly updated API includes voice stealing
2019-08-12 00:16:03 -04:00
Yotam Mann
72e877ff67
hooking up onsilence
2019-08-12 00:13:52 -04:00
Yotam Mann
8b295c32de
removing getLevelAtTime
...
replaced by onsilence which is used to find when the instrument is making sound
2019-08-12 00:13:13 -04:00
Yotam Mann
b94be3cdc4
moving object creation to constructor body
...
more consistent style
2019-08-09 23:06:30 -04:00
Yotam Mann
38d6f9d242
optimization by moving child objects into constructor
...
means that in many cases the param won't be assigned twice
2019-08-08 14:15:56 -04:00
Yotam Mann
0f1218b69e
updating docs
2019-08-04 13:12:23 -04:00
Yotam Mann
56db8b3a7a
simplifying _internalChannels
...
channelCount/Mode/Interpretation check the input/output nodes, which removes the need for many classes to have _internalChannels
2019-08-03 12:00:14 -04:00
Yotam Mann
b81310f107
doesn't need to set numberOfOutputs
2019-08-02 21:50:04 -04:00
Yotam Mann
52bcac2599
setting name to readonly
2019-08-02 21:09:35 -04:00
Yotam Mann
1792ff1d05
merging functionality from 'dev'
...
changes were made to .js files which are no longer there. moving functionality to .ts files
2019-08-02 13:56:51 -04:00
Yotam Mann
22396a8942
Merge branch 'dev' into typescript
2019-08-02 13:52:11 -04:00
Yotam Mann
d20f6e8fe9
Releases all held notes
...
thanks @lidiovargas! i ended up going with something more similar to your first solution. just removing the arrow function to fix the linting error
2019-08-02 10:43:31 -04:00
Lidio Vargas
82a9b54de1
Fixing sustained notes on Tone.Sampler (travis checked)
2019-08-01 21:00:05 -03:00
Lidio Vargas
f0febbdade
Fixing sustained notes on Tone.Sampler (passing test)
2019-08-01 20:32:24 -03:00
Yotam Mann
e97ea7d5df
better type checking for sampler url parameters
2019-07-30 15:53:10 -04:00
Yotam Mann
6e5e8b3399
using specific types
...
importing them so there are not multiple import type errors
2019-07-30 15:35:27 -04:00
Lidio Vargas
65098a0229
Fixing released-sustained notes on Tone.Sampler
2019-07-28 14:01:50 -03:00
Yotam Mann
bfc3d7ed15
toMaster() -> toDestination()
...
more consistent with the Web Audio API
2019-07-25 11:32:56 -04:00
Yotam Mann
9a49c873df
exporting modules from main entry
2019-07-25 11:29:36 -04:00
Yotam Mann
ffad8c1475
confirm that an instance was disposed
...
implement Tone.prototype.dispose which flips a boolean wasDisposed.
2019-07-23 12:11:57 -04:00
Yotam Mann
63cce0d48a
converting Sampler to ts
2019-07-22 16:18:16 -04:00
Yotam Mann
9f14b53d26
moving input definition to Instrument
2019-07-22 16:16:13 -04:00
Yotam Mann
cd0ab3ae10
only relative paths
2019-07-19 13:26:38 -04:00
Yotam Mann
45622f1418
omit context from child classes
2019-07-19 13:21:02 -04:00
Yotam Mann
b9dd8440b7
using OscillatorInterface to define all the oscilator properties
2019-07-19 12:32:17 -04:00
Yotam Mann
60736135f3
updating docs
2019-07-18 14:57:13 -04:00
Yotam Mann
e2d505c6fd
only relative paths
2019-07-18 14:54:20 -04:00
Yotam Mann
b3ab8e88ff
exporting instruments
2019-07-18 14:48:02 -04:00
Yotam Mann
f69666fe07
converting Synth to typescript
2019-07-18 14:07:25 -04:00
tambien
755aae326f
removing unused import
2019-03-25 22:17:13 -07:00
Vasilii Smirnov
cd7b4c7fed
Fixed 'notes' parameter in Sampler methods to point that several notes can be played. ( #457 )
2019-03-11 19:38:29 -04:00
tambien
ff371dfd69
converting arg to time
2019-03-09 17:52:03 -05:00
tambien
5212d76223
removing logging
2019-02-01 12:16:49 -05:00
tambien
ddb9f8b4d8
sampler should throw error if there are no available notes to play
...
before failed silently
2019-02-01 12:01:35 -05:00
tambien
d957aad613
Documenting next parameters
...
fixes #433
[skip ci]
2019-01-31 19:20:45 -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
be077fb59c
can pass in oscillator options to constructor
2019-01-09 23:19:56 -05:00
tambien
e5179c76c5
setting initial frequency
...
just for the visual effect in tonejs-ui
2019-01-08 20:24:24 -05:00
tambien
72536e5673
voices are chosen based on minimum value after the given time
...
fixes #415
2018-12-26 12:39:37 -05:00
tambien
2cb0d67b67
checking if activeSources still exists before trying to remove elements
...
fixes #409
2018-12-16 13:26:28 -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
15755701f9
linting
2018-08-06 23:32:21 -04:00
Yotam Mann
f09b5d0372
Merge branch 'dev' of https://github.com/Tonejs/Tone.js into dev
2018-07-30 22:57:09 -04:00
tambien
9edafa8be4
removing source when sample has finished
...
prevents error where the BufferSource.stop is attempted after the source has already finished
2018-07-29 09:28:45 -04:00
Yotam Mann
ea218c2921
adding logging
2018-06-20 23:12:17 -04:00