Sequencer

o1.sound.midi.Sequencer
object Sequencer

This object is an interface to the underlying MIDI sequencer. It is a thin Scala wrapper around the sequencer in the Java MIDI API.

Attributes

Supertypes
class Object
trait Matchable
class Any

Members list

Keywords
  • no keywords
  • lazy

Value members

Concrete methods

def close(): Unit

Frees up resources associated with the sequencer’s Java peer.

Frees up resources associated with the sequencer’s Java peer.

def open(): Unit

Prepares the sequencer for use. This method needs to be called before calling start for the first time.

Prepares the sequencer for use. This method needs to be called before calling start for the first time.

Starts playing the given musical sequence.

Starts playing the given musical sequence.

You must call open once before playing any music with this method, or an IllegalStateException will be thrown.

music

the music to play

initialDelay

an initial delay, in milliseconds, to allow for the synthesizer’s latency. Defaults to Synthesizer.latency / 1000.

Concrete fields

lazy val peer: Sequencer

the underlying Java MIDI sequencer

the underlying Java MIDI sequencer