Skip to content

Commit

Permalink
manipulation fx
Browse files Browse the repository at this point in the history
  • Loading branch information
drfeinberg committed Apr 22, 2022
1 parent 3b84883 commit b7f5140
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@ def __init__(self, *args, **kwargs):
# These are default settings for praat that we are hiding from the GUI and API
self.pitch_range_factor = 1
self.duration_factor = 1
self.f0min, self.f0max = self.pitch_bounds(self.args["voice"])
self.args['f0min'], self.args['f0max'] = self.f0min, self.f0max
###############################################################################################
# process: WARIO hook called once for each voice file.
###############################################################################################
Expand All @@ -60,7 +58,8 @@ def process(self) -> dict[str, Union[str, parselmouth.Sound]]:
pitch_factor: Union[int, float] = self.args["pitch_factor"]
duration: Union[int, float] = sound.get_total_duration()
file_path: str = self.args["file_path"]
f0min, f0max = self.f0min, self.f0max
self.args['f0min'], self.args['f0max'] = self.pitch_bounds(sound)
f0min, f0max = self.args['f0min'], self.args['f0max']
normalize_amplitude: bool = self.args["normalize amplitude"]

pitch: parselmouth.Data = sound.to_pitch(pitch_floor=f0min, pitch_ceiling=f0max)
Expand Down

0 comments on commit b7f5140

Please sign in to comment.