step1.m
Go to the documentation of this file.
1 function step1(song)
2 
3 [x,fs,bits] = wavread(song);
4 x = resample(x,44100,fs);
5 y = extractMelody(x,hamming(2025),4096,'baby.txt');
6 wavwrite(y,44100,'melody.wav');
y
Definition: step1.m:5
static int resample(ResampleContext *c, void *dst, const void *src, int *consumed, int src_size, int dst_size, int update_ctx)
function step1(song)[x
function fs
Definition: step1.m:3
wavwrite(y, 44100,'melody.wav')
x
Definition: step1.m:4