This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy.io.wavfile import write | |
from math import pi, sin, floor | |
from fractions import gcd | |
from UtilityFunctions import * | |
class SoundGenerator(): | |
# Constants | |
def __init__(self, waveType = "Sine", frequency = 500, amplitude = 1.0, duration = 5): | |