Skip to content
/ new_wav Public
forked from breizhn/new_wav

Implementation of a wavread and wavwrite with audioread and audiowrite to replace the old MATLAB functions, which were removed in MATLAB R2015b.

License

Notifications You must be signed in to change notification settings

TGabor/new_wav

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wav_read/wav_write

These are rewritten Functions of wavread and wavwrite using audioread and audiowrite. They are using the same syntax as the original implementation. For further usage information, please look at the original documentation of wavread and wavwrite, which is included in the function-files. Due to the removal of the old wavread()/wavwrite() since Matlab R2015b the function was also renamed to wavread()/wavwrite() to provide an easy usage without renaming.

wav_read

The function wav_read behaves like the original wavread except for the output opts in wavread, which is not implemented.

Usage example:

[y, fs, nbits] = wav_read(file)
[siz, fs] = wav_read(file, 'size')

wav_write

The function wav_write can be used exactly like wavwrite.

Usage:

wav_write(y, fs, nbits, 'filename')
wav_write(y, fs, 'filename')
wav_write(y, 'filename')

Test setup

There is a unit test for each function, which is checking for differences between the old wavread/wavwrite and the new wav_read/wav_write. To run the tests run runtests('wav_readTest.m') and runtests('wav_writeTest.m') (or simply runtests in MATLAB > 2015a). The test will not work in MATLAB > R2015b, because wavread/wavwrite was removed.


This project is licensed under the terms of the MIT license.

About

Implementation of a wavread and wavwrite with audioread and audiowrite to replace the old MATLAB functions, which were removed in MATLAB R2015b.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 100.0%