Function transpose

Source
pub fn transpose<T: PrimInt>(note: T, semitones: T) -> Option<T>
Expand description

Transpose a midi value, safely keeping it within the bounds of the range 0-127.

If the resulting value is out of range or the addition operation overflows, it returns a None, otherwise a Some containing the transposed value.