Skip to content

Commit

Permalink
Add a script to print some info about a plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
simlmx committed Oct 22, 2018
1 parent c3ea70d commit f67208b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/print_plugin.py
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit f67208b

Please sign in to comment.