Re: [fluid-dev] muting notes, noteoff message

2022-06-06 Thread Ceresa Jean-Jacques
Hi>sending Type=176 (0xb0) Chan=00 Key=123 (0x7b) Val=000 (0x00).>notes keep playing in the audio output. decaying, but still playing. Why are they not muted?If you want to mute immediately all the notes currently playing you should send cc 120 (all sound off) instead of cc 123 (all notes off).jj

Re: [fluid-dev] Failure to bind server socket: 98

2022-03-07 Thread Ceresa Jean-Jacques
>I would be all in favour foradding a new command that actually terminates the whole of FluidSynth.“shutdown” might be an appropriate name. :-)It seems that this "shutdown" command simply should  only terminate the server (and consequently close all client connection) ?envoyé : 7 mars 2022 à 00:1

Re: [fluid-dev] Failure to bind server socket: 98

2022-03-06 Thread Ceresa Jean-Jacques
Sorry , there is a typos mistake on my previous message:The fluidsynth version is 2.2.1 (not 2.1.1).envoyé : 6 mars 2022 à 17:50de : Ceresa Jean-Jacques à : FluidSynth mailing list objet : Re: [fluid-dev] Failure to bind server socket: 98 >It seems we even have a bug in the handling of

Re: [fluid-dev] Failure to bind server socket: 98

2022-03-06 Thread Ceresa Jean-Jacques
>It seems we even have a bug in the handling of the interactive andsocket shell connections. If I start FluidSynth with -s and type“quit” in the interactive shell, then the program hangs and does notreturn to the command prompt.On Windows, with fluidynth v2.1.1 starting fluidsynth with -s and typ

Re: [fluid-dev] Pitchbend maximum

2022-02-04 Thread Ceresa Jean-Jacques
Hi, Ben>What is is set to by default?The default pitch bend range value is +/-1 tone (i.e 2 semi-tones). This is a MIDI specs.Be aware that very large pitch bend range (i.e several octaves) leads to inaccurate pitch at maximum (up or down) that pitchbend delivers.jjcenvoyé : 4 février 2022 à 08:5

Re: [fluid-dev] repeating a note with the sustain pedal active cuts off the previous note

2021-06-04 Thread Ceresa Jean-Jacques
tps://github.com/FluidSynth/fluidsynth/pull/905. Thanks. jjc > Message du 04/06/21 14:19 > De : "Ceresa Jean-Jacques" > A : "FluidSynthmailinglist" > Copie à : > Objet : Re: [fluid-dev] repeating a note with the sustain pedal active cuts > off the previou

Re: [fluid-dev] repeating a note with the sustain pedal active cuts off the previous note

2021-06-04 Thread Ceresa Jean-Jacques
Hi Christian, I am the culprit author of "add sostenuto pedal functionality" (David isn't responsible). Thanks for your interesting and detailled report of real accoustic piano behaviour when playing the same note more than once with the sustain or sustenuto pedal active.   > I am hopeful th

Re: [fluid-dev] alsa audio driver only accepting huge period size

2021-05-09 Thread Ceresa Jean-Jacques
  >I really wonder how pulseaudio manages to have a very low latency with the >very same hardware. Any clue ?   Did you try the "alsa hardware layer" as explained in https://github.com/FluidSynth/fluidsynth/wiki/LowLatency ? Example: ./fluidsynth –o audio.alsa.device=hw:0 jjc  

Re: [fluid-dev] [ fluid-dev ] How to set up mpe like behaviour?

2021-04-27 Thread Ceresa Jean-Jacques
>But if i use router_chan 0 15 1 0, the channel numbers are correct. Yes, but such a rule is equivalent to MIDI message unchanged. In other words this rule is useless as it works as the default router rule! jjc   > Message du 27/04/21 06:59 > De : "Muziker Mammoth" > A : fluid-dev@nongnu.org

Re: [fluid-dev] fluid-dev Digest, Vol 213, Issue 7

2021-04-26 Thread Ceresa Jean-Jacques
>The router config i used is this:   With this config: 1) only note on/off and pitch bend MIDI messages will be forwarded to the output router. All others MIDI messages (CC, prog change,..) will be ignored. 2) Any MIDI messages (note on/off, pitch bend) with channels in the range [0-15] will

Re: [fluid-dev] fluid-dev Digest, Vol 213, Issue 6

2021-04-26 Thread Ceresa Jean-Jacques
>..The default router simply routes all MIDI messages unaltered.   Nearest. Now I remember, the only case the message would be altered is when the MIDI input channel x is greater then synth.midi-channels setting. In this case channel x  is limited to synth.midi-channels ;). It seems this is a

Re: [fluid-dev] fluid-dev Digest, Vol 213, Issue 5

2021-04-25 Thread Ceresa Jean-Jacques
lease edit your Subject line so it is more specific > than "Re: Contents of fluid-dev digest..." > > > Today's Topics: > >    1. Re: [ fluid-dev ] How to set up mpe like behaviour? >       (Ceresa Jean-Jacques) > > > ---

