pub struct Ctrl(pub u32, pub i32);
Expand description
Generate a controller (CC) event.
The argument is: ctrl, value.
Port and channel are set to 0
, you can use the modifiers
Port and Channel so change them.
let generator = Ctrl(7, 40);
let mut evs = EventStream::none();
generator.run(&mut evs);
assert_eq!(evs, CtrlEvent(0, 0, 7, 40));
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.