NeuroTechX / eeg-notebooks_v0.1

Previous version of eeg-notebooks
https://neurotechx.github.io/eeg-notebooks
BSD 3-Clause "New" or "Revised" License
184 stars 56 forks source link

auditory stim presentation not working on windows #1

Closed JohnGriffiths closed 4 years ago

JohnGriffiths commented 6 years ago

Am currently getting the following error with auditory stim presentation in windows


> python stimulus_presentation/generate_Auditory_P300.py

...

...

(base) C:\Users\John\GitBash\eeg-notebooks>python stimulus_presentation/generate_Auditory_P300.py
Traceback (most recent call last):
  File "stimulus_presentation/generate_Auditory_P300.py", line 40, in <module>
    aud1 = sound.Sound('C', octave=5, sampleRate=44100, secs=0.2, bits=8)
TypeError: __init__() got an unexpected keyword argument 'bits'
2.0765  INFO    Loaded SoundDevice with PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4
2.0772  INFO    sound is using audioLib: sounddevice

Have put a fix attempt on new branch, removing the bits argument. But doesn't really fix the problem (get a few sounds and then errors).

royyannick commented 5 years ago

Are you still having the issue? What version of Python, Psychopy and Windows?

JohnGriffiths commented 5 years ago

This was on windows 10 w/python 2.7

However the machine I was doing this on has now died. Getting a new one soon.

Will take another look then.

Have you been able to get auditory stim working ok on windows?

JohnGriffiths commented 4 years ago

This now seems to be working ok. c.f. the auditory evoked response notebooks in examples and sandbox folders.