<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Jari,<br>
    <br>
    FCNote:GetString() returns wrong values on very low pitches. When
    running a GetString directly followed by SetString it changes the
    pitches magically.<br>
    <br>
    If you open the attached file and run the script at the very bottom
    which just reads the pitch and then saves it again (so no changes
    !), it should print the note pitches:<br>
    E1 D1 C#1 B0<br>
    but it changes the last note and prints:<br>
    E1 D1 C#1 B<b>1<br>
      <br>
    </b>In a different key than A major with the same notes pitches
    (e.g. C major) I get other results (in C Major it's correct: E1 D1
    C#1 B0), so I think must have to do with the change from 1-octave to
    the 0-octave AND with the difference between ScaleRootIndex which
    goes from A to G and the RootRelationIndex from C to B.<br>
    <br>
    Jan<br>
    <br>
    Code snippet: (select the measure from the attached file before
    running the script)<br>
    <br>
    local region=finenv.Region()<br>
    local measure=finale.FCMeasure()<br>
    measure:Load(region.StartMeasure)<br>
    key=measure:GetKeySignature()<br>
    for e in eachentrysaved(region) do<br>
        for g in each(e) do<br>
            local pitch=finale.FCString()<br>
            g:GetString(pitch,key)<br>
            print(pitch.LuaString)    <br>
            g:SetString(pitch,key,false)<br>
        end<br>
    end<br>
  </body>
</html>