musicxml 1.1.2

MusicXML parsing, manipulation, and export library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::datatypes::StaffLinePosition;
use alloc::string::String;
use musicxml_internal::*;
use musicxml_macros::*;

/// [Line] numbers are counted from the bottom of the staff.
///
/// They are only needed with the G, F, and C signs in order to position a pitch correctly on the staff.
/// Standard values are 2 for the G sign (treble clef), 4 for the F sign (bass clef), and 3 for the C sign (alto clef).
/// Line values can be used to specify positions outside the staff, such as a C clef positioned in the middle of a grand staff.
#[derive(Debug, PartialEq, Eq, ElementDeserialize, ElementSerialize)]
pub struct Line {
  /// Element-specific attributes
  pub attributes: (),
  /// Element-specific content
  pub content: StaffLinePosition,
}