Git Product home page Git Product logo

Comments (4)

mgeier avatar mgeier commented on July 28, 2024

Welcome to Github!

Are you planning to release your MUSHRA GUI as open source software?
I think this would be great!

There is no way to specify an offset when using sounddevice.play() and still play the whole array in a loop.

The idea of the play() function is to provide a very quick and easy way to play a NumPy array during interactive exploration. Whenever you want more control over the playback, you should implement it on your own using the callback API.

A specific disadvantage of the play() function in your context is that it each time opens and closes a PortAudio stream. Therefore, gapless playback of consecutive calls is not guaranteed. Actually, this is never guaranteed, but in this case there will be no indication in case of a gap in the playback. Also, depending on your audio hardware/driver, there might be an audible click when starting and stopping a stream. This typically happens with cheap and/or on-board sound cards, but for your listening tests you'll hopefully use a proper sound card anyway.

In your case, I would highly recommend that you open the OutputStream in the beginning of the test run (ideally in a with statement), let all the user interaction happen while the stream is open, and close the stream only at the end.
This way you will know if playback was gapless.
In addition, you should probably consider making a crossfade when switching between stimuli.

from python-sounddevice.

mgeier avatar mgeier commented on July 28, 2024

@mromanov24 Any news?

from python-sounddevice.

mromanov24 avatar mromanov24 commented on July 28, 2024

Hello,

sorry for the long time off. Been on travels.

I used the script to control an other system over osc for my last project because i needed a quick solution but will work on the player in the next month to get an accurate internal playback.

The initial code of the the listening test can be found here: https://github.com/maxgiller/listening-test
Its a work of a friend of mine. In his initial version it controls reaper.

I optimized this to a flexible standalone tool for different kinds of listening tests and some other functionality.
As soon as i cleaned everything up i will commit an update to Maxs initial commit.

Regards

MR

Am 04.07.2016 um 17:00 schrieb Matthias Geier [email protected]:

@mromanov24 https://github.com/mromanov24 Any news?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub #26 (comment), or mute the thread https://github.com/notifications/unsubscribe/ASbqWDWHxYxq3DhZ0aAS1ZfNFWCaUBv8ks5qSSAbgaJpZM4IdEiL.

from python-sounddevice.

mgeier avatar mgeier commented on July 28, 2024

I'm looking forward to it!

Do you have more questions regarding this issue?
If not, can you please close it?

Feel free to open further issues if necessary.

from python-sounddevice.

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.