struct

Mystic::PitchClass

Inherits Struct < Value < Object

Represents a pitch class in Set Theory

To create a PitchClass:

# C
PitchClass.new(0)

Constructors

new(value : Int32)
Source

Instance methods

+(i : Int32) : PitchClass
Source
-(i : Int32) : PitchClass
Source
-(other : self) : Int32

Returns the numerical distance from the other pitch class

Source
<=>(other : self) : Int32
Source
==(other : self) : Bool
Source
ic_distance(other : self) : Int32

Returns the Interval Class distance from the other pitch class

Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
value
Source