InstrumentNote

fun InstrumentNote(note: Note, instrument: Instrument, amplitude: Float = 0.5f)

Composable for playing an instrument note. Generates sound using FM synthesis and applies an envelope to the note.

Parameters

note

The note to play.

instrument

The instrument definition.

amplitude

The initial amplitude of the note. The value should be between 0.0 and 1.0.