Re: [fluid-dev] [ fluid-dev ] How to set up mpe like behaviour?

2021-04-23 Thread Ceresa Jean-Jacques
>when fluidsynth receives midi notes on even channels, the audio is louder than >on odd channels No. After starting fluidsynth console application, and assuming the same instrument (i.e a piano) is set on channel 0 and channel 1. If you use a noteon command on channel 0 and channel 1 using the

Re: [fluid-dev] [ fluid-dev ] How to set up mpe like behaviour?

2021-04-22 Thread Ceresa Jean-Jacques
  >I'm trying to send individual pitchbends to the channels of fluidsynth, where >each channel should respond individually to pitchbends instead of one global >pitchbend.   fluidsynth is an ordinary MIDI synthesizer that responds to pitchbends MIDI message individually on each MIDI channel. A

Re: [fluid-dev] RPi "graininess"

2021-02-13 Thread Ceresa Jean-Jacques
Hi Ben,   >What happens is when a play a steady long note at CC2 of, say, 30 I hear step >changes in the volume. OK, I can't hold perfectly constant pressure, but I >don't hear the same things on other synths. Are you sure that a CC "Breath to attenuation" modulator exists ? (see polymono-004

Re: [fluid-dev] Tweaking a sf2 for octave

2021-01-26 Thread Ceresa Jean-Jacques
Some fix to my previous message:   #send program change (preset trombone) to FS on channel x. > prog x num-preset-trombone #set rules in the router to transpose any note received  by -12: #First remove any current rules router_clear # Set a rule to transpose pitch by pitch - 12 router_begin n

Re: [fluid-dev] Tweaking a sf2 for octave

2021-01-26 Thread Ceresa Jean-Jacques
Hi Ben,   >Is there a global modulator I can use to do that ?. No, modulators are only used to change internal voices's parameters (called "generators") in realtime after the note is started. The modulator receive MIDI CC value on input and its output changes the generator's value. Exemple of

Re: [fluid-dev] looking for free fonts with aftertouch and/or more than one bank

2021-01-11 Thread Ceresa Jean-Jacques
>Forgive me if I'm too newbie, but I'd also like to know more about >"generators" since you mentioned it.   Please go to https://github.com/FluidSynth/fluidsynth/wiki/SoundFont  and read "introduction to soundfont". jjc   ___ fluid-dev mailing list

Re: [fluid-dev] looking for free fonts with aftertouch and/or more than one bank

2021-01-11 Thread Ceresa Jean-Jacques
>I see gen 17 is pan, for example, but it didn't seem to work for me. What is >the input range for those, 0-127 as well? Does the soundfont need to have this >enabled somehow? I should also edit the soundfont to test those?   For the pan generator (17) you don't need to edit the soundfont becau

Re: [fluid-dev] looking for free fonts with aftertouch and/or more than one bank

2021-01-10 Thread Ceresa Jean-Jacques
  >I found a font with channel aftertouch pressure and it works fine, but if I >try the same font with polyphonic (key) aftertouch pressure, it doesn't work. >I guess it's not automatic that a font that uses channel aftertouch will just >work with key aftertouch, right?   Right. Assuming you

Re: [fluid-dev] parallel loading of soundfont samples

2020-10-28 Thread Ceresa Jean-Jacques
>Currently, there are two problems: 1. The samplecache is guarded by a mutex >that prevents naïve parallelization. 2. If we relax that mutex we get a >strange race condition,... The whole fluid_samplecache_load() need to be atomic and isn't thread safe without the mutex -get_samplecache_entry(

Re: [fluid-dev] parallel loading of soundfont samples

2020-10-28 Thread Ceresa Jean-Jacques
Hi, >So it looks like parallel loading would be beneficial. Yes, as we notice that with 1 or 2 simultaneous loading the total time is quite the same (6,1s   6,6s) However with 3 and 4 simultaneous loading we see that the total time doesn't stay constant but is growing (8,8s and 10,4s), probaly

Re: [fluid-dev] parallel loading of soundfont samples

2020-10-28 Thread Ceresa Jean-Jacques
Hi, >The SF3 files are taking ~5 seconds each to load. The SF2 files take >400-500ms, despite being 7-10x the size, so the bottleneck is not disk I/O.   Ok, assuming one SF3 file x taking 5 seconds to load using one fluidsynth console application a1. Now we should try the suggested test to ru

Re: [fluid-dev] parallel loading of soundfont samples

2020-10-27 Thread Ceresa Jean-Jacques
Hi, >I did look through the sfloader code and I can see it's not easy to >restructure it to use multiple threads. >Still, I think parallel loading of the soundfonts would be a good optimization that would benefit every application using Fluidsynth.   Before doing any attempt to restructure it

Re: [fluid-dev] Possible approach to preloading samples / presets

2020-10-24 Thread Ceresa Jean-Jacques
Hi,   >Well, I do have a real need for preloading presets (or rather samples) now.   I understand your need and I'am not surprised you need this now because you are using a memory constrained system. Having a way to preload sample is also useful when preparing a set of presets that doesnt' b

Re: [fluid-dev] fluidsynth export single midi channel to wav

2020-10-24 Thread Ceresa Jean-Jacques
Hi, >You can use fluid_player_set_playback_callback().   Excellent, I completly forgot that we could intercept MIDI events send by the player to the synth. That means that it could be possible to mute or solo events based on the event's MIDI channel. So there is no need to edit the MIDI file

Re: [fluid-dev] fluidsynth export single midi channel to wav

2020-10-23 Thread Ceresa Jean-Jacques
Hi vladimir, >jChannel is the midi channel number(1-16). No, in fluidsynth API MIDI channel parameter are zero based (0 to 15).   >Notice these 2 lines: I'm not really sure whether I'm doing it right. >(1) fluid_synth_reset_basic_channel(synth, -1); >(2) fluid_synth_set_basic_channel(synth, jCh

Re: [fluid-dev] New Reverb and Chorus API versus actual API

2020-10-23 Thread Ceresa Jean-Jacques
> [Tom] When changing the existing command and un-deprecate them, we'll only > have two. While still retaining backward compatibility.   So to maintain compatibility with actual command shell, I would like confirmation for the suggested behaviour: 1) we un-deprecate the commands. 2) make thes

Re: [fluid-dev] New Reverb and Chorus API versus actual API

2020-10-20 Thread Ceresa Jean-Jacques
Hi,   >So for the shell we introduce the proposed new commands to set specific fx >group settings. >We keep the old fx shell commands deprecated and document that "set >synth.reverb.xxx" should be used instead (if not already done). >And for the API we use the function names suggested above a

Re: [fluid-dev] New Reverb and Chorus API versus actual API

2020-10-18 Thread Ceresa Jean-Jacques
>my current favorite is:fluid_synth_set_reverb_group_x() >fluid_synth_set_chrous_group_x() >This would be consistent with the synth.effects-groups setting.   Indeed, replacing "fx" by "group" seems a better naming choice. jjc     ___ fluid-

Re: [fluid-dev] New Reverb and Chorus API versus actual API

2020-10-14 Thread Ceresa Jean-Jacques
>Tom: Side note: those existing shell commands have already been deprecated. >Ofc. this should be reverted once this feature will be implemented. >Marcus Ah, I wasn't aware of that. What was the reason for deprecating those >shell commands? The reason is that those actual shell fx commands are r

[fluid-dev] New Reverb and Chorus API versus actual API

2020-09-17 Thread Ceresa Jean-Jacques
Hi All,   For those amoung you using actual Reverb and Chorus API (or associated shell commands). You have noticed that theses API (or commands) allow to change one parameter for all fx unit. For example if fluidsynth has been started with synth.effects-groups set to 2, the synthesizer has 2

Re: [fluid-dev] fluidsynth 2.1.1 not creating a server

2020-08-05 Thread Ceresa Jean-Jacques
Hi,   >How would you start FluidSynth at startup automatically? -   Here possible solution. https://lists.nongnu.org/archive/html/fluid-dev/2020-01/msg00032.html jjc   ___ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.org/mailman

Re: [fluid-dev] synth.audio-groups and LADSPA effects

2020-08-05 Thread Ceresa Jean-Jacques
is complicated, inefficient, not flexible. I will look, to see how we could suppress this limitation. jjc   > Message du 04/08/20 21:43 > De : "Bill Peterson" > A : "FluidSynth mailing list" > Copie à : "Ceresa Jean-Jacques" , "TomM." >

Re: [fluid-dev] synth.audio-groups and LADSPA effects

2020-08-03 Thread Ceresa Jean-Jacques
Hi, >but maybe I'm not understanding how synth.audio-channels and >synth.audio-groups interact This is not obvious, here some general notes:   1)The number of rendered audio output (nbr_outputs) is dependant of synth.audio-channels and synth.audio-group: nbr_outputs = max(synth.audio-channel

Re: [fluid-dev] Looping a MIDI file

2020-07-31 Thread Ceresa Jean-Jacques
Hi, >I'm reading a MIDI file as a backing track so I'd like it to loop endlessly. >Do you know how I can do that? There is a simple way to do that: 1)On linux system, type this: $ for ((;;)) do fluidsynth.exe soundbank.sf2 backingtrack.mid; done 2)But as it seems you are on a Windows system:

