Need to create audio signal for perceptual task

1 次查看(过去 30 天)
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 个评论
Mario Trevino
Mario Trevino 2024-3-21
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 2024-3-21
You will need to use the audiowrite, audioread and audioplayer functions for this project. The sound function may also be an option.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Measurements and Spatial Audio 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by