Calculate a sine & save as wave
Produce a sine vector including harmonics. Different intensities for harmonics are possible. Control duration and sample rate. Save sine vector as a wave file.
Intensities are weighted according to number of harmonics. Vector is normalized to a range of -1:1.
Variables:
frequency in Hertz [f0, f1, f2, etc.]
0 < intensity < 1 [i1, i2, i3, etc.]
duration in milliseconds
optional variables:
play = 'playon' / 'playoff'
save = 'saveyes' / 'saveno'
where_name = directory + name w/o '.wav'ending
Citation pour cette source
Fabian Tomaschek (2026). Calculate a sine & save as wave (https://fr.mathworks.com/matlabcentral/fileexchange/35908-calculate-a-sine-save-as-wave), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
| Version | Publié le | Notes de version | |
|---|---|---|---|
| 1.1.0.0 | Provided some improvements in the script |
||
| 1.0.0.0 |
