Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Audio
(view source)
Revision as of 13:29, 13 June 2023
189 bytes added
,
13:29, 13 June 2023
→Python
Line 21:
Line 21:
<syntaxhighlight lang="python" line>
<syntaxhighlight lang="python" line>
from psychopy import sound, core
from psychopy import sound, core
+
from psychopy import prefs
+
prefs.hardware['audioLib'] = ['PTB']
+
+
#preBuffer – integer to control streaming/buffering -1 means store all
+
piep = sound.Sound('1000hzsine.wav',preBuffer=-1)
# Pad naar het audiobestand
# Pad naar het audiobestand
P.dewater
Administrators
168
edits
Navigation menu
Personal tools
Log in
Namespaces
Page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Help
About
About the TSG
About this Wiki
FAQ
Disclaimer
Survey
Customer Survey
Tools
Special pages
Printable version