Re: [fluid-dev] Looping a MIDI file

2020-07-30 Thread Ceresa Jean-Jacques
Hi, >I'm trying to figure out how to play a MIDI file in a loop from command line >and I didn't find the information in the FluidSynth wiki. The FluidSynth console command line application is a simple application. Its purpose is to get developper quickly familiar with  the library API as proof

Re: [fluid-dev] FluidSynth on Unity (.dll issues)

2020-07-15 Thread Ceresa Jean-Jacques
Hi, 1)For loading .sf2 soundfont files,  libfluidsynth-2.dll requires only libglib-2.0-0.dll, libgthread-2.0-0.dll. That's it. 2)If you intend to use libfluidsynth-2.dll for rendering MIDI file(s) to any audio file(s) format other then raw (i.e WAV,FLAC...), additional libsndfile-1.dll will be

Re: [fluid-dev] Ubuntu 20.04: Rosegarden - Fluidsynth version mismatch

2020-07-10 Thread Ceresa Jean-Jacques
Hi, In your new machine with Ubuntu 20.04 you have installed: > ii  fluidsynth 2.1.1-2 > amd64    Real-time MIDI software synthesizer > ii  fluidsynth-dssi    1.0.0-7 > amd64 

Re: [fluid-dev] Fluid Synth CC1 Tremolo

