xPC Target Song
The xPC Target Song block outputs frequencies based on the supplied frequency and duration vectors.
Block Output Data Type: double
< 0: New frequency
= 0: No frequency
> 0: Repeated frequency
Each frequency will be output depending on the duration and sample time. The first output for each frequency will be negative, all subsequent values will be positive.
(See the xPC Target Speaker Block)
Format – Specify the source of the frequencies and durations.
Frequencies & Durations |
Supply frequencies and durations as vectors. |
Song/Notes |
Supply a string of notes to be converted into frequencies and durations. |
Frequencies & Durations
Frequencies – Vector of frequencies in Hz.
Durations – Vector of durations for each frequency in Seconds.
Song/Notes
Notes – String of notes. (See song.m)
Tempo – Beats per minute. (Default 90)
Key – Key signature. (Default C major)
Steps – Shift each note specified number of steps.
Octaves – Shift entire song specified number of octaves.
Tune – Shift all notes up or down specified number of Hz.
Intermission – Time in seconds between replays.
Sample time – Sample time for the block.