History

Paul Brossier committed 21 years ago

Commit e997b1a1 parent c0ec39c6 files · +88 −86Browse files

Showing the changes to python (1 of 6 files). Show all

Unified · Split

python/aubiocut+1−4
@@ -7,7 +7,7 @@ · 6 unmodified lines
7from aubio.aubioclass import *7from aubio.aubioclass import *
8import sys8import sys
9 9
10bufsize = 51210bufsize = 1024
11hopsize = bufsize/211hopsize = bufsize/2
12 12
13def getonsets(filein,threshold):13def 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 -= 134 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 += 137 frameread += 1
41 return mylist38 return mylist
42 39

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t