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
18
use crate::datatypes::Semitones;
use alloc::string::String;
use musicxml_internal::*;
use musicxml_macros::*;

/// The [BendAlter] element indicates the number of semitones in the bend, similar to the [Alter][super::Alter] element.
///
/// As with the [Alter][super::Alter] element, numbers like 0.5 can be used to indicate microtones. Negative values indicate pre-bends or releases.
/// The [PreBend][super::PreBend] and [Release][super::Release] elements are used to distinguish what is intended.
/// Because the [BendAlter] element represents the number of steps in the bend, a release after a bend has a negative [BendAlter] value, not a zero value.
#[derive(Debug, PartialEq, Eq, ElementDeserialize, ElementSerialize)]
#[rename("bend-alter")]
pub struct BendAlter {
  /// Element-specific attributes
  pub attributes: (),
  /// Element-specific content
  pub content: Semitones,
}