-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #2
- Loading branch information
Showing
5 changed files
with
185 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,24 @@ | ||
// Copyright 2017 The IriFrance Audio Authors. All rights reserved. Use of | ||
// Copyright 2017 The ZikiChombo Authors. All rights reserved. Use of | ||
// this source code is governed by a license that can be found in the License | ||
// file. | ||
|
||
// Package resample implements resampling/changes in resolution. | ||
// | ||
// Package resample uses interpolation for resampling which provides easy | ||
// control over the quality/cost tradeoff and can produce very high quality | ||
// resampling. Other resampling methods may be more appropriate for a given | ||
// calling context, package resample doesn't yet provide other mechanisms. | ||
// | ||
// When resampling audio, any decrease in sample rate from rate S to a rate R | ||
// must be applied to a signal which does not contain frequencies at or above | ||
// R/2, or aliasing will produce strange results. | ||
// | ||
// This is often achieved by first applying a low pass filter and then | ||
// resampling. As ZikiChombo does not yet have filter design support, we | ||
// recommend in the meantime simply taking a moving average of the signal with | ||
// a window size W = ceil(S/R) before decreasing the sample rate if you do not | ||
// have access to or knowledge about low pass filtering design. | ||
// | ||
// BUG(wsc) the shift size, effecting interpolation order limits and | ||
// latency of implementations is constant (64 frames). | ||
package resample /* import "zikichombo.org/dsp/resample" */ |