pub fn with_midi_input<R>(self, use_device: impl FnOnce(Option<&MidiInput>) -> R) -> R {
        Reaper::get()
            .medium_real_time_reaper
            .get_midi_input(self.id, use_device)
    }
/// Must be called from real-time audio thread only!
Must be called from real-time audio thread only!
Must be called from real - time audio thread only!
pub fn with_midi_input<R>(self, use_device: impl FnOnce(Option<&MidiInput>) -> R) -> R {
        Reaper::get()
            .medium_real_time_reaper
            .get_midi_input(self.id, use_device)
    }
pub fn with_midi_input < R > ( self , use_device : impl FnOnce ( Option < & MidiInput > ) -> R ) -> R { Reaper :: get ( ) . medium_real_time_reaper . get_midi_input ( self . id , use_device ) }
Must be called from real-time audio thread only!
Must be called from real - time audio thread only!
self
use_device
impl FnOnce(Option<&MidiInput>) -> R
self
use_device
impl FnOnce(Option<&MidiInput>) -> R