i am needing to write a program to clean up an audio signal where it is clamped to a negative value using the equation
A(i) = A(2), if i = 1
A(i-1)+A(i+1)/2, if 1<i<N
A(N-1), if i = N
where N is the total number of audio samples in 1 channel (there are 2 channels)
i need to write a subroutine for this algorithm with input from a .au file in the form:
# number_of_values_per_channel
A1(1) A2(1)
A1(2) A2(2)
A1(3) A2(3)
.
.
.
.
.
A1(N) A2(N)
and output it into another .au file
any pointers to get started?
A(i) = A(2), if i = 1
A(i-1)+A(i+1)/2, if 1<i<N
A(N-1), if i = N
where N is the total number of audio samples in 1 channel (there are 2 channels)
i need to write a subroutine for this algorithm with input from a .au file in the form:
# number_of_values_per_channel
A1(1) A2(1)
A1(2) A2(2)
A1(3) A2(3)
.
.
.
.
.
A1(N) A2(N)
and output it into another .au file
any pointers to get started?