import matplotlib.pyplot as plt plt.plot(signal) plt.show()
If you are a student or teacher, Xfer offers 50% off through academic retailers like Plugin Boutique or Sweetwater. Send them your student ID. xfer serum r2r free
def generate_wavetable(self): # Generate a simple sine wave t = np.linspace(0, 1, self.sample_rate, False) if self.wave_type == 'sine': wave = np.sin(2 * np.pi * t) elif self.wave_type == 'sawtooth': wave = 2 * (t - 0.5) return wave import matplotlib