Put tests in __main__ (for importing)
This commit is contained in:
parent
bb33b03436
commit
29b0a455e3
|
@ -331,6 +331,10 @@ def retrieve_all_from_song(filename, t0, t1, bpm, dta=0.001, dtf=0.01, threshold
|
|||
plt.show()
|
||||
|
||||
# free()
|
||||
|
||||
NOTE_DIST = (2**(1/4))
|
||||
OCTAVE_DIST = 0.05
|
||||
if __name__ == '__main__':
|
||||
'''
|
||||
# c-type
|
||||
SONG_LEN = 7
|
||||
|
@ -415,8 +419,6 @@ wavved_song = convert_to_wav("songs/Megalovania(240-7984)[filtered].wav")
|
|||
|
||||
#wavved_song = convert_to_wav("songs/tetris_2.wav")
|
||||
|
||||
NOTE_DIST = (2**(1/4))
|
||||
OCTAVE_DIST = 0.05
|
||||
keep_highest(wavved_song, OFFSET, SONG_LEN, SEGSIZE/4, 1, "Zblit.wav", minfreq=300, maxfreq=3000, ampthr=500)
|
||||
|
||||
print("yipee")
|
||||
|
|
Loading…
Reference in New Issue