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).


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

  • Zach: Hi Doug and Les, I didn’t have a lot of time to mess with this, but I did find a work-around. I plotted...
  • hamed: k
  • Les: @Zach This isn’t exactly what you are looking for but at least it puts all three parameters on the same...
  • Zach: Thanks for your suggestions Doug. I’ll give that a shot and see what happens. I’ve seen many of...
  • Doug: @Zach, I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense....
  • Doug: @Teja, I think this will work: http://www.mathworks .com/access/helpdesk /help/techdoc/ref...
  • Gify: merry christmas :) nice christmas tree! Regards, Janet Gify
  • Teja: Dear Doug Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i...
  • Zach: I’m working with geophysical data, so I’d like to produce a depth profile. The y-axis would be...
  • Doug: @Ashok First, please do not use variable names that are MATLAB commands (std and mean). Second, p(j) should be...

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