pub fn monophonic_stream_from_wav(
bytes: &[u8],
scale: Option<&Scale>,
) -> Result<Stream>Expand description
The notes of a recording of one line, as a part: music21’s
transcriber.monophonicStreamFromFile, which runs
frequencies_from_wav, detect_pitch_frequencies,
smooth_frequencies by seven, pitch_frequencies_to_objects,
join_consecutive_identical_pitches and
notes_and_durations_to_stream, rests at the beginning left out.
Pitches are taken from scale, C major on C4 where none is given.
§Errors
A file that is not an uncompressed WAV file, or one too short to smooth or to hold a note.