case class Pitch(name: Char, accidental: Accidental, octave: Option[Int]) extends OccursInChord with Product with Serializable
A Pitch
is a frequency for a note to be played at.
- name
the name of the corresponding note, which provides the base frequency; one of "cdefgah" or their upper-case equivalents
- accidental
an adjustment to the base frequency
- octave
the number of the octave relative to DefaultOctave; e.g., -2 means two octaves lower than the default; passing in
None
has the same effect as passing iuzero
- Alphabetic
- By Inheritance
- Pitch
- Serializable
- Product
- Equals
- OccursInChord
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Pitch(name: Char, accidental: Accidental, octave: Option[Int])
- name
the name of the corresponding note, which provides the base frequency; one of "cdefgah" or their upper-case equivalents
- accidental
an adjustment to the base frequency
- octave
the number of the octave relative to DefaultOctave; e.g., -2 means two octaves lower than the default; passing in
None
has the same effect as passing iuzero
Value Members
- val accidental: Accidental
- val name: Char
- val octave: Option[Int]
- def productElementNames: Iterator[String]
- Definition Classes
- Product