matthiasm@8: function np = nullpart(parts, barlines) matthiasm@8: nullindices = ones(size(barlines)); matthiasm@8: for iPart = 1:length(parts) matthiasm@8: for iIndex = 1:length(parts(iPart).indices) matthiasm@8: nullindices(parts(iPart).indices(iIndex)+(0:parts(iPart).n-1)) = 0; matthiasm@8: end matthiasm@8: end matthiasm@8: np.n = 1; matthiasm@8: np.indices = find(nullindices); matthiasm@8: np.letter = '-'; matthiasm@8: np.level = 0;