MirrorAxis
The MirrorAxis class is used to invert Pitch vectors about a fixed point via Pitch.invert.
Class Constructor
Section titled “Class Constructor”MirrorAxis(p: Pitch, q: Pitch)A MirrorAxis is constructed from two Pitch vectors, which would be sent to each other via inversion about the resultant axis.
axis = MirrorAxis( SPN.to_pitch("C4"), SPN.to_pitch("G4"),)
p = SPN.to_pitch("E4")p.invert(axis) # Eb4from_spn
Section titled “from_spn”MirrorAxis.from_spn(ps: str, qs: str) -> MirrorAxisCreates a MirrorAxis using SPN strings for two Pitch vectors which would be sent to each other via inversion about the resultant axis.
axis = MirrorAxis.from_spn("C4", "G4")