Changeset 0561c54 for python/lib/aubio/cut.py
- Timestamp:
- Mar 24, 2017, 4:22:51 AM (8 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, sampler
- Children:
- 70ab9fe
- Parents:
- cc4987a (diff), 2615dd9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
python/lib/aubio/cut.py
-
Property
mode
changed from
100755
to100644
rcc4987a r0561c54 7 7 import sys 8 8 9 usage = "usage: %s [options] -i soundfile" % sys.argv[0]10 usage += "\n help: %s -h" % sys.argv[0]11 12 9 def parse_args(): 13 10 from optparse import OptionParser 11 usage = "usage: %s [options] -i soundfile" % sys.argv[0] 12 usage += "\n help: %s -h" % sys.argv[0] 14 13 parser = OptionParser(usage=usage) 15 14 parser.add_option("-i", "--input", action = "store", dest = "source_file", … … 134 133 (options, args) = parser.parse_args() 135 134 if not options.source_file: 136 import os.path137 135 if len(args) == 1: 138 136 options.source_file = args[0] … … 142 140 return options, args 143 141 144 if __name__ == '__main__':142 def main(): 145 143 options, args = parse_args() 146 144 … … 150 148 source_file = options.source_file 151 149 152 from aubio import onset, tempo, source , sink150 from aubio import onset, tempo, source 153 151 154 152 s = source(source_file, samplerate, hopsize) -
Property
mode
changed from
Note: See TracChangeset
for help on using the changeset viewer.