Skip to contents

Generates a wav audiofile from a midifile using the soundfont if specified (otherwise fluidsynth's default soundfont is used). Needs fluidsynth to be installed.

Usage

synthesize_midi(midifile, audiofile, soundfont = NULL, verbose = FALSE)

Arguments

midifile

path to midi file path (character string)

audiofile

path to audio wav file (character string)

soundfont

path to sf2 sound font (character string)

verbose

logical whether to print fluidsynth command line output; defaults to FALSE

Examples

if (FALSE) {
midifile <- system.file("extdata", "test_midi_file.mid", package = "raudiomate")
audiofile <- "test.wav"
synthesize_midi(midifile, audiofile)
}