struct Mystic::PitchClass
- Mystic::PitchClass
- Struct
- Value
- Object
Overview
Represents a pitch class in Set Theory
To create a PitchClass:
# C
PitchClass.new(0)
Defined in:
mystic/pitch_class.crConstructors
Instance Method Summary
- #+(i : Int32) : PitchClass
- #-(i : Int32) : PitchClass
-
#-(other : self) : Int32
Returns the numerical distance from the other pitch class
- #<=>(other : self) : Int32
- #==(other : self) : Bool
-
#ic_distance(other : self) : Int32
Returns the Interval Class distance from the other pitch class
-
#to_s(io : IO) : Nil
Same as
#inspect(io)
. - #value : Int32
Constructor Detail
Instance Method Detail
def ic_distance(other : self) : Int32
#
Returns the Interval Class distance from the other pitch class