Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Need help writing a Matlab program!! Generate a musical tone
Hey guys I am new to this fourm and the program Matlab. I goto FAU (Florida Atlantic University) in Boca Raton. I am supposed to write a program that generates notes (C,C# etc to next C). The function should output a vector of samples of a note at the specified sampling rate and for the specified duration. Typical duration value for a quarter note is 0.15 seconds and an acceptable sampling rate is 10,000 samples per second. The function should be called "mytone."
The second half consists of writing a main program that calls on mytone for notes in a song or a score so that your program "plays" music. Suggestions are "Mary had a little lamb" "Captown races(?)" or "Twinkle twinkle little star". You may choose more sophisticated pieces if you like.
If any of you guys could help me that would be awesome!!