Skip to content

Commit

Permalink
Make the example more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
simlmx committed Oct 22, 2018
1 parent 8e46e59 commit c3ea70d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/simple_host.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,23 @@ def _print_params(vst, max_params=10):


def _main(vst_filename):
host = SimpleHost()
host = SimpleHost(sample_rate=48000.)
host.load_vst(vst_filename)

_print_params(host.vst)

sound = host.play_note(note=64, duration=1., total_duration=2.)
print(sound)
print(sound.shape)

host.vst.set_param_value(0, 1.0)
host.vst.set_param_value(1, 0.5)
host.vst.set_param_value(index=0, value=1.)
host.vst.set_param_value(index=1, value=0.5)

_print_params(host.vst)

sound = host.play_note(note=64, duration=1., total_duration=2.)
print(sound)
print(sound.shape)


if __name__ == '__main__':
Expand Down

0 comments on commit c3ea70d

Please sign in to comment.