Skip to content

Commit

Permalink
fix conditioning frequencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentherrmann committed Mar 23, 2018
1 parent a64606b commit c62ef65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audio_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def conditioning(self, file_index, position_in_file, item_length):
offset = position_in_file % self.conditioning_period
conditioning_count = math.ceil(item_length / self.conditioning_period) + 1

sample_to_phase = (2*math.pi) / (self.sampling_rate * self.min_conditioning_breadth)
sample_to_phase = (math.pi) / (self.sampling_rate * self.min_conditioning_breadth)
phase_start = (position_in_file - offset) * sample_to_phase
phase_length = conditioning_count * self.conditioning_period * sample_to_phase
x = np.linspace(phase_start, phase_start + phase_length, num=conditioning_count)
Expand Down

0 comments on commit c62ef65

Please sign in to comment.