Closed c0d3h4x0r closed 2 years ago
What's happening here is that disk I/O blocks everything else, and the incoming MIDI gets buffered up, then instantly dumped on the synth when disk I/O is done, i.e. you might get a few dozen Note-Ons all at once.
Should be an easy fix, I can just clear all the MIDI buffers after a SoundFont switch is done.
N.B. you shouldn't really be doing this. All the instruments and parameters are reset on switching and you'll be treated to an orchestra of pianos if you're hopping betweens synths and SoundFonts while a song is playing. This is by-design and won't be fixed.
Understood about the otherwise problematic aspect of switching SoundFonts during playback. But that, unlike the loud noise glitch, doesn't risk blowing out my ears or speakers.
Sent via Outlook for iOShttps://aka.ms/o0ukef
From: Dale Whinham @.> Sent: Thursday, March 3, 2022 2:51:47 AM To: dwhinham/mt32-pi @.> Cc: Keith F. Kelly @.>; Author @.> Subject: Re: [dwhinham/mt32-pi] 🐛 [BUG] Loud noise when switching FluidSynth soundfonts (Issue #247)
What's happening here is that disk I/O blocks everything else, and the incoming MIDI gets buffered up, then instantly dumped on the synth when disk I/O is done, i.e. you might get a few dozen Note-Ons all at once.
Should be an easy fix, I can just clear all the MIDI buffers after a SoundFont switch is done.
N.B. you shouldn't really be doing this. All the instruments and parameters are reset on switching and you'll be treated to an orchestra of pianos if you're hopping betweens synths and SoundFonts while a song is playing. This is by-design and won't be fixed.
— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fdwhinham%2Fmt32-pi%2Fissues%2F247%23issuecomment-1057920182&data=04%7C01%7C%7Cd2e7a363390b44d78d5308d9fd03d0d4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637819015100883553%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=GeCf%2Fsqx9KnDh79piCYF33absPd7U8MFm1GjkTlnw00%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAF2EYJEYFBWT7U4354WSPUDU6CKUHANCNFSM5PYM5HKQ&data=04%7C01%7C%7Cd2e7a363390b44d78d5308d9fd03d0d4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637819015100883553%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=dtsyjE%2FO%2FwzxANOsb7zGBvwjAvtPyjxVNeuDWcDPTQ0%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7C%7Cd2e7a363390b44d78d5308d9fd03d0d4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637819015100883553%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=V%2BDOEKTcJ9NtS7ITUMYlLAL0I3CSh7RBeHS2bJJVtJQ%3D&reserved=0 or Androidhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7C%7Cd2e7a363390b44d78d5308d9fd03d0d4%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637819015100883553%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=rYsKXXxJaBQHtiQ%2B%2BVKpeUS9aZ6gkQS37w7zaBtlA94%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>
Hardware and software
Bug description
If you use the MiSTer OSD to change the SoundFont while the mt32-pi is playing music (over HDMI), there's a short, LOUD blast of noise that sounds like residual buffered audio data leftover from the previous SoundFont.
Steps to reproduce
Expected behavior
No loud garbage noise when switching among SoundFonts or when switching back and forth between Munt and FluidSynth modes.
Configuration file
Videos/audio recordings
I can provide a short video later if needed.
Additional information
n/a