[][src]Struct lp_tetris::Launchpad

pub struct Launchpad { /* fields omitted */ }

Methods

impl Launchpad[src]

pub fn new() -> Launchpad[src]

Finds a launchpad and returns it. Handles finding the port as well as connecting to it. Panics if a launchpad is not found.

pub fn close(self)[src]

Closes the underlying midi connection to the launchpad

impl Launchpad[src]

pub fn send_sysex(&mut self, msg_type: u8, data: &[u8])[src]

pub fn clear(&mut self)[src]

pub fn send_note(&mut self, note: u8, velocity: u8)[src]

pub fn send_matrix(&mut self, matrix: Array2D<u8>)[src]

impl Launchpad[src]

pub fn poll_input(&self) -> Option<ControlEvent>[src]

Get next ControlEvent

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.