Skip to content

Remove wavread and wavwrite #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 25, 2016
Merged

Remove wavread and wavwrite #81

merged 5 commits into from
May 25, 2016

Conversation

hagenw
Copy link
Member

@hagenw hagenw commented May 17, 2016

As wavread() and wavwrite() will be removed in future Matlab versions I think it is ok to remove them from the Toolbox as well.

wavread() was easy as it is just replaced by audioread(). For wavwrite() we have the problems of multichannel wav-files as we use it to save the BRS files. I copied the savewav file from the Binaural simulator and stored it as save_ssr_brs() for the moment.

Maybe it is a better idea to store it also as savewav under SFS_general?

I also switched the order of input arguments to be identical to audiowrite().

At the moment we can only save to 32bit. In prior experiments I saved the BRS files as 16bit, was this a bad idea or should we include that option as well to save_ssr_brs() in order to save space as BRS files are normally quite large?

At the moment I have the copyright statement from the original savewav file. Can we simply replace it by the SFS copyright statement or would you prefer to stay with the original one?

After we agree on this questions I will clean up the code of the function.

@fietew
Copy link
Member

fietew commented May 25, 2016

I think, we should leave it at savewav because that's what it does. Actually I wanted keep the arguments just as for wavwrite, but this is not that important.

Regarding the bit quantization: So you saved the BRIRs in 16 bit integer? Because 32 bit is the only supported floating point format *.wav supports, I think. I don't think, that the 16bit quantization had audible effects on the BRIRs. I dont' think, that is necessary to add 16bit integer to the function, either.

I think we should keep the current copyright message. Strictly speaking, we would violate the MIT License, if we would just remove the copyright statement. Of course, I'm the copyright owner and I can do whatever I want with it, but maybe it's a good example how code from other sources can be integrated into the toolbox. In the end, if you're not very comfortable with it, you can also replace it by the copyright message of the toolbox.

hagenw added 2 commits May 25, 2016 10:06
* master:
  Return delay offset from delayline() (#82)
  New Handling of delayline and fractional delay (#50)
  Fix dos line endings

Conflicts:
	SFS_binaural_synthesis/auralize_ir.m
	SFS_binaural_synthesis/compensate_headphone.m
@hagenw
Copy link
Member Author

hagenw commented May 25, 2016

I agree and have updated the code accordingly.

@hagenw hagenw merged commit 6e3b71b into master May 25, 2016
@hagenw hagenw deleted the audiowrite branch May 25, 2016 08:13
hagenw added a commit that referenced this pull request May 26, 2016
* master:
  Update copyright owner to SFS Toolbox Developers
  Update README for online documentation
  Remove wavread and wavwrite (#81)
  Return delay offset from delayline() (#82)
  New Handling of delayline and fractional delay (#50)
  Fix dos line endings
  Update comments for SSR BRS
  Update license in missing files
  Change license to MIT (#80)
  Make direction_vector() work with matrix => vector
  add modal weighting to time-domain nfchoa (#77)
  Fix comment of tapering_window()
  Add automatic scaling to loudspeaker weights for plotting (#78)
  Update comment of interpolation()
  Update NEWS
  Fix interpolation calling bug in interpolation_ir()
  Remove debugging parameter
  Fix normalization for 2D interpolation
  Further improvements to description of interpolation()
  Enhance description for interpolation()

Conflicts:
	SFS_general/direction_vector.m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants