Instrument

case class Instrument(number: Int) extends MusicElem

A MusicElem that sets the instrument for the upcoming notes. The 128 main instruments of the standard MIDI list are supported. The companion object of this class provides constants that match those instruments.

Value parameters:
number

the number of a MIDI instrument between 0 and 127, inclusive

Companion:
object
trait Product
trait Equals
trait MusicElem
class Object
trait Matchable
class Any

Value members

Inherited methods

Inherited from:
Product

Concrete fields

val length: Int

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

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