Sign in
Register
Home
Projects
Help
Search
:
Paris Hackday Code
Overview
Members
Activity
Repository
Code docs
FFmpeg
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
fix_offset.m
Go to the documentation of this file.
1
function
[] = fix_offset(
melody
,melodyps)
2
%e.g. fix_offset(
'melody.wav'
,
'melody_ps12.wav'
);
3
4
x
= wavread(
melody
);
5
y
= wavread(melodyps);
6
7
ind1
= find(
x
>0, 1,
'last'
);
8
ind2
= find(
y
>0, 1,
'last'
);
9
10
y
= [zeros(ind1-ind2,1); y];
11
wavwrite
(
y
,44100,melodyps);
wavwrite
wavwrite(y, 44100, melodyps)
ind2
ind2
Definition:
fix_offset.m:8
y
y
Definition:
fix_offset.m:5
ind1
ind1
Definition:
fix_offset.m:7
melody
Load melody file melody
Definition:
extractInstrumental.m:27
x
x
Definition:
fix_offset.m:4
Generated on Mon Nov 18 2024 06:51:54 for FFmpeg by
1.8.11
Loading...