2020-07-05 Thread Ceresa Jean-Jacques
ct to organ instruments. jjc   > Message du 05/07/20 21:06 > De : "David Back" > A : "Ceresa Jean-Jacques" > Copie à : "Tom M." , "FluidSynth Mailing List" > Objet : Re: Fluid Synth CC1 Tremolo > >   Hi > Thanks for the comments

Re: [fluid-dev] Fluid Synth CC1 Tremolo

2020-07-05 Thread Ceresa Jean-Jacques
s the reason of using 4 instances on the same machine ? Regards. jjc > Message du 05/07/20 16:32 > De : "David Back" > A : "FluidSynth Mailing List" > Copie à : "Tom M." , "Ceresa Jean-Jacques" > Objet : Re: Fluid Synth CC1 Tremolo >

Re: [fluid-dev] Fluid Synth CC1 Tremolo

2020-07-05 Thread Ceresa Jean-Jacques
; > A : "FluidSynth Mailing List" > Copie à : "Tom M." , "Ceresa Jean-Jacques" > Objet : Fluid Synth CC1 Tremolo > > Hi All > Thanks for the latest updates. At least my Estey sound font has passed the test and I will now use this for all future testin

Re: [fluid-dev] Tremolo, fluidsynth and CC 1

2020-07-04 Thread Ceresa Jean-Jacques
nth and never uses any FS midi inputs). > Is there any example of working c or c++ code for using CC1 ? I have not been able to find any myself. > Thank you > David(csw900) > On Saturday, 4 July 2020, 17:49:17 BST, Ceresa Jean-Jacques wrote: > > > Hello David,

Re: [fluid-dev] Tremolo, fluidsynth and CC 1

2020-07-04 Thread Ceresa Jean-Jacques
Hello David, >It is particularly useful to know that I can change what FS does by changing >parameters in the sound fonts. Yes fluidsynth and any SF2 compliant synthesizers sould always instructed by soundfonts articulations parameters. They are only reproducer sound engine. In other words the

Re: [fluid-dev] SoundFont Preset generator interpretation

2020-06-24 Thread Ceresa Jean-Jacques
Hi, >Sometimes the spec, while well written, is way too wordy and I get a bit >dizzy. That is true.   A final note to say that the logic of precedence between same generators in global/local works the same concerning same modulators in global/local zone. jjc   _

Re: [fluid-dev] SoundFont Preset generator interpretation

2020-06-24 Thread Ceresa Jean-Jacques
Hi,   >can you confirm this possible situation? So ALL LEVELS are additive No, global isn't additive to local. Only Preset level is additive to Instrument level.   Preset level: Preset Global Zone:      -11000 Preset Inst Zone:           500 --- Instrument

Re: [fluid-dev] SoundFont Preset generator interpretation

2020-06-21 Thread Ceresa Jean-Jacques
Hello Garth,   >How does FS interpret SoundFont Preset generators, specifically the VolEnv and >ModEnv?   >In the SoundFont spec, it seems - and at times explicitly states - that the >Preset values are ADDED to the Instrument Values, and are interpreted as Units >specified in the spec. From

Re: [fluid-dev] Some simple questions of Fluidsynth about implying samplers

2020-05-22 Thread Ceresa Jean-Jacques
ian expressiveness similarly to those who play on real instrument using their 10 fingers. I am really interested by the bowed and plugged instrument case. jjc.   > Message du 22/05/20 18:42 > De : "Hak Lin" > A : "Ceresa Jean-Jacques" , "FluidSynth mailing l

Re: [fluid-dev] Some simple questions of Fluidsynth about implying samplers

2020-05-21 Thread Ceresa Jean-Jacques
Hi, I forgot to mention a good example in the Wiki: http://www.fluidsynth.org/api/example_8c-example.html#a3 jjc > Message du 21/05/20 13:24 > De : "Ceresa Jean-Jacques" > A : "FluidSynth mailing list" > Copie à : > Objet : Re: [fluid-dev] Some simple que

Re: [fluid-dev] Some simple questions of Fluidsynth about implying samplers

2020-05-21 Thread Ceresa Jean-Jacques
Hello Hak,   After reading the simple_sample.cpp provided. Here some tips.   1)The best for you should be to use the fluidsynth console application. It allows to test anything without writting any line of code. 2.1.1) new_fluid_audio_driver() must be called after new_fluid_synth() but BEFORE

