Random presentation of signals

1 回表示 (過去 30 日間)
Parisa
Parisa 2021 年 1 月 1 日
コメント済み: Parisa 2021 年 1 月 5 日
Hi, I have 222 codes for auditory signals and I want to present them in random order with 1 min interval,
can any one help me please?

採用された回答

Walter Roberson
Walter Roberson 2021 年 1 月 1 日
  3 件のコメント
Walter Roberson
Walter Roberson 2021 年 1 月 4 日
% This demo shows two things:
%
% - How to use audio schedules in PsychPortAudio to preprogram a sequence
% of different sounds to play and how to dynamically add new sounds to the
% schedule while it is playing. This is similar to "playlists" in typical
% audio player applications like iTunes or the iPod etc.
%
% - How to create and use many prefilled audio buffers before start of a
% session. This way you can preload all needed sounds before start of an
% experiment into memory, in a format optimized for fast playback and low
% memory usage. This is similar to the concept of textures or offscreen
% windows in the domain of Screen() for the visuals.
So you start off by loading the 222 signals into audio buffers using PsychPortAudio('CreateBuffer'...)
Pad each buffer out to 1 minute as you do that.
Add them to a schedule in a random order. You can randperm() to get a random order.
Start playing the schedule.
Come back 3 1/2 hours later.
Parisa
Parisa 2021 年 1 月 5 日
thank you very much for your time and help

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAudio I/O and Waveform Generation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by