Skip to content

Commit

Permalink
get_mean_strength() changed agument order
Browse files Browse the repository at this point in the history
  • Loading branch information
hokiedsp committed Feb 22, 2021
1 parent 206f148 commit d9f832d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/parselmouth/Pitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ PRAAT_CLASS_BINDING(Pitch) {
GET_MEAN_DOCSTRING);

def(
"get_mean_strength", [](Pitch self, double tmin, double tmax, std::string type) {
"get_mean_strength", [](Pitch self, std::string type, double tmin, double tmax) {
const int strengthUnit =
(type == "ac") ? Pitch_STRENGTH_UNIT_AUTOCORRELATION :
(type == "nhr") ? Pitch_STRENGTH_UNIT_NOISE_HARMONICS_RATIO :
Expand All @@ -389,7 +389,7 @@ PRAAT_CLASS_BINDING(Pitch) {

return Pitch_getMeanStrength(self, tmin, tmax, strengthUnit);
},
"from_time"_a = 0.0, "to_time"_a = 0.0, "type"_a = "hnr_db",
"type"_a = "hnr_db", "from_time"_a = 0.0, "to_time"_a = 0.0,
GET_MEAN_STRENGTH_DOCSTRING);

def(
Expand Down
6 changes: 3 additions & 3 deletions src/parselmouth/Pitch_docstrings.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Returns the value of user-selected measure of the periodicity strength.
Parameters
----------
type : {'ac', 'nhr', 'hnr_db'}, default="hnr_db"
Type of strength measure to compute
from_time : double, default=0.0
The start time of the compuation. Use 0.0 to start with the first
available frame
Expand All @@ -15,9 +18,6 @@ end_time : double, default=0.0
The end time of the compuation. Use 0.0 to end with the last available
frame
type : {'ac', 'nhr', 'hnr_db'}, default="hnr_db"
Type of strength measure to compute
See Also
--------
:praat:`Voice report`
Expand Down

0 comments on commit d9f832d

Please sign in to comment.