[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1018684: vmpk: program incompletely applied after restart



On miércoles, 31 de agosto de 2022 3:27:26 (CEST) Ash Joubert wrote:
> On 30/08/2022 08:19, Pedro Lopez-Cabanillas wrote:
> > There is a setting in VMPK for you: Edit->Preferences->Behavior tab,
> > checkbox "MIDI channel state consistency". When this setting is enabled
> > provides consistency between the screen widgets and the synthesizer's
> > state.
> 
> With "MIDI channel state consistency" enabled, instruments sound
> distorted after restart, with what sounds like an echo and balance to
> the left. I am using FluidSynth and PulseAudio.

Sorry, but I can't replicate your problem after the following steps:

1. removed the configuration file at ~/.config/vmpk.sourceforge.net/
2. open vmpk, and enable in preferences: "MIDI channel state consistency"
3. open MIDI Connections and select "FluidSynth" as the "MIDI OUT driver" 
and "Output MIDI Connection"
4. Open the "FluidSynth Driver Settings" Dialog, and select the FluidR3 GM 
sound font, while leaving all the other defaults unchanged:
	* Audio driver: ALSA
	* Period size: 512
  * Number of periods: 8
  * Sample rate: 44100
  * Chorus: unchecked
  * Reverb: checked
  * Gain: 1
  * Polyphony: 256
5. Close with the OK button all open dialogs, and restart VMPK.

There is no sound distortion here. Fluidsynth version is 2.2.8 and the 
reported buffer time is 93 milliseconds, with no other audio programs 
running at the same time.

Your description of "sound distorted" may be the consequence of an 
insufficiently sized audio buffer. Try increasing the number of periods or 
the period size so the reported "buffer time" is about 100 or 150 ms. This 
is also the measure of the audio latency (the time since you trigger a 
note, until the sound is produced by the loudspeakers) so you may want to 
keep it as low as possible. You may also try switching the ALSA audio 
driver for the PulseAudio one. Other programs using PulseAudio at the same 
time may affect to the minimum audio buffer size required. Open the 
"PulseAudio Volume Control" application, Playback/Recording tabs, to see 
which applications are producing/consuming sound at the same time.

Tweaking the FluidSynth parameters is quite frustrating, but this is the 
price for its high flexibility. Sonivox is a lot easier, but it doesn't use 
sound fonts (and it is not available in Debian right now).

Regards,
Pedro


Reply to: