GithubHelp home page GithubHelp logo

Comments (10)

danielemarinazzo avatar danielemarinazzo commented on July 30, 2024

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.

JohnGriffiths avatar JohnGriffiths commented on July 30, 2024

@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.

JohnGriffiths avatar JohnGriffiths commented on July 30, 2024

Ok sorry it still fades out for longer runs. So must be to do with the number of repeats.

from eeg-expy.

JohnGriffiths avatar JohnGriffiths commented on July 30, 2024

Still, with 30s trials you should have no issues...

from eeg-expy.

JohnGriffiths avatar JohnGriffiths commented on July 30, 2024

Ok, have a better fix: move the sound object creation inside the trials loop. No fading with this. Doing PR now.

from eeg-expy.

JohnGriffiths avatar JohnGriffiths commented on July 30, 2024

Here #81

from eeg-expy.

danielemarinazzo avatar danielemarinazzo commented on July 30, 2024

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.

JohnGriffiths avatar JohnGriffiths commented on July 30, 2024

@danielemarinazzo - checking in on this one also. Are you still encountering this error?

from eeg-expy.

danielemarinazzo avatar danielemarinazzo commented on July 30, 2024

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.

danielemarinazzo avatar danielemarinazzo commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.