To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / _segmentation / nullpart.m
History | View | Annotate | Download (312 Bytes)
| 1 |
function np = nullpart(parts, barlines) |
|---|---|
| 2 |
nullindices = ones(size(barlines)); |
| 3 |
for iPart = 1:length(parts) |
| 4 |
for iIndex = 1:length(parts(iPart).indices) |
| 5 |
nullindices(parts(iPart).indices(iIndex)+(0:parts(iPart).n-1)) = 0; |
| 6 |
end |
| 7 |
end |
| 8 |
np.n = 1; |
| 9 |
np.indices = find(nullindices); |
| 10 |
np.letter = '-'; |
| 11 |
np.level = 0; |