Showing the changes to python (1 of 6 files). Show all
Unified · Split
| @@ -7,7 +7,7 @@ · 6 unmodified lines | |||
| 7 | from aubio.aubioclass import * | 7 | from aubio.aubioclass import * |
| 8 | import sys | 8 | import sys |
| 9 | 9 | ||
| 10 | bufsize = 512 | 10 | bufsize = 1024 |
| 11 | hopsize = bufsize/2 | 11 | hopsize = bufsize/2 |
| 12 | 12 | ||
| 13 | def getonsets(filein,threshold): | 13 | def getonsets(filein,threshold): |
| @@ -33,10 +33,7 @@ def getonsets(filein,threshold): · 19 unmodified lines | |||
| 33 | while ovalist[i-1] < ovalist[i] and i > 0: | 33 | while ovalist[i-1] < ovalist[i] and i > 0: |
| 34 | i -= 1 | 34 | i -= 1 |
| 35 | now = (frameread+1-i)*hopsize/(srate+0.) | 35 | now = (frameread+1-i)*hopsize/(srate+0.) |
| 36 | #del fileo | ||
| 37 | #fileo = sndfile("%s%f%s" % ("/tmp/",now,filein[-4:]),model=filei) | ||
| 38 | mylist.append(now) | 36 | mylist.append(now) |
| 39 | #writesize = fileo.write(readsize,myoldvec) | ||
| 40 | frameread += 1 | 37 | frameread += 1 |
| 41 | return mylist | 38 | return mylist |
| 42 | 39 | ||