You are here: MusicXML Reference > Score Schema (XSD) > Elements > Element: hammer-on

Element: hammer-on

Description

The hammer-on and pull-off elements are used in guitar and fretted instrument notation. Since a single slur can be marked over many notes, the hammer-on and pull-off elements are separate so the individual pair of notes can be specified. The element content can be used to specify how the hammer-on or pull-off should be notated. An empty element leaves this choice up to the application.

Derived By

Type hammer-on-pull-off

Attributes
Name  Type  Required?  Default  Description 
type  start-stop  Yes 
number  number-level  No  When a number-level value is implied, the value is 1 by default.
default-x  tenths  No 
default-y  tenths  No 
relative-x  tenths  No 
relative-y  tenths  No 
font-family  comma-separated-text  No 
font-style  font-style  No 
font-size  font-size  No 
font-weight  font-weight  No 
color  color  No 
placement  above-below  No 
Content Model

Contains text only.

Referenced By
Example

        <notations>
          <slur number="1" placement="below" type="start"/>
          <technical>
            <hammer-on default-y="-64" number="1" type="start">H</hammer-on>
          </technical>
        </notations>
... 
       <notations>
          <slur number="1" type="stop"/>
          <technical>
            <hammer-on number="1" type="stop"/>
          </technical>
        </notations>

        <notations>
          <slur number="1" type="start"/>
          <technical>
            <string>4</string>
            <fret>5</fret>
            <hammer-on default-y="-11" number="1" type="start">H</hammer-on>
          </technical>
        </notations>
...
        <notations>
          <slur number="1" type="stop"/>
          <technical>
            <string>4</string>
            <fret>7</fret>
            <hammer-on number="1" type="stop"/>
          </technical>
        </notations>

Definition

See technical

 

MusicXML Documentation Home
Last built 2/20/2015

7007 Winchester Circle, Suite 140

Boulder, CO 80301