Re: [fluid-dev] Wrong sound pitches with sample rate 48kHz

2020-04-15 Thread Ceresa Jean-Jacques
Hello Reinhold,   >Example: When using the sample rate 48kHz a note-on event with note A (440 Hz) >sounds as note Bb (~ 466 Hz).   I just verified using  v2.1.1 (master branch) (I guess it behaves like v2.1.0 for this issue). Playing a note A4  at sr 48000Hz (or 96000Hz) gives the same pit

Re: [fluid-dev] About Supporting 2GiB+ Soundfonts on Windows

2020-03-17 Thread Ceresa Jean-Jacques
>Based on Reinhold's thought, the idea would be to use something like #if defined(_MSVC_VER < VisualStudio2015) typedef __int64 fluid_long_long_t; // even on 32bit windows #else typedef long long fluid_long_long_t; #endif >Should it really be that simple or am I missing smth.?   You are not mis

Re: [fluid-dev] FluidSynth Example on MacOS gives segfault

2020-02-23 Thread Ceresa Jean-Jacques
  Hi, Rohit   I suspect the "segmentation fault" occurs during the execution of fluid_synth_sload(). This souldn't occur even if the soundfont file is malformed.   Please, would you try these 2 simple tests and report each results:   1) First test: use a well know correct sf2 (i.e GUGSv1_47.sf2).

Re: [fluid-dev] No reverb, no chorus with 2.1.0

2020-02-15 Thread Ceresa Jean-Jacques
Hi, Pascal > When using the custom audio driver - new_fluid_audio_driver2() - there is no > reverb or chorus.   The Callback function used with new_fluid_audio_driver2() is responsible for rendering the audio to the buffers. If you don't need multi-channel audio output rendering , you can use

Re: [fluid-dev] No reverb, no chorus with 2.1.0

2020-02-14 Thread Ceresa Jean-Jacques
;default modulators" ("CC 93 to chorus send" and  "CC 91 to reverb send"). jjc. > Message du 14/02/20 22:37 > De : "midi-pascal" > A : fluid-dev@nongnu.org > Copie à : > Objet : Re: [fluid-dev] No reverb, no chorus with 2.1.0 > > On

Re: [fluid-dev] No reverb, no chorus with 2.1.0

2020-02-14 Thread Ceresa Jean-Jacques
Hi, Pascal >The reverb and chorus do not work at all using libfluidsynth release 2.1.0, >either in my app or in QSynth. Here the reverb and chorus work using the fluisynth application console. Did you try this application before any other one ? jjc.   _

Re: [fluid-dev] Questions about fluidsynth API

2020-02-07 Thread Ceresa Jean-Jacques
Hello Benoit,   With the descriptions you have given it is impossible to localize your issue.   Did you successfully ran the fluidsynth console application playing a MIDI file ? Did you successfully ran the fluidsynth console application using default MIDI driver with your MIDI keyboard on M

Re: [fluid-dev] Problem starting Fluidsynth on a headless RPi

2020-01-29 Thread Ceresa Jean-Jacques
Hello Georges,   After reading your issue about no Alsa audio when starting FluidSynth from root .profile. This sounds like if Alsa hadn't started (or not yet finished its initialization) before FluidSynth starts. May be could you validate this supposing trying to start Alsa player (aplay)

Re: [fluid-dev] Support for SF4 (FLAC) format?

2020-01-19 Thread Ceresa Jean-Jacques
Hello,   >So I think we should definitely document the SF3 format as it is currently used >and implemented, maybe via a dedicated github repo/wiki. It would be nice indeed. jjc   ___ fluid-dev mailing list fluid-dev@nongnu.org https://lists.nongnu.o

Re: [fluid-dev] Help

2019-11-24 Thread Ceresa Jean-Jacques
Hello,   >This is information about when I rotate the controller on my MIDI keyboard. It seems that your MIDI keyboard is able to send MIDI CC event (i.e controller change event). From the picture, CC number is 20 and the data value is 0 to 127.   >Tell me, how do I properly bind a sound cont

Re: [fluid-dev] Distorted Sound with FluidSynth + Alsa on a SBC

2019-11-19 Thread Ceresa Jean-Jacques
Hi Etienne, > odroid@odroid:~$ fluidsynth -C0 -R0 -r 44100 -c2 -v -d -a alsa -m alsa_seq > /home/odroid/Documents/bandoneon_v2.sf2 Here some tips. Those result on experimention using Raspberry device. 1) Avoiding lost of precious cpu cycles: 1.1) Setting reverb and chorus off: Use -C0 -R0. 1.

Re: [fluid-dev] DLS format - AW: Release Candidate of fluidsynth 2.1 released

2019-10-30 Thread Ceresa Jean-Jacques
Hi,   >After all, the main purpose of this function seems to be trying to find out >whether fluidsynth might be able to handle that file...   Indeed, as DLS synthesizer model engine is very similar to sounfont synthesizer model, it seems a good thing for this function be able to load DLS file

Re: [fluid-dev] Add free() wrapper for proper memory management

