pub struct MelodicInsertionContext {
pub chord_plan: Option<ChordPlan>,
pub local_keys: Vec<MelodicLocalKey>,
pub phrase_end_measures: Vec<usize>,
pub selections: Vec<MelodicInsertionSelection>,
pub max_insertions_per_measure: Option<usize>,
}Expand description
Optional musical context. Empty fields retain the conservative legacy behavior.
Fields§
§chord_plan: Option<ChordPlan>§local_keys: Vec<MelodicLocalKey>§phrase_end_measures: Vec<usize>§selections: Vec<MelodicInsertionSelection>§max_insertions_per_measure: Option<usize>Trait Implementations§
Source§impl Clone for MelodicInsertionContext
impl Clone for MelodicInsertionContext
Source§impl Debug for MelodicInsertionContext
impl Debug for MelodicInsertionContext
Source§impl Default for MelodicInsertionContext
impl Default for MelodicInsertionContext
Source§impl<'de> Deserialize<'de> for MelodicInsertionContextwhere
MelodicInsertionContext: Default,
impl<'de> Deserialize<'de> for MelodicInsertionContextwhere
MelodicInsertionContext: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for MelodicInsertionContext
impl Freeze for MelodicInsertionContext
impl RefUnwindSafe for MelodicInsertionContext
impl Send for MelodicInsertionContext
impl Sync for MelodicInsertionContext
impl Unpin for MelodicInsertionContext
impl UnsafeUnpin for MelodicInsertionContext
impl UnwindSafe for MelodicInsertionContext
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