Skip to content

Commit

Permalink
Add deprecated path for old WORLD interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
r9y9 committed Jun 1, 2015
1 parent 75dd4f5 commit f7f341b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/WORLD.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ end

include("bridge.jl")
include("mcep.jl")
include("deprecated.jl")

end # module WORLD
18 changes: 18 additions & 0 deletions src/deprecated.jl
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)

0 comments on commit f7f341b

Please sign in to comment.