pub struct JitTuningModel<K> { /* private fields */ }Expand description
A more flexible but also more complex alternative to the AotTuningModel.
It allocates channels and yields detunings just-in-time and is, therefore, not dependent on any fixed tuning.
Implementations§
Source§impl<K> JitTuningModel<K>
impl<K> JitTuningModel<K>
pub fn new( num_channels: usize, group_by: GroupBy, pooling_mode: PoolingMode, ) -> Self
Source§impl<K: Copy + Eq + Hash> JitTuningModel<K>
impl<K: Copy + Eq + Hash> JitTuningModel<K>
pub fn register_key(&mut self, key: K, pitch: Pitch) -> RegisterKeyResult
pub fn deregister_key(&mut self, key: K) -> AccessKeyResult
pub fn access_key(&self, key: K) -> AccessKeyResult
pub fn active_keys(&self) -> impl Iterator<Item = K> + '_
Auto Trait Implementations§
impl<K> Freeze for JitTuningModel<K>
impl<K> RefUnwindSafe for JitTuningModel<K>where
K: RefUnwindSafe,
impl<K> Send for JitTuningModel<K>where
K: Send,
impl<K> Sync for JitTuningModel<K>where
K: Sync,
impl<K> Unpin for JitTuningModel<K>where
K: Unpin,
impl<K> UnwindSafe for JitTuningModel<K>where
K: UnwindSafe + RefUnwindSafe,
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