O1Library Docs
Fall 2023
Docs API

# Instrument

o1.sound.midi.Instrument$
See the Instrument companion class
object Instrument

This object provides a selection of constants that correspond to the 128 main instruments of the standard MIDI list. They are grouped in nested objects (Piano, Strings, etc.). The object PercussionChannel contains constants that correspond to the special sounds available on the MIDI percussion channel.

## Attributes

Companion
  class
Graph
Supertypes
  trait Product
  trait Mirror
  class Object
  trait Matchable
  class Any
Self type
  Instrument.type

## Members list

### Type members

#### Classlikes

object Bass

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Bass.type

object Brass

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Brass.type

object ChromaticPercussion

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  ChromaticPercussion.type

object Ensemble

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Ensemble.type

object Ethnic

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Ethnic.type

object Guitar

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Guitar.type

object Organ

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Organ.type

object Percussion

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Percussion.type

object PercussionChannel

Constants that evaluate to the notes (`String`s) that correspond to different special sounds on the MIDI standard’s percussion channel. For example, `BassDrum` is the note `"C3"` and `HandClap` the note `"D#3". See the package overview for an explanation of the note syntax.

Constants that evaluate to the notes (`String`s) that correspond to different special sounds on the MIDI standard’s percussion channel. For example, `BassDrum` is the note `"C3"` and `HandClap` the note `"D#3". See the package overview for an explanation of the note syntax.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  PercussionChannel.type

object Piano

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Piano.type

object Pipe

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Pipe.type

object Reed

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Reed.type

object SoundEffects

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  SoundEffects.type

object Strings

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  Strings.type

object SynthEffects

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  SynthEffects.type

object SynthLead

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  SynthLead.type

object SynthPad

Constants that correspond to instruments in the MIDI standard.

Constants that correspond to instruments in the MIDI standard.

## Attributes

Supertypes
  class Object
  trait Matchable
  class Any
Self type
  SynthPad.type

#### Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

## Attributes

Inherited from:
  Mirror

type MirroredLabel <: String

The name of the type

The name of the type

## Attributes

Inherited from:
  Mirror