Closed edwhu closed 1 year ago
When running midi playback, python examples/play_midi_file.py --file robopianist/music/data/rousseau/twinkle-twinkle-trimmed.mid, we get this warning from fluidsynth.
python examples/play_midi_file.py --file robopianist/music/data/rousseau/twinkle-twinkle-trimmed.mid
Referring to https://github.com/nwhitehead/pyfluidsynth/issues/37, we can fix this by making sure the samplerate argument to the fluidsynth(...) call is a float.
samplerate
fluidsynth(...)
Now there are no more warnings. All tests pass.
Thanks! Had it here but forgot it in the examples :)
When running midi playback,
python examples/play_midi_file.py --file robopianist/music/data/rousseau/twinkle-twinkle-trimmed.mid
, we get this warning from fluidsynth.Referring to https://github.com/nwhitehead/pyfluidsynth/issues/37, we can fix this by making sure the
samplerate
argument to thefluidsynth(...)
call is a float.Now there are no more warnings. All tests pass.