I am confused by the behaviour of the object inspector. When I open the
object inspector on the note in the chord staff of the attached file, it
shows two entries: One with name "Chord Variant (Chord staff)" (the
label of the command I used to create it, see script below) and one with
"/e", although I only created one object. The entry "/e" only has a tag
entry. I find this confusing. Can you please explain the intention of
this behaviour?
Thanks
Andreas
;;;ChordVariant
(let ((tag "ChordVariant")(thevariant ""))
(if (d-Directive-chord? tag)
(d-DirectiveDelete-chord tag)
(begin
(d-DirectivePut-chord-prefix tag "\\chordmode{ ")
(d-DirectivePut-chord-postfix tag "}")
(set! thevariant (d-GetUserInput "Chord Symbols" "Give chord modifier
text (without the colon):" ""))
(disp thevariant)
(d-DirectivePut-chord-postfix tag (string-append ":" thevariant "} "))
(d-DirectivePut-chord-override tag DENEMO_OVERRIDE_AFFIX)
(d-DirectivePut-chord-minpixels thevariant 20)
(d-DirectivePut-chord-display tag thevariant)
)
)
(d-RefreshDisplay)
(d-SetSaved #f)
)
<?xml version="1.0" encoding="UTF-8"?>
<score xmlns="http://denemo.org/xmlns/Denemo" version="7">
<thumbnail>
<first-staff>1</first-staff>
<last-staff>3</last-staff>
<first-measure>1</first-measure>
<last-measure>3</last-measure>
<first-obj>0</first-obj>
<last-obj>2147483647</last-obj>
</thumbnail>
<lilycontrol>
<papersize>a4</papersize>
<fontsize>18</fontsize>
<orientation>1</orientation>
<total-edit-time>0</total-edit-time>
</lilycontrol>
<movement-number>1</movement-number>
<movement>
<edit-info>
<staffno>1</staffno>
<measureno>1</measureno>
<cursorposition>0</cursorposition>
<tonalcenter>0</tonalcenter>
<zoom>100</zoom>
<system-height>100</system-height>
<page-zoom>0</page-zoom>
<page-system-height>0</page-system-height>
</edit-info>
<score-info>
<tempo>
<duration>
<numerator>1</numerator>
<denominator>4</denominator>
</duration>
<bpm>120</bpm>
</tempo>
</score-info>
<staves>
<staff id="id0"></staff>
<staff id="id1"></staff>
</staves>
<voices>
<voice id="id2">
<voice-info>
<voice-name>Part 1</voice-name>
<first-measure-number>1</first-measure-number>
</voice-info>
<initial-voice-params>
<staff-ref staff="id0"></staff-ref>
<clef name="treble">
<directives>
<directive>
<tag>ChordStaff</tag>
<postfix>
</postfix>
<display> X</display>
<override>1</override>
</directive>
</directives>
</clef>
<key-signature>
<modal-key-signature note-name="C" mode="major"></modal-key-signature>
<directives>
<directive>
<tag>ChordStaff</tag>
<postfix>
</postfix>
<display>ChordStaff</display>
<override>17</override>
</directive>
</directives>
</key-signature>
<time-signature>
<simple-time-signature>
<numerator>4</numerator>
<denominator>4</denominator>
</simple-time-signature>
<directives>
<directive>
<tag>ChordStaff</tag>
<postfix>
</postfix>
<display>ChordStaff</display>
<override>1</override>
</directive>
</directives>
</time-signature>
</initial-voice-params>
<voice-props>
<number-of-lines>5</number-of-lines>
<voice-control>1</voice-control>
<transpose>0</transpose>
<instrument></instrument>
<device-port>NONE</device-port>
<volume>127</volume>
<override_volume>0</override_volume>
<mute>0</mute>
<midi_prognum>0</midi_prognum>
<midi_channel>0</midi_channel>
<hasfigures>0</hasfigures>
<hasfakechords>0</hasfakechords>
<staff-directives>
<directive>
<tag>ChordStaff</tag>
<display>ChordStaff</display>
<override>21</override>
</directive>
</staff-directives>
<voice-directives>
<directive>
<tag>ChordStaff</tag>
<prefix>\new ChordNames
</prefix>
<display>ChordStaff</display>
<override>5</override>
</directive>
</voice-directives>
<clef-directives>
<directive>
<tag>ChordStaff</tag>
<postfix>
</postfix>
<display> X</display>
<override>1</override>
</directive>
</clef-directives>
</voice-props>
<measures>
<measure>
<chord show="true" id="id3">
<duration base="whole"></duration>
<directives>
<directive>
<tag>ChordVariant</tag>
<prefix>\chordmode{ </prefix>
<postfix>:/e} </postfix>
<display>/e</display>
<override>16</override>
</directive>
<directive>
<tag>/e</tag>
<minpixels>20</minpixels>
</directive>
</directives>
<notes>
<note id="id4">
<middle-c-offset>0</middle-c-offset>
</note>
</notes>
</chord>
</measure>
</measures>
</voice>
<voice id="id5">
<voice-info>
<voice-name>Part 2</voice-name>
<first-measure-number>1</first-measure-number>
</voice-info>
<initial-voice-params>
<staff-ref staff="id1"></staff-ref>
<clef name="treble"></clef>
<key-signature>
<modal-key-signature note-name="C" mode="major"></modal-key-signature>
</key-signature>
<time-signature>
<simple-time-signature>
<numerator>4</numerator>
<denominator>4</denominator>
</simple-time-signature>
</time-signature>
</initial-voice-params>
<voice-props>
<number-of-lines>5</number-of-lines>
<voice-control>1</voice-control>
<transpose>0</transpose>
<instrument></instrument>
<device-port>NONE</device-port>
<volume>127</volume>
<override_volume>0</override_volume>
<mute>0</mute>
<midi_prognum>0</midi_prognum>
<midi_channel>1</midi_channel>
<hasfigures>0</hasfigures>
<hasfakechords>0</hasfakechords>
</voice-props>
<measures>
<measure>
<chord show="true" id="id6">
<duration base="whole"></duration>
<notes>
<note id="id7">
<middle-c-offset>0</middle-c-offset>
</note>
</notes>
</chord>
</measure>
</measures>
</voice>
</voices>
</movement>
</score>
_______________________________________________
Denemo-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/denemo-devel