
function chord = stripinversion(chordinput)

chord = '';

ilength = length(chordinput);

for i = 1:ilength
    
    if chordinput(i)~='/'
        chord = [chord chordinput(i)];
    else
        break;
    end
end

     