You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
861 B
33 lines
861 B
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import gen_cid
|
|
from gen_cid import utils
|
|
|
|
def main():
|
|
vars = []
|
|
funcs = []
|
|
funcs.append("init_synth_shed")
|
|
funcs.append("synth_create")
|
|
funcs.append("synth_set_osc_count")
|
|
funcs.append("tech_to_string")
|
|
funcs.append("update_identity")
|
|
funcs.append("filtertype_to_string")
|
|
funcs.append("play_synth")
|
|
|
|
header_filename = "../../src/synth_shed/synth_shed.h"
|
|
libclang_path = "/opt/local/libexec/llvm-9.0/lib/libclang.dylib"
|
|
|
|
cidtools = gen_cid.CIDTools(libclang_path, header_filename)
|
|
header = cidtools.extract(vars,funcs,debug_ast=True,debug_cid=True,debug_yml=True)
|
|
|
|
# Debug output
|
|
|
|
cid = header["cid"]
|
|
|
|
print(header["yml"])
|
|
utils.write_string( header["yml"], "./" + "/" + header["filename"] + ".cid.yml2",)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|
|
|