- Timestamp:
- Jun 12, 2006, 2:54:47 PM (18 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, pitchshift, sampler, timestretch, yinfft+
- Children:
- 1917053
- Parents:
- 16109b3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/aubio/task/cut.py
r16109b3 rcf34922 7 7 parameters should be set *before* calling this method. 8 8 """ 9 from os.path import basename,splitext 9 10 task.__init__(self,input,output=None,params=params) 10 self.newname = "%s%s%09.5f%s%s" % (self.input.split(".")[0].split("/")[-1],".", 11 self.frameread*self.params.step,".",self.input.split(".")[-1]) 11 self.soundoutbase, self.soundoutext = splitext(basename(self.input)) 12 self.newname = "%s%s%09.5f%s%s" % (self.soundoutbase,".", 13 self.frameread*self.params.step,".",self.soundoutext) 12 14 self.fileo = sndfile(self.newname,model=self.filei) 13 15 self.myvec = fvec(self.params.hopsize,self.channels) … … 32 34 zerocross += 1 33 35 del self.fileo 34 self.fileo = sndfile("%s%s%09.5f%s%s" % 35 (self.input.split(".")[0].split("/")[-1],".", 36 self.frameread*self.params.step,".",self.input.split(".")[-1]),model=self.filei) 36 self.fileo = sndfile("%s%s%09.5f%s%s" % (self.soundoutbase,".", 37 self.frameread*self.params.step,".",self.soundoutext),model=self.filei) 37 38 writesize = self.fileo.write(fromcross,self.mycopy) 38 39 else:
Note: See TracChangeset
for help on using the changeset viewer.