How to change the pitch of a sound I create

URL of experiment:

Description of the problem:
In my program, I use the sound component to create a sound whose ‘value=“A”’, however I want the pitch to be changing with the time. How can I do this?
I tried adding the code “sound_1.value=(a variable)” but it doesn’t work. I am new to Pavlovia and psychoPy, any help would be appreciated.

Best,
Long YI

You could try sound_1.setSound(a_variable)

Also, try using numeric values for the pitch instead of letters.

Also, try looking for errors via the console (Ctl-Shift-I in Chrome).

Best wishes,

Wakefield

Thanks again wakefield :smiley:

No problem.

Was the key setSound or numeric values?

Best wishes

Wakefield