2019-09-29 Thread Ceresa Jean-Jacques
> Hello, excuse me, what is the issue with the dsound driver? No, dsound driver is fine and works well. Simply a bug was introduced by changes on reverb initialization. This bug caused a side effect on audio output. The culprid wasn't dsound driver but this wrong reverb initialization. This bug

Re: [fluid-dev] Add free() wrapper for proper memory management

2019-09-23 Thread Ceresa Jean-Jacques
>Also, as far as I can tell, this approach is still not a proper solution on >Windows, since modules may have their own heaps Comfirmed, this is a bad approch. I had stumbled on the same problem in the past; I forgot about that ! Thanks for raising this. jjc _

Re: [fluid-dev] Add free() wrapper for proper memory management

2019-09-22 Thread Ceresa Jean-Jacques
Hi,   >I am trying to use the library from C#, I guess you use the fluidsynth shared library, and you have a way to bind your C# code to C fluidsynth API. In this case you could write and build a new C shared library that contains the C functions you need. For example, let the following

Re: [fluid-dev] Using fluidsynth through pyfluidsynth

2019-06-18 Thread Ceresa Jean-Jacques
Hello,   There is a bunch of Python bindings for Fluidsynth elsewere. It is unlikely that any of these are compatible with any fluidsynth release version. Each time a python binding package is done a minimum of documentation should be given describing which Fluidsynth version is required and w

Re: [fluid-dev] Using fluidsynth from the CMD‏‏‏‏

2019-06-11 Thread Ceresa Jean-Jacques
Hi,   >I do not know what I have done but I have a new error: >C:/freesw/lib/sndfile-1.lib: error adding symbols: File in wrong format   May be a confusion confused between (32bits) or (64 bits) sndfile lbrary file version ?. jjc.     > Message du 11/06/19 18:40 > De : "Layers Incorporatio

Re: [fluid-dev] Loss of quality with --enable-float option?

2019-06-11 Thread Ceresa Jean-Jacques
Hi, > have any of you ever noticed a difference in sound quality Me too never heard any difference trough my old head phone !.   Thanks to useful Tom's pratical approch to evaluate the smallest error estimate from float to 16 bit PCM.   >Experimentally increase this error until some differen

Re: [fluid-dev] Using fluidsynth from the CMD‏‏

2019-06-11 Thread Ceresa Jean-Jacques
Hi, >That doesn't work for me. I have to make the small change in the >sndfile.pc AND rename libsndfile-1.lib to sndfile-1.lib . But once >this is done it compiles successfully with both, mingw and >VisualStudio.   good news.   >Note that there is no other *.lib in C:\freesw\lib which >has a "

Re: [fluid-dev] Using fluidsynth from the CMD‏‏

2019-06-10 Thread Ceresa Jean-Jacques
Hi,   As mentioned by Tom it is the sndfile.pc that is wrong. It must be corrected as this: Libs: -L${libdir} -llibsndfile-1 Library name should be original name from Mega-Nerd: D:\Freesw\lib\libsndfile-1.lib   Shared library name should be original name from Mega-Nerd: D:\Freesw\lib\lib

Re: [fluid-dev] Using fluidsynth from the CMD

2019-06-09 Thread Ceresa Jean-Jacques
Hello,   1) Your c:/Freesw tree seems still incomplete.   Missing libraries files (needed at link time). D:\Freesw\lib\glib-2.0.lib D:\Freesw\lib\intl.lib D:\Freesw\lib\gthread-2.0.lib   Missing shared library files (needed at execution time). D:\Freesw\bin\libglib-2.0-0.dll D:\Freesw\bi

Re: [fluid-dev] Using fluidsynth from the CMD

2019-06-09 Thread Ceresa Jean-Jacques
Hello,   your c:\freesw tree seems incomplete.   >--   No package 'glib-2.0' found > --   No package 'gthread-2.0' found   These package are flluidsynth requiered dependancies. Cmake expect that theses packages are described by .pc files that must be in C:\Freesw\lib\pkgconfig folder   Fo

Re: [fluid-dev] help with installing FluidSynth

2019-06-08 Thread Ceresa Jean-Jacques
Hi,   > If you don't need readline or don't know about it you may > alternatively disable it explicitly:   Windows have its own command line editor. It means that for fluidsynth execution on Windows, readline library isn't necessary. So it's safe to disable this CMake's option. jjc     >

Re: [fluid-dev] Fluidsynth questions: 2.0.5 release / threading

2019-04-19 Thread Ceresa Jean-Jacques
> > Another question I have is related to threading. I'd like to use two > > fluid_synth_t* instances in two different threads with two different > > soundfonts to render two different midi tracks.   As explained by Tom, you don't need to create two fluid_synth_t* instances in two different th

Re: [fluid-dev] Bpm

2019-04-16 Thread Ceresa Jean-Jacques
> Message du 16/04/19 04:07 > De : "Dan Eble" > A : "Ceresa Jean-Jacques" , "FluidSynth mailing list" > Copie à : > Objet : Re: [fluid-dev] Bpm > > On Apr 15, 2019, at 12:06, Ceresa Jean-Jacques wrote: > > May be one thing feasable and useful w

