|Subject:||Re: [fluid-dev] Fluid Synth CC1 Tremolo|
|Date:||Sun, 5 Jul 2020 12:11:22 +0200 (CEST)|
Parameter int chan is really MIDI Channel from (0 to MIDI channel count - 1). The default MIDI channel count is 16.
The functions API fluid_synth_cc(), fluid_synth_noteon(), fluid_synth_noteoff() return FLUID_FAILED is chan parameter is incorrect.
However, the command of the fluidsynth console application does nothing if chan is incorrect. This should not be a problem for the user
because the result is audible.
The MIDI channel count can changed to 32 if need using: fluid_settings_setint(settings, "synth.midi-channels", 32);
This change must be done before calling new_fluid_synth().
The wording "FSchannels" does not exist in the documentation.
> Message du 05/07/20 09:34
> De : "David Back" <email@example.com>
> A : "FluidSynth Mailing List" <firstname.lastname@example.org>
> Copie à : "Tom M." <email@example.com>, "Ceresa Jean-Jacques" <firstname.lastname@example.org>
> Objet : Fluid Synth CC1 Tremolo
>Thanks for the latest updates. At least my Estey sound font has passed the test and I will now use this for all future testing.
>The problem may well lie in the midi channels - It seems that both you and the FS documentation (and perhaps me) are confusing midi channels with fluidsynth channels. They are completely different.
>I am using 32 FSchans in eplayOrgan. Each FSchan has a different midi Patch in order to provide multiple instruments which can optionally (by pulling stops) all play at the same time. The notes of all these instruments are sent to their respective FSchans when synth noteon/s are executed. By this stage any midi channels are not relevant and certainly not sent to the synth. This has been proven to work beyond doubt.
>Midi channels are limited to a maximum of 16 and are those used in midi files and midi ports to provide separate paths for the various midi instruments (patches). Once the midi events have been processed to produce commands for the synth they are no longer relevant. The synth uses FSchannels.
>The documentation for BOTH fluid_synth_cc() and fluid_synth_noteon() references "midi channels" as below whereas, certainly for noteon, it actually means FSchannels.
>"Parameters for cc:synth FluidSynth instancechan MIDI channel number (0 to MIDI channel count - 1)num MIDI controller number (0-127)val MIDI controller value (0-127)
>Parameters for noteon:
synth FluidSynth instance chan MIDI channel number (0 to MIDI channel count - 1) key MIDI note number (0-127) vel MIDI velocity (0-127, 0=noteoff)"
>Just because something works from the command prompt does not necessarily mean that it will work when another programmer tries to make it work by using the documented procedures; especially if the documentation is either wrong or ambiguous.
>Please clarify whether the parameters for fluid_synth_cc() and fluid_synth_noteon() refer to FSchannels or midi channels.
>Thank youDavid(csw900)PS. I did not see what Christian wrote because he did not send me a copy.
|[Prev in Thread]||Current Thread||[Next in Thread]|