Calculate a sine & save as wave

Calculate a sine vector including harmonics. Save as wave file.
226 téléchargements
Mise à jour 29 mars 2012

Afficher la licence

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
Créé avec R2009b
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux
Catégories
En savoir plus sur Filename Construction dans Help Center et MATLAB Answers
Version Publié le Notes de version
1.1.0.0

Provided some improvements in the script

1.0.0.0