Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] problem with sampler volume adjustment

edited November 2015 in OpenSesame

Hi all,

Thank you for this great forum.

I am trying to set the volume of a synthesizer.
Can't find what I'm doing wrong.. :((
I will be greatful if someone can point me to the right direction.

Thank you!

###volume adjustment

vol=0.5
my_canvas.clear()
my_canvas.text('set the volume')
my_canvas.show()
while True:
    my_keyboard = keyboard(keylist=['UP','space'], timeout=None)
    key, end_time = my_keyboard.get_key()
    if key=='space':
        break
    test=synth(exp, osc='sine', freq=850, attack=5,decay=5, length=50)
    test.volume(vol)   ### code works fine without this line...
    test.play() 

Comments

Sign In or Register to comment.