History

Merge branch 'feature/pitchshift' into feature/timestretch

Paul Brossier committed 7 years ago

Commit cb0d7d02 parents 6e157df d0f19a7101 files · +1797 −1448Browse files

Showing the changes to python/lib (1 of 101 files). Show all

Unified · Split

python/lib/gen_code.py+13−3
@@ -234,11 +234,21 @@ typedef struct{{ · 233 unmodified lines
234 return out.format(do_inputs_list = do_inputs_list, **self.__dict__)234 return out.format(do_inputs_list = do_inputs_list, **self.__dict__)
235 235
236 def gen_doc(self):236 def gen_doc(self):
237 sig = []
238 for p in self.input_params:
239 name = p['name']
240 defval = aubiodefvalue[name].replace('"','\\\"')
241 sig.append("{name}={defval}".format(defval=defval, name=name))
237 out = """242 out = """
238// TODO: add documentation243#ifndef PYAUBIO_{shortname}_doc
239static char Py_{shortname}_doc[] = \"undefined\";244#define PYAUBIO_{shortname}_doc "{shortname}({sig})"
245#endif /* PYAUBIO_{shortname}_doc */
246
247static char Py_{shortname}_doc[] = ""
248PYAUBIO_{shortname}_doc
249"";
240"""250"""
241 return out.format(**self.__dict__)251 return out.format(sig=', '.join(sig), **self.__dict__)
242 252
243 def gen_new(self):253 def gen_new(self):
244 out = """254 out = """

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