[][src]Trait polyphony::VoiceAssigner

pub trait VoiceAssigner<Voice, Identifier> {
    fn assign(
        &mut self,
        classifier: EventDispatchClass<Identifier>,
        voices: &mut [Voice]
    ) -> VoiceAssignment; }

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

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.

Loading content...

Implementors

impl<Voice, Identifier, T> VoiceAssigner<Voice, Identifier> for T where
    T: VoiceAssignerHelper<Voice, Identifier>, 
[src]

Loading content...