musicxml/datatypes/
note_type_value.rs

1use alloc::string::String;
2use musicxml_internal::{DatatypeDeserializer, DatatypeSerializer};
3use musicxml_macros::{DatatypeDeserialize, DatatypeSerialize};
4
5/// Used for the MusicXML [Type][crate::elements::Type] element and represents the graphic note type,
6/// from 1024th (shortest) to maxima (longest).
7#[derive(Debug, PartialEq, Eq, DatatypeDeserialize, DatatypeSerialize)]
8pub enum NoteTypeValue {
9  /// ![Maxima](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-maxima.png)
10  Maxima,
11  /// ![Long](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-long.png)
12  Long,
13  /// ![Breve](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-breve.png)
14  Breve,
15  /// ![Whole](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-whole.png)
16  Whole,
17  /// ![Half](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-half.png)
18  Half,
19  /// ![Quarter](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-quarter.png)
20  Quarter,
21  /// ![Eighth](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-eighth.png)
22  Eighth,
23  /// ![16th](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-16th.png)
24  #[rename("16th")]
25  Sixteenth,
26  /// ![32nd](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-32nd.png)
27  #[rename("32nd")]
28  ThirtySecond,
29  /// ![64th](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-64th.png)
30  #[rename("64th")]
31  SixtyFourth,
32  /// ![128th](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-128th.png)
33  #[rename("128th")]
34  OneHundredTwentyEighth,
35  /// ![256th](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-256th.png)
36  #[rename("256th")]
37  TwoHundredFiftySixth,
38  /// ![512th](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-512th.png)
39  #[rename("512th")]
40  FiveHundredTwelfth,
41  /// ![1024th](https://hedgetechllc.github.io/musicxml/musicxml/datatypes/note-type-1024th.png)
42  #[rename("1024th")]
43  OneThousandTwentyFourth,
44}