Home > Artistry > 음악공부 > MusicXML > 3. 음표·쉼표와 음높이·음길이
3. 음표·쉼표와 음높이·음길이
- arrow_circle_left2. 박자·조표·음자리표와 divisions
- arrow_circle_upMusicXML
- 4. 한글 가사(lyric)와 멜리스마arrow_circle_right
언제 쓰나: 마디 안에 실제 음표와 쉼표를 채울 때 쓴다. MusicXML에서는 소리 나는 길이(
duration)와 악보에 그리는 모양(type)을 따로 적는다는 점이 가장 중요하다.
1. 음높이(<pitch>)와 임시표(<alter>)
<pitch>는 알파벳 음이름(step), 반음 올림/내림(alter), 옥타브 번호(octave)로 이루어진다. 가온 다(Middle C)는 C4다.
점4분음표 F#4 + 8분음표 G4 (divisions=4 기준)MusicXML 4.0
<note>
<pitch>
<step>F</step>
<alter>1</alter> <!-- 1 = #, -1 = b (조표에 F#이 있어도 소리 높이에는 꼭 적는다) -->
<octave>4</octave>
</pitch>
<duration>6</duration> <!-- 4(4분음표) + 2(점) = 6 -->
<type>quarter</type>
<dot/>
</note>
<note>
<pitch>
<step>G</step>
<octave>4</octave>
</pitch>
<duration>2</duration> <!-- 8분음표 = 2 -->
<type>eighth</type>
</note>
핵심 규칙: G장조(fifths=1)처럼 조표에 F#이 이미 걸려 있더라도, <pitch> 안에는 반드시 <alter>1</alter>을 적어야 F#으로 연주·인식된다. 악보 위에 임시표 기호(#)를 굳이 표시하고 싶을 때만 <accidental>sharp</accidental>을 추가로 쓴다.
2. 음표 모양(<type>)과 길이 대응표
| 음표 이름 | <type> 값 |
duration (divisions=4) |
점음표 (<dot/>) |
|---|---|---|---|
| 온음표 | whole |
16 | — |
| 2분음표 | half |
8 | 12 |
| 4분음표 | quarter |
4 | 6 |
| 8분음표 | eighth |
2 | 3 |
| 16분음표 | 16th |
1 | — |
3. 쉼표(<rest/>), 화음(<chord/>), 붙임줄(<tie>)
쉼표 · 화음(C코드 3화음) · 마디 넘는 붙임줄MusicXML 4.0
<!-- 4분쉼표 -->
<note>
<rest/>
<duration>4</duration>
<type>quarter</type>
</note>
<!-- 화음: 두 번째 음표부터 <chord/>를 맨 앞에 붙인다 -->
<note>
<pitch><step>C</step><octave>4</octave></pitch>
<duration>4</duration>
<type>quarter</type>
</note>
<note>
<chord/>
<pitch><step>E</step><octave>4</octave></pitch>
<duration>4</duration>
<type>quarter</type>
</note>
<!-- 붙임줄: 소리(<tie>)와 그림(<notations><tied>)을 짝으로 적는다 -->
<note>
<pitch><step>G</step><octave>4</octave></pitch>
<duration>4</duration>
<tie type="start"/>
<type>quarter</type>
<notations><tied type="start"/></notations>
</note>
한 마디 안에 들어 있는 음표·쉼표의 duration 합계(<chord/> 음표 제외)는 그 마디의 박자 총길이(예: 4/4박자 + divisions=4이면 16)와 정확히 맞아야 한다.
- 원문 명세: MusicXML 4.0 — <note>
- 요소 레퍼런스: <pitch> · <chord>
최종 확인일: 2026-11-28