sonore 0.3.0__tar.gz
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.
- sonore-0.3.0/.gitignore +9 -0
- sonore-0.3.0/CHANGELOG.md +46 -0
- sonore-0.3.0/CITATION.cff +14 -0
- sonore-0.3.0/LICENSE +21 -0
- sonore-0.3.0/PKG-INFO +561 -0
- sonore-0.3.0/README.md +516 -0
- sonore-0.3.0/pyproject.toml +73 -0
- sonore-0.3.0/src/sonore/__init__.py +194 -0
- sonore-0.3.0/src/sonore/analysis/__init__.py +5 -0
- sonore-0.3.0/src/sonore/analysis/cepstrum.py +198 -0
- sonore-0.3.0/src/sonore/analysis/envelopes.py +371 -0
- sonore-0.3.0/src/sonore/analysis/filterbank.py +501 -0
- sonore-0.3.0/src/sonore/analysis/frames.py +652 -0
- sonore-0.3.0/src/sonore/analysis/modulation.py +122 -0
- sonore-0.3.0/src/sonore/analysis/representations.py +541 -0
- sonore-0.3.0/src/sonore/core/__init__.py +4 -0
- sonore-0.3.0/src/sonore/core/sound.py +389 -0
- sonore-0.3.0/src/sonore/core/units.py +86 -0
- sonore-0.3.0/src/sonore/core/utils.py +66 -0
- sonore-0.3.0/src/sonore/data/fit_DRR.npy +0 -0
- sonore-0.3.0/src/sonore/data/fit_RT60.npy +0 -0
- sonore-0.3.0/src/sonore/data/fit_freqs.npy +0 -0
- sonore-0.3.0/src/sonore/plotting.py +374 -0
- sonore-0.3.0/src/sonore/signals/__init__.py +5 -0
- sonore-0.3.0/src/sonore/signals/generators.py +287 -0
- sonore-0.3.0/src/sonore/signals/processing.py +109 -0
- sonore-0.3.0/src/sonore/stimuli/__init__.py +5 -0
- sonore-0.3.0/src/sonore/stimuli/binaural.py +189 -0
- sonore-0.3.0/src/sonore/stimuli/hrir_data.py +164 -0
- sonore-0.3.0/src/sonore/stimuli/phasevocoder.py +222 -0
- sonore-0.3.0/src/sonore/stimuli/reverb.py +193 -0
- sonore-0.3.0/src/sonore/stimuli/ripples.py +378 -0
- sonore-0.3.0/src/sonore/stimuli/spatialization.py +301 -0
- sonore-0.3.0/src/sonore/texture/__init__.py +25 -0
- sonore-0.3.0/src/sonore/texture/grad.py +256 -0
- sonore-0.3.0/src/sonore/texture/stats.py +356 -0
- sonore-0.3.0/src/sonore/texture/synth.py +354 -0
- sonore-0.3.0/tests/helpers.py +115 -0
- sonore-0.3.0/tests/test_binaural.py +47 -0
- sonore-0.3.0/tests/test_cepstrum.py +136 -0
- sonore-0.3.0/tests/test_circularity.py +101 -0
- sonore-0.3.0/tests/test_docs.py +112 -0
- sonore-0.3.0/tests/test_envelopes.py +119 -0
- sonore-0.3.0/tests/test_filterbank.py +177 -0
- sonore-0.3.0/tests/test_frames.py +541 -0
- sonore-0.3.0/tests/test_generators.py +59 -0
- sonore-0.3.0/tests/test_layers.py +89 -0
- sonore-0.3.0/tests/test_phasevocoder.py +83 -0
- sonore-0.3.0/tests/test_processing.py +26 -0
- sonore-0.3.0/tests/test_representations.py +140 -0
- sonore-0.3.0/tests/test_reverb.py +97 -0
- sonore-0.3.0/tests/test_ripples.py +116 -0
- sonore-0.3.0/tests/test_sound.py +121 -0
- sonore-0.3.0/tests/test_spatialization.py +205 -0
- sonore-0.3.0/tests/test_texture.py +107 -0
- sonore-0.3.0/tests/test_texture_grad.py +69 -0
- sonore-0.3.0/tests/test_texture_synth.py +132 -0
- sonore-0.3.0/tools/check_cepstrum_claims.py +246 -0
- sonore-0.3.0/tools/check_frames_step1_claims.py +180 -0
- sonore-0.3.0/tools/check_frames_step2_claims.py +289 -0
- sonore-0.3.0/tools/check_frames_step3_claims.py +307 -0
- sonore-0.3.0/tools/check_pku_ioa_sofa.py +126 -0
- sonore-0.3.0/tools/crosscheck_cepstrum.py +100 -0
- sonore-0.3.0/tools/crosscheck_texture_stats.py +59 -0
- sonore-0.3.0/tools/make_speech_f0.py +39 -0
- sonore-0.3.0/tools/make_texture_excerpts.py +55 -0
- sonore-0.3.0/tools/make_texture_synths.py +80 -0
- sonore-0.3.0/tools/texture_benchmark.py +88 -0
- sonore-0.3.0/tools/update_readme_source_links.py +87 -0
sonore-0.3.0/.gitignore
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Notable changes to sonore. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
4
|
+
Until 1.0, a minor version (0.x.0) may change import paths or behaviour; a patch
|
|
5
|
+
version (0.x.y) only fixes bugs.
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.3.0] - 2026-10-01
|
|
10
|
+
|
|
11
|
+
First release on PyPI.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
- `so.Cepstrum`: the real cepstrum of an `STFT` or `TVSTFT`, with liftering
|
|
15
|
+
(fixed or per-frame cutoff), the cepstral envelope, resynthesis with the
|
|
16
|
+
original or minimum phase, classic cepstral F0, and `plot`. Design and
|
|
17
|
+
numerical checks in `docs/design/cepstrum.md` and
|
|
18
|
+
`tools/check_cepstrum_claims.py`.
|
|
19
|
+
- `so.load_hrirs()` downloads the PKU-IOA HRIR database on first use (1 m by
|
|
20
|
+
default, any of its 8 distances on request), checks each file's SHA-256 and
|
|
21
|
+
caches it in `$SONORE_DATA_DIR` or the user cache directory. The SOFA copy it
|
|
22
|
+
downloads is mirrored left to right relative to the original `.dat` files;
|
|
23
|
+
the loader corrects it.
|
|
24
|
+
- `HRIRSet.concat` merges HRIR sets, e.g. one per distance.
|
|
25
|
+
- Continuous integration: tests and lint on Python 3.10 and 3.14 for every push
|
|
26
|
+
and pull request, plus a check that the PyPI files build and pass their tests.
|
|
27
|
+
- Release workflow publishing to TestPyPI and PyPI with trusted publishing
|
|
28
|
+
(see `docs/releasing.md`).
|
|
29
|
+
- Gallery pages of their own for seeing speech, a short course in time-frequency
|
|
30
|
+
analysis, and for sound textures. Each is a runnable script
|
|
31
|
+
(`docs/gallery/speech.py`, `docs/gallery/textures.py`) shown with every example's code.
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
- `HRIRSet.from_pku_ioa` also finds `.dat` files in subfolders, so the
|
|
35
|
+
database's own `dist*/elev*/` layout loads directly.
|
|
36
|
+
- The source distribution now holds the code, tests and tools only; the docs,
|
|
37
|
+
gallery and audio samples stay in the repository.
|
|
38
|
+
|
|
39
|
+
## [0.2.0] - 2026-09-29
|
|
40
|
+
|
|
41
|
+
Renamed to sonore, with the version kept in one place (`src/sonore/__init__.py`).
|
|
42
|
+
Not published to PyPI.
|
|
43
|
+
|
|
44
|
+
[Unreleased]: https://github.com/choyun1/sonore/compare/v0.3.0...main
|
|
45
|
+
[0.3.0]: https://github.com/choyun1/sonore/releases/tag/v0.3.0
|
|
46
|
+
[0.2.0]: https://github.com/choyun1/sonore/commit/213e21a
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
cff-version: 1.2.0
|
|
2
|
+
message: "If you use sonore in your research, please cite it as below."
|
|
3
|
+
title: "sonore: signals and stimuli for auditory research"
|
|
4
|
+
type: software
|
|
5
|
+
authors:
|
|
6
|
+
- family-names: Cho
|
|
7
|
+
given-names: Adrian Y.
|
|
8
|
+
license: MIT
|
|
9
|
+
repository-code: "https://github.com/choyun1/sonore"
|
|
10
|
+
keywords:
|
|
11
|
+
- psychoacoustics
|
|
12
|
+
- binaural hearing
|
|
13
|
+
- spatial hearing
|
|
14
|
+
- auditory stimuli
|
sonore-0.3.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2020-2026 Adrian Y. Cho
|
|
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.
|