Struct rmididings::proc::Velocity [−][src]
pub struct Velocity(pub i16);
Expand description
Modify the note velocity by an amount.
The argument is: offset.
Examples
let modifier = Velocity(10); let mut evs = EventStream::from(NoteOnEvent(0,0,60,40)); modifier.run(&mut evs); assert_eq!(evs, NoteOnEvent(0,0,60,50));
let modifier = Velocity(-10); let mut evs = EventStream::from(NoteOnEvent(0,0,60,40)); modifier.run(&mut evs); assert_eq!(evs, NoteOnEvent(0,0,60,30));
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Velocity
impl UnwindSafe for Velocity