diff --git a/scripts/print_plugin.py b/scripts/print_plugin.py new file mode 100644 index 0000000..4df9a9b --- /dev/null +++ b/scripts/print_plugin.py @@ -0,0 +1,25 @@ +import argparse + +from pyvst import VstPlugin + + +def _main(filename): + plugin = VstPlugin(filename) + + # TODO print more than that! + print('-- Parameters --') + for index in range(plugin.num_params): + print('[{}] {} = {} {}'.format( + index, + plugin.get_param_name(index), + plugin.get_param_value(index), + plugin.get_param_label(index) + )) + + +if __name__ == '__main__': + parser = argparse.ArgumentParser() + parser.add_argument('vst', help='path to .so file') + args = parser.parse_args() + + _main(args.vst)