Struct rmididings::proc::Ctrl[][src]

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.

Examples

let generator = Ctrl(7, 40);

let mut evs = EventStream::none();
generator.run(&mut evs);
assert_eq!(evs, CtrlEvent(0, 0, 7, 40));

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.