function cv_in = getCv(input,t,modDepth)

if input == 'sweep';
    cv_in = modDepth*t/(max(t)/2); %sweep  
    cv_in(round(end/2):end) = 0;
elseif input == 'trigger'
    cv_in = modDepth/2*(1+1*square(2*4*pi*t,5)); %.5*square(2*pi*8*t,5));%-.2*square(2*pi*3*t,5));
elseif input == 'sine'
    cv_in = modDepth/2*(1+.9*sin(2*2*pi*t)); %sweep with modulation
elseif input == 'accented'
        cv_in = modDepth/2*(1+.3*square(2*pi*t,5)+.7*square(2*2*pi*t,2)); %.5*square(2*pi*8*t,5));%-.2*square(2*pi*3*t,5));
elseif input == 'zero'
    cv_in = zeros(1,length(t));
elseif input =='modsweep'
        cv_in = modDepth*t/(max(t)/2); %sweep  
    cv_in = cv_in*.5+2*sin(2*pi*(2+2.*t).*t); %sweep with modulation
else
    cv_in = modDepth;
end
