Struct rmididings::proc::Panic[][src]

pub struct Panic();
Expand description

Send MIDI panic

Sends all notes off (CC#123) and sustain off (CC#64) on all channels.

Note that, in contrast to mididings, the events are subject to port selection, so if you have multiple ports, send multiple MIDI panic events (one to each port).

Examples

let generator = Panic();

let mut evs = EventStream::empty();
generator.run(&mut evs);

assert_eq!(evs.len(), 32);

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.