Re: Generation of Sinusoids
Quote:
Originally Posted by
esoli
Hi there, I have a question about "Generation of Sinusoids" with this command:
would anyone explain to me about that. (I don't know what is @?)
this is a piece of the program to make music.
%Generate General Sinusoid
%m is the desired octave, which is transformed into the appropriate multiplier by the oct function
%L is the desired length of the note (in quarter notes)
%fN is the frequncy of the note
note = @(m, L, fN) sin(2*pi*oct(m)*fN*T*n(L)); %standard note at fund. freq.
Anonymous Function:
Anonymous Functions :: Types of Functions (MATLABŪ)
CB