object Synthesizer
This object is an interface to the underlying MIDI synthesizer. It is a thin Scala wrapper around the synthesizer in the Java MIDI API. Uses the piano sound.
- Alphabetic
- By Inheritance
- Synthesizer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- lazy val channels: Array[MidiChannel]
The channels available in the underlying MIDI synthesizer
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def close(): Unit
Frees up resources associated with the synthesizers’s Java peer.
- lazy val defaultChannel: MidiChannel
The first channel available in the underlying MIDI synthesizer.
The first channel available in the underlying MIDI synthesizer. Accessing this value throws a MidiUnavailableException in case no channels are available.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val latency: Long
The latench of the underlying MIDI synthesizer, in milliseconds.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noteOff(note: Pitch): Unit
Terminates the playing of an ongoing note played with noteOn.
Terminates the playing of an ongoing note played with noteOn.
This method throws a MidiUnavailableException if no MIDI channels are available.
- note
the note to terminate.
- def noteOn(note: Pitch, volume: Int): Unit
Plays a single note on the synthesized piano.
Plays a single note on the synthesized piano. The sound will fade away eventually or may be cut off using noteOff.
You must call open once before playing any music with this method, or no sound will play. The method throws a MidiUnavailableException if no MIDI channels are available.
- note
the note to play on the piano
- volume
the volume to play it at (between 0 and 127; if you pass in zero, this will work like noteOff)
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def open(): Unit
Prepares the synthesizer for use.
Prepares the synthesizer for use. This method needs to be called before calling noteOn for the first time.
- lazy val peer: javax.sound.midi.Synthesizer
the underlying Java MIDI synthesizer
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString: String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.