--
You received this message because you are subscribed to the Google Groups "mus2-en" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mus2-en+u...@googlegroups.com.
To post to this group, send email to mus...@googlegroups.com.
Visit this group at https://groups.google.com/group/mus2-en.
For more options, visit https://groups.google.com/d/optout.
Hello Sajjad,
As a simple solution, the SymbTr to WAV Matlab code below may be useful for you:
Kemal
*
% symbtr2wav_example
fileName = 'ussak--ornek-oz--semai----ra.txt';
sampleRate = 44100;
write = 1;
[fid, msg] = fopen(fileName, 'r', 'n');
[SymbTr, ~, ~] = tblread(fileName, '\t');
FRQ = 440*2.^(SymbTr(:,4)/53-69/12);
SEC = SymbTr(:, 8)/1000;
AMP = SymbTr(:, 10)/100;
Y = [];
for i=1:size(FRQ)
k = SEC(i)*sampleRate;
N = [1:k];
ENV = 4*AMP(i).*(N*k-N.*N)/k^2;
T = ENV.*sin(2*pi*(FRQ(i)/sampleRate).*N);
Y = [Y ENV.*sin(2*pi*(FRQ(i)/sampleRate).*N)];
soundsc(T, sampleRate);
end
wavwrite(Y, sampleRate, 16, [fileName '.wav']);
*