Matlab M-sample delay feedforward comb filter M = ...; % sample delayn g = ...; % comb filter coefficient N = ...; % signal length x = [1; zeros(N-1,1)]; % input impulse filter([1; zeros(M-1); g], 1, x);
Solutions:
Beginning with your circular delay line:
Solutions:
Beginning with your (non-interpolating) circular delay line:
Solutions:
Beginning with your Karplus-Strong pluck string model, extend using
Implement a 1-D digital waveguide (bi-directional delay line) of a plucked string.
S = [1 1 1 1]; Nj = length(S) - 1; k = (S(1:end-1) - S(2:end)) ./ (S(1:end-1) + S(2:end));as this should produce the same output as a purely cylindrical waveguide model.
load 'A-bart44100.txt';Try your model with the following source as input: