Commit 719e8676 authored by Jared Lincenberg's avatar Jared Lincenberg

Added Comments

parent 31c3b2a0
......@@ -6,8 +6,12 @@ import scipy.io.wavfile as wavfile
import sounddevice
import time
import librosa
def getWave(fileName=None,b=None,sample_rate=44100):
#getWave() : Asks for filename
#getWave(fileName) : Passes a file name
#getWave(fileName,b=0) : Asks for a range of times may not be working right.
def getWave(fileName=None,b=None,sample_rate=44100):
if b is not None:
fileName=input("File Name: ")
start=input("Start time: ")
......@@ -21,4 +25,5 @@ def getWave(fileName=None,b=None,sample_rate=44100):
samples, sample_rate =librosa.load(fileName, sr=int(sample_rate))
sounddevice.play(y,sr)
#sounddevice.play(y,sr)
return samples, sample_rate
\ No newline at end of file
return samples, sample_rate
#Comment
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment