vegasgasil.blogg.se

Psychopy scale reset
Psychopy scale reset













psychopy scale reset

In particular, sounds other programs make won't be heard ( more information).

#Psychopy scale reset driver#

It's not required but you can also turn on Exclusive Mode if you want which bypasses the Windows volume control and any other effects the audio driver does, and just pass whatever sound pyo makes directly to the speakers or other output device. ), and not specifying sr defaults to 441000. So if your speakers have a sample rate of 48000 Hz, you can tell pyo to launch a server with that sample rate with Server(sr=48000. Then you right-click on your speakers or other audio device and select Properties which should then show you the sample rate used by the audio hardware. To verify this you right-click the volume icon and click "Playback Devices", which should open a window like this: You must also make sure that the sample rate used by your Windows audio device is the same as the one used by pyo, and pyo defaults to a 44100 Hz sample rate. As stated earlier, not using the winhost parameter defaults the server to use DirectSound which most likely won't produce the expected results unless you are using Windows XP. So on those operating system versions, pyo needs to be configured to use WSAPI with Server(., winhost="wasapi"). The default Windows audio host used by pyo is DirectSound, however any version of Windows since Vista should use the WSAPI host to play audio properly. Windows needs special attention to make sure pyo plays audio properly. I have a preference to starting the GUI instead of directly playing the sounds and that reflects in the examples I show here. One problem that I noticed with this interpreter is that you can't seem to type multi-line commands in it. In order to make the GUI return to the python console instead you need to call it with gui(. gui() does not return and if you Ctrl-C the terminal or quit the GUI then the whole Python process will exit. The reason why we need to pass locals() as the argument to s.gui() is to allow it to make a prompt for you to type python commands in. If you overwrite a with something else it won't play on the left channel. Variables should not be overwritten if you are using the GUI. Here's a decibel-to-amplitude conversion table for reference: Enter fullscreen mode Exit fullscreen mode















Psychopy scale reset