Re: [fluid-dev] Bpm

2019-04-15 Thread Ceresa Jean-Jacques
Hello,   >Hey! Is there no option to set/edit the tempo of a midi file before rendering >it? Although FluidSynth has simple "MIDI File player" functionality and "MIDI sequencer" functionalities, it doesn't have MIDI File editing functionality. This is because MIDI file edititing is a job comp

Re: [fluid-dev] About linked sample in the SoundFont2.04 specs

2019-03-26 Thread Ceresa Jean-Jacques
>“ What happens if there is an instrument with two zone, one zone containing a >left sample and pitch generators, the other zone containing right sample? Do >they ignore the pitch generators?   Each Instrument Zones are instancied by independent "voices" in the synthesizer. In your example at

Re: [fluid-dev] Pitch bend range/pitch wheel sensitivity?

2019-03-12 Thread Ceresa Jean-Jacques
Hello   > pitch_bend_range 0 12   >This either applies to channel 0, or to all > channels, I'm not certain. ?   This command is equivalent to receive MIDI 'pitch bend sensitivity range' message which is  a RPN MIDI channel message: pitch_bend_range   channel_number   semitone_range In your

Re: [fluid-dev] FluidSynth on embedded platforms, zero boot time?

2019-01-04 Thread Ceresa Jean-Jacques
Hi, >I'm running FluidSynth on similar but slightly more powerful hardware. The >plain linux boot time (via SD-card) from power on to start of my custom kernel >drivers, fluidsynth and my main program takes about 4-5 seconds.   I like very much this kind of news. This beats by far my old Win X

Re: [fluid-dev] FluidSynth on embedded platforms, zero boot time?

2018-12-30 Thread Ceresa Jean-Jacques
Hi, >so I'm looking at other platforms with sub-5-second boot time. I'm really >looking to replicate the experience of hardware synths, where you turn it on >and it's ready to make sounds in a few >seconds at most. One best approch to get very fast boot time would be to search platforms equipp

Re: [fluid-dev] fluidsynth increase one semitone

2018-12-16 Thread Ceresa Jean-Jacques
Hi, > Is there a midi (Control Change ?) message capable of doing this ?   > Not a Control Change but a "Syssex MIDI Tuning", but i don't remember details.   Please let me correct me. Of course MIDI Control Change exits to do pitch tuning. The basic procedure for altering a parameter value i

Re: [fluid-dev] fluidsynth increase one semitone

