fix_offset.m File Reference

Go to the source code of this file.

Functions

 wavwrite (y, 44100, melodyps)
 

Variables

 function []
 
 x = wavread(melody)
 
 y = wavread(melodyps)
 
 ind1 = find(x>0, 1, 'last')
 
 ind2 = find(y>0, 1, 'last')
 

Function Documentation

wavwrite ( y  ,
44100  ,
melodyps   
)

Variable Documentation

function[]
Initial value:
= fix_offset(melody,melodyps)
%e.g. fix_offset('melody.wav','melody_ps12.wav')
Load melody file melody

Definition at line 1 of file fix_offset.m.

ind1 = find(x>0, 1, 'last')

Definition at line 7 of file fix_offset.m.

ind2 = find(y>0, 1, 'last')

Definition at line 8 of file fix_offset.m.

x = wavread(melody)

Definition at line 4 of file fix_offset.m.

y = wavread(melodyps)

Definition at line 5 of file fix_offset.m.