Changeset af24139
- Timestamp:
- Sep 17, 2016, 1:45:22 AM (8 years ago)
- Branches:
- feature/cnn, feature/crepe, feature/pitchshift, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch
- Children:
- 0015a54
- Parents:
- f6c4c1c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
python/lib/gen_code.py
rf6c4c1c raf24139 20 20 'method': '"default"', 21 21 'uri': '"none"', 22 'pitchscale': '1.', 22 23 } 23 24 … … 83 84 'filterbank': 'self->n_filters', 84 85 'tss': 'self->buf_size', 86 'pitchshift': 'self->hop_size', 85 87 } 86 88 … … 95 97 'wavetable': 'self->hop_size', 96 98 'tss': 'self->buf_size / 2 + 1', 99 'pitchshift': 'self->hop_size', 97 100 } 98 101 … … 266 269 if p['type'] == 'char_t*': 267 270 return self.check_valid_char(p) 271 if p['type'] == 'smpl_t': 272 return self.check_valid_smpl(p) 268 273 else: 269 274 print ("ERROR, no idea how to check %s for validity" % p['type']) … … 285 290 return """ 286 291 self->{name} = {defval}; 287 if ({name} != NULL) {{ 292 """.format(defval = aubiodefvalue[name], name = name) 293 294 def check_valid_smpl(self, p): 295 name = p['name'] 296 return """ 297 self->{name} = {defval}; 298 // nothing to do? 299 if ({name} != {defval}) {{ 288 300 self->{name} = {name}; 289 301 }}
Note: See TracChangeset
for help on using the changeset viewer.