diff --git a/Module 1/Chapter 7/synthesize_music.py b/Module 1/Chapter 7/synthesize_music.py index 8c8fb1c..7e74693 100644 --- a/Module 1/Chapter 7/synthesize_music.py +++ b/Module 1/Chapter 7/synthesize_music.py @@ -6,7 +6,7 @@ # Synthesize tone def synthesizer(freq, duration, amp=1.0, sampling_freq=44100): # Build the time axis - t = np.linspace(0, duration, duration * sampling_freq) + t = np.linspace(0, duration, int(duration * sampling_freq)) # Construct the audio signal audio = amp * np.sin(2 * np.pi * freq * t)