File Exchange Pick of the Week

June 29th, 2006

You could be a star!

Thanks to John D'Errico for stepping in as a guest picker again. ... Playtune - its not really for the musically challenged, which I am. In fact, serving me with an injunction to stay at least 100 yards away from any musical instrument would be a good idea. But I did have fun with it, even my dog was enthralled with the sounds emanating from my speakers. Playtune lets you use a simple character string interface for your tunes.

2 Responses to “You could be a star!”

  1. Naor Movshovitz replied on :

    I was just looking at this submission and even though the music was great I couldn’t figure out how am I supposed to construct these character strings. Try my nSound.m and nplay.m, both at utilities/sound, instead. nsound plays a single note for a given duration, e.g., nSounds(‘C4′,1.5), and nplay uses nsound to play a musical tune, with a help section. No classical music demo though :)

  2. Alan Tan replied on :

    For the record, I was meddling with a Nokia cellphone and trying to compose Canon in D as the ringtone when I got the idea of how to transcribe the musical scores in text, in the fewest characters possible. Anyhow, I have added some simple examples in playtune.m (as advised by John) which I hope will shed some more light on the notation that I have used.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


MathWorks

Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

These postings are the author's and don't necessarily represent the opinions of The MathWorks.