pub struct ExportOptions {
pub encoding_date: Option<String>,
pub software: String,
pub default_title: Option<String>,
pub default_author: Option<String>,
pub make_notation: bool,
}musicxml only.Expand description
What a document says about how it was made, where the score does not say.
The defaults are music21’s own, so that a score written here reads as the one music21 writes; a caller making a document of its own will want its own title and author, or none.
Fields§
§encoding_date: Option<String>The <encoding-date>, as YYYY-MM-DD. music21 writes the day it ran;
the crate reads no clock, so the date is written only when given.
software: StringThe <software> line written when the score carries no metadata.
A score with metadata names its software there instead.
default_title: Option<String>The movement title of a score with no title of its own: music21’s
defaults.title, Music21 Fragment.
The composer named when the score names no contributor: music21’s
defaults.author, Music21.
make_notation: boolWhether to work out the notation the score leaves unsaid before
writing it, as music21’s exporter does with makeNotation=True:
gaps filled with unprinted rests, a part with no measures cut into
them, notes running past a barline cut and tied, accidentals decided,
notes beamed and tuplets bracketed where the part has none yet, and
lengths no single note value writes cut into tied values. A measure
or a voice handed in alone is written as a part of one measure, given
the meter and clef its notes fit where it states none. The score
handed in is not changed.
Off, the score is written as it stands, which is music21’s
makeNotation=False: a caller that has made its notation already
gets exactly what it made.
Trait Implementations§
Source§impl Clone for ExportOptions
impl Clone for ExportOptions
Source§impl Debug for ExportOptions
impl Debug for ExportOptions
Source§impl Default for ExportOptions
impl Default for ExportOptions
impl Eq for ExportOptions
Source§impl PartialEq for ExportOptions
impl PartialEq for ExportOptions
impl StructuralPartialEq for ExportOptions
Auto Trait Implementations§
impl Freeze for ExportOptions
impl RefUnwindSafe for ExportOptions
impl Send for ExportOptions
impl Sync for ExportOptions
impl Unpin for ExportOptions
impl UnsafeUnpin for ExportOptions
impl UnwindSafe for ExportOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more