/// Zero-indexed scale degrees: 0 is root, 4 is fifth
Zero-indexed scale degrees: 0 is root, 4 is fifth
Zero - indexed scale degrees : 0 is root 4 is fifth
pub fn scale_degree(self, degree: isize) -> Tpc {
        /// Each scale degree's distance from the root, in fifths
        const OFFSETS: [i8; 7] = [0, 2, 4, -1, 1, 3, 5];
        let value = self as i8 + OFFSETS[degree.rem_euclid(7) as usize];
        FromPrimitive::from_i8(value).unwrap()
    }
pub fn scale_degree ( self , degree : isize ) -> Tpc { /// Each scale degree's distance from the root, in fifths const OFFSETS : [ i8 ; 7 ] = [ 0 , 2 , 4 , - 1 , 1 , 3 , 5 ] ; let value = self as i8 + OFFSETS [ degree . rem_euclid ( 7 ) as usize ] ; FromPrimitive :: from_i8 ( value ) . unwrap ( ) }
Zero-indexed scale degrees: 0 is root, 4 is fifth
Zero - indexed scale degrees : 0 is root 4 is fifth
self
degree
isize