4.0

4.0 | 1 rating Rate this file 19 downloads (last 30 days) File Size: 35.47 KB File ID: #23007

xPC Target Speaker Blocks

by Jon Raichek

 

17 Feb 2009

Code covered by BSD License  

A block library containing utility blocks to play music over the internal speaker of a target PC.

Download Now | Watch this File

File Information
Description

Two blocks are included in this library to play music over the internal speaker of a target PC. The “Speaker” block plays the frequencies supplied to its input port over the PC speaker. The “Song” block generates the frequencies for the “Speaker” block. The “Song” block can generate frequencies from vectors of time & frequency or from a string of ‘notes’ using the “song” function. Open speakerlib.pdf for installation instructions and examples.

Acknowledgements
This submission has inspired the following:
Synchronizing xPC Targets using the Parallel Port
Required Products Real-Time Workshop
Simulink
xPC Target
MATLAB release MATLAB 7.7 (R2008b)
Zip File Content  
HTML Files xPC Target Song,
xPC Target Speaker
Other Files note.bmp,
notes.bmp,
previewsong.m,
song.m,
speakerdemo.mdl,
speakerlib.pdf,
xpcsong.c,
xpcspeaker.c,
xpcspeakerlib.mdl
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (1)
02 Apr 2009 Sam Mirsky

Cool!
Now if we could use the mic input, this would enable lots of possibilities.

Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
xpc target Jon Raichek 17 Feb 2009 17:45:04
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com