Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support prebends #221

Open
jaredjj3 opened this issue May 6, 2024 · 0 comments
Open

Support prebends #221

jaredjj3 opened this issue May 6, 2024 · 0 comments

Comments

@jaredjj3
Copy link
Collaborator

jaredjj3 commented May 6, 2024

Expected behavior
image

Actual behavior
image

Screenshot
See above.

Hints
We need to wait for the outcome in 0xfe/vexflow#1619 before trying to do this.

MusicXML

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE score-partwise PUBLIC '-//Recordare//DTD MusicXML 2.0 Partwise//EN' 'http://www.musicxml.org/dtds/2.0/partwise.dtd'>
<score-partwise version="2.0">
 <identification>
  <encoding>
   <encoding-date>2024-05-06</encoding-date>
   <software>Guitar Pro 7.6.0</software>
   <supports element="print" type="yes" attribute="new-system" value="yes"/>
  </encoding>
 </identification>
 <defaults>
  <scaling>
   <millimeters>6.4</millimeters>
   <tenths>40</tenths>
  </scaling>
  <page-layout>
   <page-height>1850</page-height>
   <page-width>1310</page-width>
  </page-layout>
 </defaults>
 <part-list>
  <score-part id="P1">
   <part-name>Guitar</part-name>
   <part-abbreviation>Guitar</part-abbreviation>
   <midi-instrument id="P1">
    <midi-channel>1</midi-channel>
    <midi-bank>1</midi-bank>
    <midi-program>26</midi-program>
    <volume>80</volume>
    <pan>0</pan>
   </midi-instrument>
  </score-part>
 </part-list>
 <part id="P1">
  <measure number="1">
   <print new-system="yes"/>
   <attributes>
    <divisions>1</divisions>
    <key>
     <fifths>0</fifths>
     <mode>major</mode>
    </key>
    <time>
     <beats>4</beats>
     <beat-type>4</beat-type>
    </time>
    <clef number="1">
     <sign>TAB</sign>
     <line>5</line>
    </clef>
    <staff-details number="1">
     <staff-lines>6</staff-lines>
     <staff-tuning line="1">
      <tuning-step>E</tuning-step>
      <tuning-octave>2</tuning-octave>
     </staff-tuning>
     <staff-tuning line="2">
      <tuning-step>A</tuning-step>
      <tuning-octave>2</tuning-octave>
     </staff-tuning>
     <staff-tuning line="3">
      <tuning-step>D</tuning-step>
      <tuning-octave>3</tuning-octave>
     </staff-tuning>
     <staff-tuning line="4">
      <tuning-step>G</tuning-step>
      <tuning-octave>3</tuning-octave>
     </staff-tuning>
     <staff-tuning line="5">
      <tuning-step>B</tuning-step>
      <tuning-octave>3</tuning-octave>
     </staff-tuning>
     <staff-tuning line="6">
      <tuning-step>E</tuning-step>
      <tuning-octave>4</tuning-octave>
     </staff-tuning>
    </staff-details>
   </attributes>
   <direction placement="above">
    <direction-type>
     <words><![CDATA[prebend]]></words>
    </direction-type>
   </direction>
   <note>
    <pitch>
     <step>F</step>
     <octave>4</octave>
    </pitch>
    <duration>4</duration>
    <voice>1</voice>
    <type>whole</type>
    <stem>up</stem>
    <notations>
     <technical>
      <bend>
       <bend-alter>2</bend-alter>
       <pre-bend/>
      </bend>
      <string>1</string>
      <fret>1</fret>
     </technical>
    </notations>
   </note>
  </measure>
  <measure number="2">
   <direction placement="above">
    <direction-type>
     <words><![CDATA[prebend+bend]]></words>
    </direction-type>
   </direction>
   <note>
    <pitch>
     <step>F</step>
     <octave>4</octave>
    </pitch>
    <duration>4</duration>
    <voice>1</voice>
    <type>whole</type>
    <stem>up</stem>
    <notations>
     <technical>
      <bend>
       <bend-alter>1</bend-alter>
       <pre-bend/>
      </bend>
      <bend>
       <bend-alter>2</bend-alter>
      </bend>
      <string>1</string>
      <fret>1</fret>
     </technical>
    </notations>
   </note>
  </measure>
  <measure number="3">
   <direction placement="above">
    <direction-type>
     <words><![CDATA[prebend+release]]></words>
    </direction-type>
   </direction>
   <note>
    <pitch>
     <step>F</step>
     <octave>4</octave>
    </pitch>
    <duration>4</duration>
    <voice>1</voice>
    <type>whole</type>
    <stem>up</stem>
    <notations>
     <technical>
      <bend>
       <bend-alter>2</bend-alter>
       <pre-bend/>
      </bend>
      <bend>
       <bend-alter>0</bend-alter>
       <release/>
      </bend>
      <string>1</string>
      <fret>1</fret>
     </technical>
    </notations>
   </note>
  </measure>
 </part>
</score-partwise>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant