Skip to content

Commit 72a83d0

Browse files
committed
Add license
1 parent f3b5fe7 commit 72a83d0

File tree

2 files changed

+30
-11
lines changed

2 files changed

+30
-11
lines changed

LICENSE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
MIT License
2+
3+
Copyright (c) window-function contributors
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+
23+
---
24+
25+
Krishnized License (https://github.com/krishnized/license)
26+
27+
This work is also offered as seva (selfless service) under the Krishnized License.
28+
All results of this work are offered to Krishna.

README.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# window-function [![test](https://github.com/audiojs/window-function/actions/workflows/test.yml/badge.svg)](https://github.com/audiojs/window-function/actions/workflows/test.yml) [![npm](https://img.shields.io/npm/v/window-function)](https://www.npmjs.com/package/window-function)
1+
# window-function [![test](https://github.com/audiojs/window-function/actions/workflows/test.yml/badge.svg)](https://github.com/audiojs/window-function/actions/workflows/test.yml) [![npm](https://img.shields.io/npm/v/window-function)](https://www.npmjs.com/package/window-function) [![license](https://img.shields.io/badge/license-MIT%20%C2%B7%20%E0%A5%90-white)](https://github.com/krishnized/license)
22

33
Collection of window functions for signal processing and spectral analysis.
44

@@ -475,19 +475,10 @@ cola(hann, 1024, 512) // 0 — perfect STFT reconstruction
475475
- **`scallopLoss(fn, N, ...params)`** — worst-case amplitude error in dB between DFT bins. Rectangular = 3.92, Hann = 1.42, flat-top ≈ 0.
476476
- **`cola(fn, N, hop, ...params)`** — COLA deviation. 0 = perfect STFT reconstruction at given hop size.
477477

478-
## Migrating from v2
479-
480-
v3 is ESM-only — `require()` no longer works. 18 → 34 windows, subpath imports preserved.
481-
482-
```diff
483-
- const hann = require('window-function/hann')
484-
- const apply = require('window-function/apply')
485-
+ import hann from 'window-function/hann'
486-
+ import { generate, apply } from 'window-function/util'
487-
```
488478

489479
The per-sample API `fn(i, N, ...params) → number` is unchanged.
490480

481+
491482
[^dolph1946]: C.L. Dolph, "A Current Distribution for Broadside Arrays," *Proc. IRE* 34, 1946.
492483
[^gabor1946]: D. Gabor, "Theory of Communication," *J. IEE* 93, 1946.
493484
[^bartlett1950]: M.S. Bartlett, "Periodogram Analysis and Continuous Spectra," *Biometrika* 37, 1950.

0 commit comments

Comments
 (0)