Need to create audio signal for perceptual task

2 visualizaciones (últimos 30 días)
Mario Trevino
Mario Trevino el 21 de Mzo. de 2024
Comentada: Star Strider el 21 de Mzo. de 2024
Hi there everyone, Im working with a perceptual task. Imagine we have a dot that is projected on your screen. On different trials, this dot moves around and adopts different trajectories within the screen, with a fixed trial duration of, say, 2.5 s. I have all this information a priori, which means that I know the exact trajectories of the dots, during all trials. What I need then is to be able to create an audio file, which I can reproduce during each trial and which encodes information about the position of the dot. Since the dot moves in a 2D space, I would need to be able to provide a 2 column vector to this tool, in order to transform that information into an audio file. The idea being that the audio file lasts exactly the same as the corresponding trial, and encodes what is happening in the screen in real time.
ANY SUGGESTIONS??????
thanks in advance :)
  3 comentarios
Mario Trevino
Mario Trevino el 21 de Mzo. de 2024
the idea is that the function that generates audio files reads two column matrix with information about the dot, it could be for example pos_x, pos_y, or speed_x, speed_y, or a polar transformation of pos_x, pos_y. The thing here is transforming those input signals into audible components. I do know the trajectories in advance, so its perfectly viable to create the audio signals before running the trials. The problem I anticipate now is that the reproduction of audio signal should involve an envelope that starts before the actual information occurs on screen, otherwise we would be reproducing sounds that contain info after the fact.....
Star Strider
Star Strider el 21 de Mzo. de 2024
You will need to use the audiowrite, audioread and audioplayer functions for this project. The sound function may also be an option.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Measurements and Spatial Audio en Help Center y File Exchange.

Productos


Versión

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by