@thi.ng/dsp 4.0.7 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +217 -112
- package/README.md +1 -1
- package/delay.js +2 -2
- package/dev/fftjs.js +512 -0
- package/fft.js +1 -1
- package/filter-response.js +1 -1
- package/internal/take.js +1 -1
- package/package.json +272 -267
- package/power.js +4 -4
- package/window.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,140 +1,245 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
## [4.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@4.0.6...@thi.ng/dsp@4.0.7) (2021-11-03)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @thi.ng/dsp
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
# [4.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@3.0.31...@thi.ng/dsp@4.0.0) (2021-10-12)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
### Build System
|
|
18
|
-
|
|
19
|
-
* major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
### Features
|
|
23
|
-
|
|
24
|
-
* **dsp:** restructure/flatten /src folder, add ops ([c001e6f](https://github.com/thi-ng/umbrella/commit/c001e6f86bcb132323bde974a23cf1e69421142f))
|
|
25
|
-
|
|
3
|
+
- **Last updated**: 2021-11-21T17:09:28Z
|
|
4
|
+
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
26
5
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
- UMD obsolete due to widespread browser support for ESM
|
|
43
|
-
|
|
44
|
-
Also:
|
|
45
|
-
- normalize/restructure/reorg all package.json files
|
|
46
|
-
- cleanup all build scripts, remove obsolete
|
|
47
|
-
- switch from mocha to @thi.ng/testament for all tests
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
# [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/dsp@2.1.5...@thi.ng/dsp@3.0.0) (2020-12-22)
|
|
55
|
-
|
|
56
|
-
### Code Refactoring
|
|
6
|
+
All notable changes to this project will be documented in this file.
|
|
7
|
+
See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
|
|
8
|
+
|
|
9
|
+
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
10
|
+
and/or version bumps of transitive dependencies.
|
|
11
|
+
|
|
12
|
+
## [4.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@4.1.0) (2021-11-17)
|
|
13
|
+
|
|
14
|
+
#### 🚀 Features
|
|
15
|
+
|
|
16
|
+
- Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
|
|
17
|
+
Improving the overall build ergonomics
|
|
18
|
+
- introduced a tools workspaces
|
|
19
|
+
- imported it in all needed packages/examples
|
|
20
|
+
- inclusive project root
|
|
57
21
|
|
|
58
|
-
|
|
22
|
+
#### ♻️ Refactoring
|
|
59
23
|
|
|
60
|
-
|
|
24
|
+
- testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
|
|
25
|
+
this commit reverts (partly) changes made in:
|
|
26
|
+
ef346d7a8753590dc9094108a3d861a8dbd5dd2c
|
|
27
|
+
overall purpose is better testament ergonomics:
|
|
28
|
+
instead of having to pass NODE_OPTIONS with every invocation
|
|
29
|
+
having a binary to handle this for us.
|
|
61
30
|
|
|
62
|
-
|
|
63
|
-
- **dsp:** add cos() stateless oscillator ([276c6b7](https://github.com/thi-ng/umbrella/commit/276c6b76a6b69498f3b37c94fc34c4915b95b9b6))
|
|
64
|
-
- **dsp:** add power & integral fns ([88edaac](https://github.com/thi-ng/umbrella/commit/88edaac0b93fb811738cbfd06d41063d8c4b9aff))
|
|
65
|
-
- **dsp:** add windowWelch(), add docs ([84cd476](https://github.com/thi-ng/umbrella/commit/84cd4763a2a897d6b15b21b680fe2c8bd15c9d4a))
|
|
66
|
-
- **dsp:** add/update power & integral fns ([f455fad](https://github.com/thi-ng/umbrella/commit/f455fad649394cd386839d983d8ae25895f9f1a2))
|
|
67
|
-
- **dsp:** add/update various FFT & spectrum fns (fix [#258](https://github.com/thi-ng/umbrella/issues/258)) ([e351acb](https://github.com/thi-ng/umbrella/commit/e351acb98b1c776a6c8efe9ba910c2ec3b2df831))
|
|
31
|
+
### [4.0.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@4.0.8) (2021-11-10)
|
|
68
32
|
|
|
69
|
-
|
|
33
|
+
#### ♻️ Refactoring
|
|
70
34
|
|
|
71
|
-
-
|
|
72
|
-
- FilterType
|
|
73
|
-
- BiquadType
|
|
74
|
-
- SVFType
|
|
75
|
-
- OnepoleType
|
|
76
|
-
- **dsp:** new args for normalizeFFT(),denormalizeFFT(), spectrumPow()
|
|
77
|
-
- add support for windowing adjustments in above functions
|
|
78
|
-
- add thresholdFFT()
|
|
79
|
-
- add copyComplex()
|
|
80
|
-
- update various real/complex checks using isComplex()
|
|
81
|
-
- update docs, add references
|
|
35
|
+
- update all countdown loops ([a5f374b](https://github.com/thi-ng/umbrella/commit/a5f374b))
|
|
82
36
|
|
|
83
|
-
|
|
37
|
+
### [4.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@4.0.1) (2021-10-13)
|
|
84
38
|
|
|
85
|
-
|
|
39
|
+
#### ♻️ Refactoring
|
|
86
40
|
|
|
87
|
-
-
|
|
41
|
+
- update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
|
|
42
|
+
- update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
|
|
43
|
+
- add .js suffix for all relative imports
|
|
88
44
|
|
|
89
|
-
#
|
|
45
|
+
# [4.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@4.0.0) (2021-10-12)
|
|
90
46
|
|
|
91
|
-
|
|
47
|
+
#### 🛑 Breaking changes
|
|
92
48
|
|
|
93
|
-
-
|
|
49
|
+
- restructure/flatten /src folder, add ops ([c001e6f](https://github.com/thi-ng/umbrella/commit/c001e6f))
|
|
50
|
+
- BREAKING CHANGE: restructure pkg, add/rename ops
|
|
51
|
+
- dissolve all subfolders
|
|
52
|
+
- add bounce()
|
|
53
|
+
- rename `compP()` => `serial()`
|
|
54
|
+
- add docs
|
|
55
|
+
- major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
|
|
56
|
+
- BREAKING CHANGE: discontinue CommonJS & UMD versions
|
|
57
|
+
- only ESM modules will be published from now on
|
|
58
|
+
- CJS obsolete due to ESM support in recent versions of node:
|
|
59
|
+
- i.e. launch NodeJS via:
|
|
60
|
+
- `node --experimental-specifier-resolution=node --experimental-repl-await`
|
|
61
|
+
- in the node REPL use `await import(...)` instead of `require()`
|
|
62
|
+
- UMD obsolete due to widespread browser support for ESM
|
|
63
|
+
Also:
|
|
64
|
+
- normalize/restructure/reorg all package.json files
|
|
65
|
+
- cleanup all build scripts, remove obsolete
|
|
66
|
+
- switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
|
|
94
67
|
|
|
95
|
-
|
|
68
|
+
#### ♻️ Refactoring
|
|
96
69
|
|
|
97
|
-
-
|
|
98
|
-
-
|
|
99
|
-
-
|
|
100
|
-
-
|
|
101
|
-
-
|
|
102
|
-
- **dsp:** add missing factory fns, update docstrings ([3ede5af](https://github.com/thi-ng/umbrella/commit/3ede5af1c85564a4aa974f3a77c18a12f3bb6073))
|
|
103
|
-
- **dsp:** add new operators ([68a88e4](https://github.com/thi-ng/umbrella/commit/68a88e4774979ef1a81149dd233324cdbc8b3787))
|
|
104
|
-
- **dsp:** add sweep(), move curve(), minor refactor ([0b24d80](https://github.com/thi-ng/umbrella/commit/0b24d8035d8da716f14644c76b7768ba75b84189))
|
|
105
|
-
- **dsp:** add/rename oscillators ([8a826bf](https://github.com/thi-ng/umbrella/commit/8a826bf0f0ead26e7da52ef79c911290942c80fb))
|
|
106
|
-
- **dsp:** add/update FFT fns, test, update docs ([1ac9508](https://github.com/thi-ng/umbrella/commit/1ac95080da1da7d07212dcc65a1d97917c644d7f))
|
|
107
|
-
- **dsp:** add/update filters, filter resp, delay ([2854b09](https://github.com/thi-ng/umbrella/commit/2854b096fdbe05f05b542c87a80bf08bb2b14ffe))
|
|
108
|
-
- **dsp:** import gen & proc nodes, general pkg restructure ([a85c3cf](https://github.com/thi-ng/umbrella/commit/a85c3cf3c80c3714637fc4f3410742a88356f78f))
|
|
109
|
-
- **dsp:** update ADSR, add ADSROpts, auto-release ([16f41ec](https://github.com/thi-ng/umbrella/commit/16f41ec4a60ea80ee9e544641f034491b7814754))
|
|
110
|
-
- **dsp:** update all gens/procs, housekeeping, docs ([e483245](https://github.com/thi-ng/umbrella/commit/e483245d48b8ae0c74d93d1f2f2270a2379c642b))
|
|
111
|
-
- **dsp:** update DelayLine ctor, freqBin, update pkg ([228a81e](https://github.com/thi-ng/umbrella/commit/228a81e951203e4e215de825d2474ec302290727))
|
|
112
|
-
- **dsp:** update gens to support clamping ([fe8f6f3](https://github.com/thi-ng/umbrella/commit/fe8f6f347b9a9a618cfd30b95739f9400cc197d6))
|
|
70
|
+
- dedupe IGen.take() impls ([55ba0f9](https://github.com/thi-ng/umbrella/commit/55ba0f9))
|
|
71
|
+
- update imports (transducers) ([6e7bf71](https://github.com/thi-ng/umbrella/commit/6e7bf71))
|
|
72
|
+
- update imports ([02f1cf7](https://github.com/thi-ng/umbrella/commit/02f1cf7))
|
|
73
|
+
- update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
|
|
74
|
+
- update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
|
|
113
75
|
|
|
114
|
-
|
|
76
|
+
# [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@3.0.0) (2020-12-22)
|
|
115
77
|
|
|
116
|
-
|
|
78
|
+
#### 🛑 Breaking changes
|
|
117
79
|
|
|
118
|
-
|
|
80
|
+
- fix [#256](https://github.com/thi-ng/umbrella/issues/256) replace enums w/ type aliases ([b9cfacb](https://github.com/thi-ng/umbrella/commit/b9cfacb))
|
|
81
|
+
- BREAKING CHANGE: replace filter type enums w/ type aliases
|
|
82
|
+
- FilterType
|
|
83
|
+
- BiquadType
|
|
84
|
+
- SVFType
|
|
85
|
+
- OnepoleType
|
|
86
|
+
- add/update various FFT & spectrum fns (fix [#258](https://github.com/thi-ng/umbrella/issues/258)) ([e351acb](https://github.com/thi-ng/umbrella/commit/e351acb))
|
|
87
|
+
- BREAKING CHANGE: new args for normalizeFFT(),denormalizeFFT(), spectrumPow()
|
|
88
|
+
- add support for windowing adjustments in above functions
|
|
89
|
+
- add thresholdFFT()
|
|
90
|
+
- add copyComplex()
|
|
91
|
+
- update various real/complex checks using isComplex()
|
|
92
|
+
- update docs, add references
|
|
93
|
+
|
|
94
|
+
#### 🚀 Features
|
|
95
|
+
|
|
96
|
+
- add windowWelch(), add docs ([84cd476](https://github.com/thi-ng/umbrella/commit/84cd476))
|
|
97
|
+
- add/update power & integral fns ([f455fad](https://github.com/thi-ng/umbrella/commit/f455fad))
|
|
98
|
+
- add applyWindow(), windowBartlett() ([d51a17c](https://github.com/thi-ng/umbrella/commit/d51a17c))
|
|
99
|
+
- add cos() stateless oscillator ([276c6b7](https://github.com/thi-ng/umbrella/commit/276c6b7))
|
|
100
|
+
- add power & integral fns ([88edaac](https://github.com/thi-ng/umbrella/commit/88edaac))
|
|
101
|
+
- add power functions:
|
|
102
|
+
- powerSumSquared()
|
|
103
|
+
- powerMeanSquared()
|
|
104
|
+
- powerTimeIntegral()
|
|
105
|
+
- add integralF/T()
|
|
106
|
+
- add isComplex() check
|
|
107
|
+
|
|
108
|
+
#### ♻️ Refactoring
|
|
109
|
+
|
|
110
|
+
- update spectrumPow() arg order ([be1b615](https://github.com/thi-ng/umbrella/commit/be1b615))
|
|
111
|
+
- swap `window` & `n` args, since `window` more likely to be provided
|
|
112
|
+
|
|
113
|
+
### [2.1.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@2.1.5) (2020-12-07)
|
|
114
|
+
|
|
115
|
+
#### ♻️ Refactoring
|
|
116
|
+
|
|
117
|
+
- update type-only imports in remaining pkgs ([b22aa30](https://github.com/thi-ng/umbrella/commit/b22aa30))
|
|
118
|
+
- update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
|
|
119
|
+
|
|
120
|
+
### [2.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@2.1.1) (2020-09-13)
|
|
121
|
+
|
|
122
|
+
#### ♻️ Refactoring
|
|
123
|
+
|
|
124
|
+
- update imports ([28bfb3c](https://github.com/thi-ng/umbrella/commit/28bfb3c))
|
|
125
|
+
- update deps, imports, use new Fn types ([683b4e9](https://github.com/thi-ng/umbrella/commit/683b4e9))
|
|
126
|
+
|
|
127
|
+
## [2.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@2.1.0) (2020-08-28)
|
|
128
|
+
|
|
129
|
+
#### 🚀 Features
|
|
130
|
+
|
|
131
|
+
- add iterable() wrapper ([94fb8ed](https://github.com/thi-ng/umbrella/commit/94fb8ed))
|
|
132
|
+
|
|
133
|
+
### [2.0.8](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@2.0.8) (2020-04-05)
|
|
134
|
+
|
|
135
|
+
#### ♻️ Refactoring
|
|
136
|
+
|
|
137
|
+
- switch to non-const enums ([8350c0e](https://github.com/thi-ng/umbrella/commit/8350c0e))
|
|
138
|
+
|
|
139
|
+
### [2.0.2](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@2.0.2) (2020-02-25)
|
|
140
|
+
|
|
141
|
+
#### ♻️ Refactoring
|
|
142
|
+
|
|
143
|
+
- update imports, internal restruct ([7872146](https://github.com/thi-ng/umbrella/commit/7872146))
|
|
144
|
+
|
|
145
|
+
# [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@2.0.0) (2020-01-24)
|
|
146
|
+
|
|
147
|
+
#### 🛑 Breaking changes
|
|
148
|
+
|
|
149
|
+
- remove obsolete classes ([aa24c1e](https://github.com/thi-ng/umbrella/commit/aa24c1e))
|
|
150
|
+
- BREAKING CHANGE: remove obsolete Oscillator/AMFMOscillator
|
|
151
|
+
(superceded by osc()/modOsc())
|
|
152
|
+
|
|
153
|
+
#### 🚀 Features
|
|
154
|
+
|
|
155
|
+
- update ADSR, add ADSROpts, auto-release ([16f41ec](https://github.com/thi-ng/umbrella/commit/16f41ec))
|
|
156
|
+
- update gens to support clamping ([fe8f6f3](https://github.com/thi-ng/umbrella/commit/fe8f6f3))
|
|
157
|
+
- add opt clamping for add, mul, madd
|
|
158
|
+
- update curve, line and sweep
|
|
159
|
+
- add sweep(), move curve(), minor refactor ([0b24d80](https://github.com/thi-ng/umbrella/commit/0b24d80))
|
|
160
|
+
- add gen/proc composition ops, restructure ([8be2a5f](https://github.com/thi-ng/umbrella/commit/8be2a5f))
|
|
161
|
+
- move all composition ops to own subdir
|
|
162
|
+
- add `compP`, `multiplex`, `pipe` IProc composition
|
|
163
|
+
- add `IXform` impl for `AProc` to allow for direct use as transducer
|
|
164
|
+
- add/update `IReset` impls (re-use type from [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api))
|
|
165
|
+
- add missing factory fns, update docstrings ([3ede5af](https://github.com/thi-ng/umbrella/commit/3ede5af))
|
|
166
|
+
- add/rename oscillators ([8a826bf](https://github.com/thi-ng/umbrella/commit/8a826bf))
|
|
167
|
+
- add HOF versions for:
|
|
168
|
+
- dsfHOF
|
|
169
|
+
- mixOscHOF
|
|
170
|
+
- rectHOF
|
|
171
|
+
- rename comb => parabolic
|
|
172
|
+
- update all gens/procs, housekeeping, docs ([e483245](https://github.com/thi-ng/umbrella/commit/e483245))
|
|
173
|
+
- add param accessors for all ops
|
|
174
|
+
- add IReset & impls for most gens/procs
|
|
175
|
+
- add Delay.multiTap()
|
|
176
|
+
- replace exp() w/ curve(), add curvature ctrl
|
|
177
|
+
- remove lfo(), wrapAround, ATwoPole/AllPass2
|
|
178
|
+
- add new operators ([68a88e4](https://github.com/thi-ng/umbrella/commit/68a88e4))
|
|
179
|
+
Generators:
|
|
180
|
+
- ADSR
|
|
181
|
+
- SinCos (replaces old lfo())
|
|
182
|
+
- PinkNoise
|
|
183
|
+
- WhiteNoise
|
|
184
|
+
Processors:
|
|
185
|
+
- Foldback
|
|
186
|
+
- Mix
|
|
187
|
+
- WaveShaper
|
|
188
|
+
Oscillators:
|
|
189
|
+
- Discrete Summation (DSF, stateless)
|
|
190
|
+
- add/update filters, filter resp, delay ([2854b09](https://github.com/thi-ng/umbrella/commit/2854b09))
|
|
191
|
+
- add/optimize Biquad & SVF impls
|
|
192
|
+
- add DCBlocker
|
|
193
|
+
- add FeedbackDelay
|
|
194
|
+
- add filter response types & utils
|
|
195
|
+
- add/rename conversion fns
|
|
196
|
+
- add filters, refactor, update pkg/docs/readme ([7758609](https://github.com/thi-ng/umbrella/commit/7758609))
|
|
197
|
+
- add AllPass1/2 filters
|
|
198
|
+
- add abstract ATwoPole class
|
|
199
|
+
- fix OnePole HPF impl
|
|
200
|
+
- update protected field names
|
|
201
|
+
- import gen & proc nodes, general pkg restructure ([a85c3cf](https://github.com/thi-ng/umbrella/commit/a85c3cf))
|
|
202
|
+
- update DelayLine ctor, freqBin, update pkg ([228a81e](https://github.com/thi-ng/umbrella/commit/228a81e))
|
|
203
|
+
- add DelayLine ([bd25cd7](https://github.com/thi-ng/umbrella/commit/bd25cd7))
|
|
204
|
+
- add LFO sin/cos iterator/osc, minor refactor window fns ([dc89204](https://github.com/thi-ng/umbrella/commit/dc89204))
|
|
205
|
+
- add/update FFT fns, test, update docs ([1ac9508](https://github.com/thi-ng/umbrella/commit/1ac9508))
|
|
206
|
+
- add fft, spectrum and window fns, add tests ([f918af4](https://github.com/thi-ng/umbrella/commit/f918af4))
|
|
119
207
|
|
|
120
|
-
|
|
208
|
+
#### ♻️ Refactoring
|
|
121
209
|
|
|
122
|
-
-
|
|
210
|
+
- restructure oscillators, fft, window, update gen-diagrams ([9efd69f](https://github.com/thi-ng/umbrella/commit/9efd69f))
|
|
211
|
+
- rename compG => mapG ([95244dd](https://github.com/thi-ng/umbrella/commit/95244dd))
|
|
212
|
+
- update/rename DelayLine => Delay ([ec0e521](https://github.com/thi-ng/umbrella/commit/ec0e521))
|
|
213
|
+
- update Delay to impl `IProc` interface
|
|
214
|
+
- add `IClear` impls for all current IProc impls
|
|
215
|
+
- various minor additions, updates, renames, docs ([e5e1a22](https://github.com/thi-ng/umbrella/commit/e5e1a22))
|
|
123
216
|
|
|
124
|
-
|
|
217
|
+
### [1.0.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@1.0.10) (2019-04-26)
|
|
125
218
|
|
|
126
|
-
|
|
219
|
+
#### 🩹 Bug fixes
|
|
220
|
+
|
|
221
|
+
- fix tri() oscillator for negative phases ([c67c733](https://github.com/thi-ng/umbrella/commit/c67c733))
|
|
222
|
+
|
|
223
|
+
### [1.0.4](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@1.0.4) (2019-03-10)
|
|
224
|
+
|
|
225
|
+
#### ♻️ Refactoring
|
|
226
|
+
|
|
227
|
+
- update Fn args in various packages ([e453ac3](https://github.com/thi-ng/umbrella/commit/e453ac3))
|
|
228
|
+
|
|
229
|
+
# [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@1.0.0) (2019-01-21)
|
|
230
|
+
|
|
231
|
+
#### 🛑 Breaking changes
|
|
127
232
|
|
|
128
233
|
- update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
|
|
234
|
+
- BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
|
|
235
|
+
- build scripts now first build ES6 modules in package root, then call
|
|
236
|
+
`scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
237
|
+
- all imports MUST be updated to only refer to package level
|
|
238
|
+
(not individual files anymore). tree shaking in user land will get rid of
|
|
239
|
+
all unused imported symbols.
|
|
129
240
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
- enabled multi-outputs (ES6 modules, CJS, UMD)
|
|
133
|
-
- build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
|
|
134
|
-
- all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
|
|
135
|
-
|
|
136
|
-
# 0.1.0 (2018-10-17)
|
|
241
|
+
## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/dsp@0.1.0) (2018-10-17)
|
|
137
242
|
|
|
138
|
-
|
|
243
|
+
#### 🚀 Features
|
|
139
244
|
|
|
140
|
-
-
|
|
245
|
+
- add oscillators as [@thi.ng/dsp](https://github.com/thi-ng/umbrella/tree/main/packages/dsp) package (from synstack / VEX) ([889730f](https://github.com/thi-ng/umbrella/commit/889730f))
|
package/README.md
CHANGED
package/delay.js
CHANGED
|
@@ -41,7 +41,7 @@ export class Delay extends AProc {
|
|
|
41
41
|
clear() {
|
|
42
42
|
const { _buf, _empty } = this;
|
|
43
43
|
if (isFunction(_empty)) {
|
|
44
|
-
for (let i = _buf.length; --
|
|
44
|
+
for (let i = _buf.length; i-- > 0;) {
|
|
45
45
|
this._buf[i] = _empty();
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -80,7 +80,7 @@ export class Delay extends AProc {
|
|
|
80
80
|
* returns it.
|
|
81
81
|
*/
|
|
82
82
|
multiTap(t, out = []) {
|
|
83
|
-
for (let i = t.length; --
|
|
83
|
+
for (let i = t.length; i-- > 0;) {
|
|
84
84
|
out[i] = this.tap(t[i]);
|
|
85
85
|
}
|
|
86
86
|
return out;
|