Play last third of a wav file
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
this is part of a question I have to create a program for, I have no code just yet, but I was wondering how to play the last part of a wav file as asked: The second WAV file will have the last Hallelujah repeated three times (and no other sound). any help for this part will get me going in the right direction thanks.
0 Commenti
Risposta accettata
Youssef Khmou
il 26 Mar 2013
Modificato: Youssef Khmou
il 26 Mar 2013
hi, try :
sound(y(2/3:end,Fs); % with Fs the sampling frequency
% EDITED ANSWER
ok Walter is right the answer is not complete/wrong, here is the correct version :
% example :
data=load('gong.mat')
y=data.y;
Fs=data.Fs;
N=length(y);
sound(y(round(2/3*N):N),Fs); % round|ceil|floor
2 Commenti
Più risposte (1)
Image Analyst
il 26 Mar 2013
You pretty much do have code for this. It's in your other question: my code in my answer. The code just needs slight adaptation.
Vedere anche
Categorie
Scopri di più su Audio I/O and Waveform Generation in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!