<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Jari,<br>
<br>
if I want to calculate the highest <b>staff position</b> of a note
entry,<br>
(i.e. taking into account any clef or mid measure-clef changes)<br>
this can be done by comparing all entries from <b>FCNote</b>:CalcActualDisplacement()
in a for-loop.<br>
<br>
If I want to calculate the highest <b>pitch </b>of a note entry
(i.e. NOT taking into account clef changes),<br>
it can be solved with FCNote<b>Entry</b>:CalcHighestDisplacement().<br>
<br>
I wonder if those method names are so self-explaining and if their
placement<br>
is so obvious for the developer (one in FCNote and one in
FCNoteEntry).<br>
<br>
My suggestion:<br>
- put both methods in FCNoteEntry, but also keep the
FCNote:CalcActualDisplacement() for calculating on a single note<br>
- Rename the CalcHighestDisplacement() in FCNoteEntry to
CalcHighestPitch()<br>
- Rename the CalcActualDisplacement() in FCNoteEntry to
CalcHighestDisplacement() (or CalcHighestStaffPosition())<br>
- Rename the CalcActualDisplacement() in FCNote to
CalcDisplacement() (or CalcStaffPosition())<br>
<br>
All the best,<br>
Jan<br>
<br>
</body>
</html>