Accidental

enum Accidental(val shift: Int, val symbol: String)

An adjustment to the frequency of a Pitch: a Flat, a Sharp, or a Natural.

Value parameters:
shift

the shift from the base frequency caused by the accidental (in semitones). A positive number means a higher frequency, a negative number a lower one.

symbol

a symbol describing the accidental: "#", "♭", or the empty string

trait Enum
trait Product
trait Equals
class Object
trait Matchable
class Any

Type members

Enum entries

case Flat extends Accidental

Marks a flat note. Assigning this accidental to a Pitch makes it one semitone lower.

Marks a flat note. Assigning this accidental to a Pitch makes it one semitone lower.

case Natural extends Accidental

Marks an unchanged, natural note (neither Sharp nor Flat).

Marks an unchanged, natural note (neither Sharp nor Flat).

case Sharp extends Accidental

Marks a sharp note. Assigning this accidental to a Pitch makes it one semitone higher.

Marks a sharp note. Assigning this accidental to a Pitch makes it one semitone higher.