Skip to content

Instantly share code, notes, and snippets.

View sparida's full-sized avatar

Sid Parida sparida

  • Purdue University
  • West Lafayette
View GitHub Profile
@sparida
sparida / SoundGenerator.py
Created July 12, 2017 19:43
Oscillator and Sound Generator Module
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):