Skip to content

Commit

Permalink
Remove plt calls from function
Browse files Browse the repository at this point in the history
  • Loading branch information
1176325 committed Mar 28, 2022
1 parent 7832369 commit d0af84c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions python_code/effect_flanger.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
Date: 27/03/2022
'''
import numpy as np

def flanger(audioin,Fs):
length= len(audioin)
nsample= np.array(range(length))
Expand All @@ -23,10 +24,11 @@ def flanger(audioin,Fs):
print(out.shape)
for j in range(length): #For each sample
out[j]= np.float(audioin[j]) + np.float(audioin[int(index[j])]) #Add Delayed signal
plt.plot(out,'r',audioin,'b')
plt.xlabel ("Sample Index")
plt.ylabel("Delay Amount (normalized)")
plt.title("Delay vs Time")
if False:
plt.plot(out,'r',audioin,'b')
plt.xlabel ("Sample Index")
plt.ylabel("Delay Amount (normalized)")
plt.title("Delay vs Time")
return out

if False:
Expand Down

0 comments on commit d0af84c

Please sign in to comment.