diff --git a/src/parselmouth/Pitch.cpp b/src/parselmouth/Pitch.cpp index 93daeab0..8729ef33 100644 --- a/src/parselmouth/Pitch.cpp +++ b/src/parselmouth/Pitch.cpp @@ -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 : @@ -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( diff --git a/src/parselmouth/Pitch_docstrings.h b/src/parselmouth/Pitch_docstrings.h index 70ec4af1..0b136969 100644 --- a/src/parselmouth/Pitch_docstrings.h +++ b/src/parselmouth/Pitch_docstrings.h @@ -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 @@ -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`