-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deprecated path for old WORLD interfaces
- Loading branch information
Showing
2 changed files
with
19 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,5 +31,6 @@ end | |
|
||
include("bridge.jl") | ||
include("mcep.jl") | ||
include("deprecated.jl") | ||
|
||
end # module WORLD |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# deprecates related to the version up from WORLD v0.1.4 to v0.2.0 | ||
|
||
export | ||
star, | ||
platinum, | ||
aperiodicityratio, | ||
synthesis_from_aperiodicity | ||
|
||
# Since `libworld.0.2.0` doesn't provide an interface to Platinum, | ||
# I decided `platinum` simply throws an error for deprecation. | ||
function platinum(x, fs, timeaxis, f0, spectrogram) | ||
error("Platinum was removed since WORLD v0.2.0. Please use d4c for aperiodicity (not excitation) estimation.") | ||
end | ||
|
||
@deprecate star cheaptrick | ||
@deprecate aperiodicityratio(x, fs, f0, timeaxis) d4c(x, fs, timeaxis, f0) | ||
@deprecate synthesis_from_aperiodicity synthesis | ||
@deprecate get_fftsize_for_star(fs) get_fftsize_for_cheaptrick(fs) |