

#SOUNDNOTE DOWNLOAD FOR FREE CODE#
We get all information about all notes and musical score, but it's Matlab code, not Mathematica, we need use Mathematica code translate it.(The Mathematica file at the bottom of the article, it's a little bit long, so I decided not to paste it here) ģ.Third, arrange the different instruments' sequenceĬanon is an very interesting music style, you just need to put the same melody at 3 different time points, and done! (I know I didn't explain it clearly, you can see Canon's wiki link) Violin = [mi2f mi2f re2f re2f do2f do2f ti1f ti1f. This part is easy to understand, just input the score.
#SOUNDNOTE DOWNLOAD FOR FREE HOW TO#
This the way how to make sounds in Matlab.Ģ.Second, tell the computer musical score So the Matlab code looks more clear! It becomes$$notename=mod4\times cos(2\pi f t)$$ the number behind "mod" means it's duration Iii.mod is a modification function, it makes notes sound more soft. In the Matlab code, the frequency depends on "$ScaleTable(\space)\times f0$" If you plot the the curve of middle A, it will be like that Ii.Obviously, "do0f" means the note's tone. In the Matlab code, the duration depends on $t4,t8, or\space t16$ $means (), the duration of Quarter note is twice that of Eighth note, the duration of 8th note is twice that of 16th note. La0s = mod16.*cos(2*pi*ScaleTable(3)*f0*t16) įor clear to see, I just pick few notes information I will attach some concepts' wikilink, sorry about that) % 1/4 notesĭo0f = mod4.*cos(2*pi*ScaleTable(21)*f0*t4) (I'm a Chinese student, hopefully my poor English didn't confuse you. Matlab codeġ.First, tell the computer how to make certain sounds.

Here is Youtube Link.Hopefully you like it.įirst I use the Bach's manuscript as the music score, but the output sound is chaos around the middle part.This score fit to play with the instrument, obviously not Mathematica.Īfter posting this awful version to my Weibo, my friend told me there is a Canon played by Matlab, it's so amazing, the most important its score suits for playing with software, so i decided to translate this score from Matlab to Mathematica.

I'm a Mathematica novice, so i think there is a lot of space to improve the code. Finance, Statistics & Business Analysis.Wolfram Knowledgebase Curated computable knowledge powering Wolfram|Alpha. Wolfram Universal Deployment System Instant deployment across cloud, desktop, mobile, and more. Wolfram Data Framework Semantic framework for real-world data.
