[−][src]Trait polyphony::VoiceAssigner
Define to which particular voice(s) the event should be assigned, based on the EventDispatchClass
.
This does the "voice stealing".
Required methods
fn assign(
&mut self,
classifier: EventDispatchClass<Identifier>,
voices: &mut [Voice]
) -> VoiceAssignment
&mut self,
classifier: EventDispatchClass<Identifier>,
voices: &mut [Voice]
) -> VoiceAssignment
Define to which particular voice(s) the event should be assigned, based on the EventDispatchClass
.
The implementation of this method may assume that for subsequent calls to it, always the
same slice of voices is used.
Implementors
impl<Voice, Identifier, T> VoiceAssigner<Voice, Identifier> for T where
T: VoiceAssignerHelper<Voice, Identifier>,
[src]
T: VoiceAssignerHelper<Voice, Identifier>,
fn assign(
&mut self,
classifier: EventDispatchClass<Identifier>,
voices: &mut [Voice]
) -> VoiceAssignment
[src]
&mut self,
classifier: EventDispatchClass<Identifier>,
voices: &mut [Voice]
) -> VoiceAssignment