function [HMBandDist] = HMDist(HMBand, HMdisttype, HMdistgain, HMmix)
HMdistmix = HMmix / 100; %converting percentage to value between 0 and 1
if HMdisttype == 1
    HMBandDist = HMBand;
elseif HMdisttype == 2
    HMBandDist = od(HMBand, HMdistgain, HMdistmix);
elseif HMdisttype == 3
    HMBandDist = invtan2(HMBand, HMdistgain, HMdistmix);
elseif HMdisttype == 4
    HMBandDist = fuzz(HMBand, HMdistgain, HMdistmix);
elseif HMdisttype == 5
    HMBandDist = distort(HMBand,HMdistgain,HMdistmix);
elseif HMdisttype == 6
    HMBandDist = cubic(HMBand,HMdistgain,HMdistmix);
elseif HMdisttype == 7
    HMBandDist = cosinee(HMBand,HMdistgain,HMdistmix);
else errordlg('Something Went Wrong', 'High Mid Distortion')
end
