[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printing bar line positions into a file
From: |
Thomas Morley |
Subject: |
Re: printing bar line positions into a file |
Date: |
Sun, 29 Jan 2012 15:40:58 +0100 |
Hi Werner,
2012/1/29 Werner LEMBERG <address@hidden>:
>
>>> I want to collect the horizontal positions of all bar lines (or
>>> rather, the position of the first beat in a bar) within an output
>>> text file.
>>
>> I'm not a scheme guru (so I'm sure the code could be more elegant)
>> but the attached file seems to work (reading out every NoteColumn on
>> the first beat of a measure).
>
> Thanks a lot! I've refined your solution, renamed stuff, adding
> comments, etc. Please see the attached file.
>
>
> Werner
further testing showed some problems. In the following the first
NoteColumn of \partial and after \bar ":|:" is catched!
\relative c' {
\printXPos
\partial 8 c8
\repeat unfold 10 { c2 c4 \bar ":|:" c8 r }
}
Currently I've no idea to avoid this, I will think about it furthermore.
Cheers,
Harm