Skip to content

Commit 8dadc19

Browse files
committed
added more information about the modules in this directory
1 parent 02de50c commit 8dadc19

2 files changed

Lines changed: 60 additions & 2 deletions

File tree

smstools/models/README.txt

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
This directory includes the code for all the spectral models.
1+
# Spectral Models Module
2+
3+
This directory contains the implementation of all spectral analysis/synthesis models used in the SMS Tools package.
4+
5+
## Overview
6+
The models in this directory decompose, analyze, and resynthesize audio signals using various spectral techniques. Each model is implemented as a Python module with analysis, synthesis, and full model functions.
7+
8+
## Main Models
9+
- `dftModel.py`: Discrete Fourier Transform (DFT) analysis and synthesis functions.
10+
- `sineModel.py`: Sinusoidal model for tracking and synthesizing sinusoidal components.
11+
- `harmonicModel.py`: Harmonic model for extracting and resynthesizing harmonic partials.
12+
- `stochasticModel.py`: Stochastic model for modeling the noise-like residual.
13+
- `sprModel.py`: Sinusoidal plus residual (SPR) model, combining sinusoidal and noise components.
14+
- `spsModel.py`: Sinusoidal plus stochastic (SPS) model.
15+
- `hprModel.py`: Harmonic plus residual (HPR) model.
16+
- `hpsModel.py`: Harmonic plus stochastic (HPS) model.
17+
- `stft.py`: Short-Time Fourier Transform utilities.
18+
- `utilFunctions.py`: Utility functions for windowing, synthesis, and other signal processing tasks.
19+
20+
## Usage
21+
- Each model provides `*Anal`, `*Synth`, and full model functions (e.g., `sineModelAnal`, `sineModelSynth`, `sineModel`).
22+
- Use these modules as building blocks for sound analysis, transformation, and synthesis.
23+
- See the docstrings in each file for detailed API documentation and usage examples.
24+
25+
## Requirements
26+
- Numpy, Scipy
27+
28+
## References
29+
- Serra, X. (1997). "Musical Sound Modeling with Sinusoids plus Noise". In Musical Signal Processing, Swets & Zeitlinger.
30+
- SMS Tools documentation: https://www.upf.edu/web/mtg/sms-tools
Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
This directory includes all the software to transform sounds using the models
1+
# Sound Transformations Module
2+
3+
This directory contains all the software for transforming sounds using the various analysis/synthesis models implemented in the SMS Tools package.
4+
5+
## Overview
6+
The transformation modules operate on the outputs of models such as sineModel, harmonicModel, stochasticModel, hpsModel, and others. They provide algorithms for modifying, morphing, and resynthesizing audio in the time-frequency domain.
7+
8+
## Main Modules
9+
- `harmonicTransformations.py`: Transformations for harmonic model outputs (e.g., pitch shifting, time scaling, timbre modification).
10+
- `hpsTransformations.py`: Transformations for harmonic plus stochastic model outputs.
11+
- `sineTransformations.py`: Transformations for sine model outputs (e.g., frequency scaling, time stretching).
12+
- `stftTransformations.py`: Transformations using the short-time Fourier transform (STFT).
13+
- `stochasticTransformations.py`: Transformations for stochastic model outputs.
14+
15+
## Usage
16+
Each module provides functions that take model analysis outputs (e.g., frequency, magnitude, phase tracks) and apply transformations such as:
17+
- Time scaling (stretching/compressing)
18+
- Frequency scaling (pitch shifting)
19+
- Morphing between two sounds
20+
- Timbre modification
21+
22+
See the docstrings in each module for function-level documentation and usage examples.
23+
24+
## Requirements
25+
- Numpy, Scipy
26+
- Use in conjunction with the analysis/synthesis models in `../models/`
27+
28+
## References
29+
- Serra, X. (1997). "Musical Sound Modeling with Sinusoids plus Noise". In Musical Signal Processing, Swets & Zeitlinger.
30+
- SMS Tools documentation: https://www.upf.edu/web/mtg/sms-tools

0 commit comments

Comments
 (0)