2018-12-16 Thread Ceresa Jean-Jacques
> How other midi controllers interact with fluidsynth when they are setted to > 432 ? Basically a Soundfont synthesizer is not responsable of note tuning. One can edit the soundfont file in use to change the tunning of A note to 432Hz (instead of standard 440Hz)   > Is there a midi (Control C

Re: [fluid-dev] Allow soundfonts to be searched from multiple directories

2018-11-05 Thread Ceresa Jean-Jacques
> > The user shouldn't have to manually edit the path themselves. >Of course he has to. Neither any maintainer nor fluidsynth are responsible for >guessing how the user organizes his soundfont collection. Yes organization soundfont is only the application need. As pointed by Sqweek E " ...there

Re: [fluid-dev] Allow soundfonts to be searched from multiple directories

2018-11-02 Thread Ceresa Jean-Jacques
Hi, For independence and maintainability reasons it's obvious that this feature should be addressed ONLY at application level and NEVER in the fluidsynth's library code. However, as already said "it would be a nice feature for the fluidsynth executable that we ship". Also being aware of differ

Re: [fluid-dev] Calls to fluid_log()

2018-10-13 Thread Ceresa Jean-Jacques
Hi,   > if someone will like the idea to cut the size without affecting the the > quality of the sound rendering (like me), I like this idea too for future fanless embedded projects in mind (with high memory constraints). In this regard, i hope this should be a good new. It seems it shoul

Re: [fluid-dev] My latest project - with FS2.0.0 !

2018-10-08 Thread Ceresa Jean-Jacques
Hi   > I'd forgotten all about the setbreathmode. I might try that with the original > un-CC2'd soundfont. To get a quick try it is probably the easiest way instead of edit soundfont. Then adding CC breath modulator in sounfont can be done later. As explained in FluidPolyMono-0004.pdf section

Re: [fluid-dev] V2 Chorus/reverb parameter ranges

2018-10-06 Thread Ceresa Jean-Jacques
>What's a useful %   There is no rules because it depends of the instrument and the orchestration.   Each effect unit (reverb or chorus) is made of the direct signal (in) connected to the input reverb through the send (%) value. Then the direct signal is added to the effect's output to produc

Re: [fluid-dev] V2 Chorus/reverb parameter ranges

2018-10-06 Thread Ceresa Jean-Jacques
>I now find that my soundfont has no chorus% > set, so I get no chorus effect. What's a useful %, and is it best > applied at the preset leveL?   This is an important question related to reason of Preset Zone (PZ) related to Instrument Zone (IZ): Sorry for this long answer, hope this will cla

Re: [fluid-dev] V2 Chorus/reverb parameter ranges

2018-10-05 Thread Ceresa Jean-Jacques
>And since MAX_SAMPLES is 4096   #define MAX_SAMPLES_LN2 12 #define MAX_SAMPLES (1 << (MAX_SAMPLES_LN2-1)) // MAX_SAMPLES = 2048 ! jjc       > Message du 05/10/18 18:09 > De : "Tom M." > A : "Ceresa Jean-Jacques" > Copie à : b...@gonzos.net, &quo

Re: [fluid-dev] V2 Chorus/reverb parameter ranges

2018-10-05 Thread Ceresa Jean-Jacques
amples as this: nbr sample = (depth / 1000) * sample rate if (nbr_sample > MAX_SAMPLES) { nbr_sample = MAX_SAMPLES }   So it is always safe. jjc     > Message du 05/10/18 13:51 > De : "Tom M." > A : "Ceresa Jean-Jacques" , b...@gonzos.net > Copie à : "

Re: [fluid-dev] V2 Chorus/reverb parameter ranges

2018-10-04 Thread Ceresa Jean-Jacques
C. > > So, the chorus.speed numbers are Hz? I just tested the speed, and 0.29 is > indeed the lowest allowed. > > And the chorus.depth numbers are ms? Actually, the synth allows chorus.depth > numbers only up to 21 (and I'm using 44100). Is that a glitch/problem? > &g

Re: [fluid-dev] V2 Chorus/reverb parameter ranges

2018-10-04 Thread Ceresa Jean-Jacques
Hi Ben   >I couldn't find an updated man page, so I did some fiddling and came up with >these ranges. Chorus lower speed limit is 0.29Hz (not 0) and chorus max depth limit depends of synth.sample-rate. For example with sample rate set to 44100 Hz, chorus max depth is 46 ms. Others range you

Re: [fluid-dev] Again on "Compile time constant lookup tables"

2018-09-28 Thread Ceresa Jean-Jacques
Hi Carlo,   First thanks for this usefull work. I think that the reason of using of python script instead of a C program is not obvious for a lot of people, particularly for those who doesn't use cross compiler tools chain very often. Please, may i suggest you add some comments about these re

Re: [fluid-dev] Config file warnings

2018-09-26 Thread Ceresa Jean-Jacques
Hi Ben,   >My next challenge with FS2 is to remember how to make the legato work...   Remembering 2 points: (1) monophonic mode and (2) legato mode should be sufficient:   1) Assuming one want to set MIDI channel x in monophonic mode. The simpler way to get this is to send a CC legato(68) O

Re: [fluid-dev] Config file warnings

2018-09-25 Thread Ceresa Jean-Jacques
Hi Ben   Now I'm using FS2, and I get these warnings in my log file: > > Warning: 'audio.periods' is not a realtime setting, changes won't take > effect. etc Some settings are just pointed as "not realtime" to advise the user that once the fluidsynth instance is created, those particulars

Re: [fluid-dev] Integration of FluidSynth in Polyphone

2018-09-20 Thread Ceresa Jean-Jacques
Hello Davy   Following some hints. >I imagined two possibilities: >1) loading an existing soundfont and synchronizing all following changes made >in Polyphone with the internal structure of the FluidSynth data This solution should be possible via the concept of possible multiple "soundfont lo

Re: [fluid-dev] Assigning Program Numbers to MIDI Channels

2018-09-13 Thread Ceresa Jean-Jacques
Hello The way to assign MIDI program numbers is the same as for any MIDI synthesizer. For example , assuming you are working with the Fluidsynth console application (with a MIDI driver). You can send any MIDI program change messages to the MIDI input used by Fluidsynth (using a MIDI keyboard c

Re: [fluid-dev] MIDI piano + sustain pedal realism

2018-08-22 Thread Ceresa Jean-Jacques
>So my only valid complaint in this thread is regarding sustaining the residual >resonant sounds after immediate pedal release-depress. I you wish to get this sound shape effect  you have to add this yourself by adding instructions in the soundfont (as proposzd by Tom's answer). What you hear f

Re: [fluid-dev] Midi channel grouping for left / right audio channel in single stereo

2018-08-13 Thread Ceresa Jean-Jacques
Hi, twice John   >Is it possible to do that from calling libfluidsynth library functions? Yes it is, using fluid_synth_cc() function and sending a CC 10 (panoramic) as described by previous Tom's awswer. Please see the wiki http://www.fluidsynth.org/api/synth_8h.html#a96b535f5acee6f807033d6cc

Re: [fluid-dev] Volume control

2018-08-12 Thread Ceresa Jean-Jacques
Hi Chris, Nobody know what "system volume" is.   If the fluidsynth console application is in use, try this: >gain 1.5 As it seems you are working on linux and assuming fluidsynth making use of alsa driver, it worth to check the volume of the audio output used by the driver (via alsa mixer): a

  1   2   >