Comments (10)
update, it works now, I installed manually pyo and pygame, and put one of these two as default
PTB still gave an error
self.stopTime = self._nSamples / float(self.sampleRate) TypeError: float() argument must be a string or a number, not 'NoneType'
I also changed the output sound from "native sound" or something like that, to another option, with four capital letters.
Why am I not being more specific? Because now psychopy gives an error when I try to access the preferences :)
Traceback (most recent call last):
File "c:\users\daniele\miniconda3\envs\eegnb_py37\lib\site-packages\psychopy\app\_psychopyApp.py", line 767, in showPrefs
prefsDlg = PreferencesDlg(app=self)
File "c:\users\daniele\miniconda3\envs\eegnb_py37\lib\site-packages\psychopy\app\preferencesDlg.py", line 543, in __init__
devnames = sorted(sound.getDevices('output'))
AttributeError: module 'psychopy.sound' has no attribute 'getDevices'
But as long as the sound works, I won't touch it :)
from eeg-expy.
@danielemarinazzo - try changing the SOA ( = the trial duration ).
Tried this just now.
With SOA <= 1 I get the volume dropoff, and it's worse for e.g. SOA=0.5
At SOA = 2.0 I didn't hear any volume dropoff over 1 min.
Also note here: you could set longer SOAs and have fewer, longer trials. That would remove the unfortunate clicks that accompany the stim onset offset (which also needs fixing).
Since you set ITI to zero for your ssaep_onefreq
experiment, I guess what you are after is a single continuous sound stream.
Note that there might be advantages to having delineated trials at later points for averaging etc; my first thought would be maybe 30s trials, for a 5-10 min expt.
from eeg-expy.
Ok sorry it still fades out for longer runs. So must be to do with the number of repeats.
from eeg-expy.
Still, with 30s trials you should have no issues...
from eeg-expy.
Ok, have a better fix: move the sound object creation inside the trials loop. No fading with this. Doing PR now.
from eeg-expy.
Here #81
from eeg-expy.
thanks a lot! what do you have as psychopy sound preferences? Because for me what resolved the issue was to install pyo and pygame nad change the audio type in psychopy.
btw do you manage to use PTB as primary sound preference?
from eeg-expy.
@danielemarinazzo - checking in on this one also. Are you still encountering this error?
from eeg-expy.
Last time I checked was in April, with a fresh installation of the toolbox at that time, on a different PC (still windows, still python 3.7). Now I cannot check since my new installation does not work
from eeg-expy.
So the installation works now, and the sound does not fade. I cannot check if it's PTB or else since when I run the psychopy
command it does not start. Any ideas? In any case it works and psychopy does not complain about using the wrong sound options.
from eeg-expy.
Related Issues (20)
- Problems in data streaming using Brainflow using muse2 HOT 10
- Installing eeg notebooks on Mac M1 HOT 1
- Idea to implement for EEG decoding the option to convert it to DFT? HOT 1
- Hello, I have a basic question about another project HOT 1
- N170 experiment doesn't work HOT 1
- N170 Load and Visualize Data HOT 5
- Research showing the influence of the used SSVEP pattern image HOT 2
- Error with installing dukpy HOT 3
- Can't run experiments from CLI interface HOT 4
- pyglet version incompatibility mac HOT 4
- Implement version + release schedule HOT 2
- aux channel with muse2_bfn device
- P300 experiment explanation: "...high or low probability..."
- Legend items order when using diff_waveform in plot_conditions HOT 1
- Support for Oculus/Meta Quest VR for N170 and other experiments
- is it possible to save the PPG data from Muse 2 (with bluemuse and/or brainflow)? HOT 2
- Problems with saving data file using brainflow HOT 2
- AttributeError: module 'eegnb.experiments.visual_ssvep.ssvep' has no attribute 'present' HOT 3
- Incomplete outputfile SSAEP_onefreq with Bluemuse HOT 1
- `eeg-notebook` => `eeg-expy` rename
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eeg-expy.