synthesizeFromPitchFile

fun synthesizeFromPitchFile(pitchFilePath: String, outputPath: String, lessonTonicHz: Float, parentTonicHz: Float = lessonTonicHz): Boolean

Synthesize audio from a pitch contour file.

The pitch file format is whitespace-separated with columns: startTime(sec) endTime(sec) frequencyHz

Timing in the pitch file is in seconds and will be converted to absolute millisecond positions in the output audio.

Return

true if synthesis was successful

Parameters

pitchFilePath

Path to pitch contour file

outputPath

Path for output WAV file

lessonTonicHz

Tonic frequency of the lesson

parentTonicHz

Reference tonic frequency for transposition (defaults to lessonTonicHz)