pub struct ExportOptions {
pub add_start_delay: bool,
pub add_end_delay: bool,
pub acceptable_channels: Option<Vec<u8>>,
}Expand description
How to_midi writes a score: music21’s streamToMidiFile keywords.
Fields§
§add_start_delay: boolWhether the notes start a quarter late, leaving a beat of silence
before the first: music21’s addStartDelay, off by default.
add_end_delay: boolWhether each track ends a quarter after its last event: music21’s
addEndDelay, on by default.
acceptable_channels: Option<Vec<u8>>The channels, counted from one, a part may be given:
music21’s acceptableChannelList. None is every channel but the
tenth, which is the drums’.
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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