O1Library Docs
Fall 2023
Docs API

# Music

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

This companion object of class `Music` provides additional options for creating `Music` objects.

## Attributes

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

## Members list

### Type members

#### 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

### Value members

#### Concrete methods

def fromString(musicString: String): Music

Constructs a music object from the given string, which must follow the format specified in the package overview. An `IllegalArgumentException` is thrown if it doesn’t. (This is equivalent to parsing the string with `parse`.)

Constructs a music object from the given string, which must follow the format specified in the package overview. An `IllegalArgumentException` is thrown if it doesn’t. (This is equivalent to parsing the string with `parse`.)

## Attributes

### Givens

given derived$CanEqual: CanEqual[Music, Music]