OctaveShift

final case class OctaveShift(shift: Int) extends MusicElem

Each instance of this class is a directive that instructs the subsequent notes to play one octave higher or lower.

Value parameters:
shift

the direction of the shift: +1 means one octave higher, -1 one lower

trait Product
trait Equals
trait MusicElem
class Object
trait Matchable
class Any

Value members

Concrete methods

override def toString: String

Returns a string description of the octave shift.

Returns a string description of the octave shift.

Definition Classes

Inherited methods

Inherited from:
Product

Concrete fields

val length: Int

an OctaveShift is a meta directive; it has no duration, so its length is zero

an OctaveShift is a meta directive; it has no duration, so its length is zero