sfztools / sfizz-render

Render a midi file using the sfizz SFZ library
BSD 2-Clause "Simplified" License
14 stars 1 forks source link

output sound is very low #1

Open joobian opened 4 years ago

joobian commented 4 years ago

the program is marvelous! But I cannot really get it to work because the output volume is very very low. It indeed captures the MIDI to Wav with the specified samplerate, but I am not sure why it is not working as expected. any idea?

I also tried switching default soundcards but the results did not change...

alcomposer commented 4 years ago

Can you test with:

<region> sample=*sine

Post your output here, and the MIDI file.

joobian commented 4 years ago

very good suggestion. I created a test instrument as follows:

<global>
<group>
<region> sample=*sine lokey=0 hikey=127 pitch_keycenter=64

The wav file was loud. at some parts, it was too loud, causing loud clicks in the wav file, that could be avoided if there was a volume option, similar to Sforzando.

But the problem remain with literally my piano samples... very confusing... __sfizz_jack__ loads the instruments without a problem. There seem to be a problem causing the volume drop somewhere. For example, rain piano sfz renders it very fine but my other piano libraries have the extreme low volume problem! strange.

paulfd commented 4 years ago

Hi,

You can use a volume opcode to tweak the sound. There is a good chance that the clicks are more due to abruptly ending the waveform since there is no release envelope applied by default---Sforzando applies a small relase envelope in all cases.

We can check more what's happening to your piano but for this we would need the sfz and midi file you are using :slightly_smiling_face:

joobian commented 4 years ago

let me explain it in this way. If i load the SFZ with sfizz and capture the JACK output, I will end up with a very different audio file than using sfizz-render. There are some factors influencing the rendered audio that should be tweakable by additional options. But I am not sure what these factors are.

For examle, the clicks I mentioned do not appear in sfizz, but appear in sfizz-render because the audio file is too loud or too low. is there a way to ckeck what is going on?

I can, for example use a free Piano SFZ from the internet to demonstrate and reproduce the error, if that'd be of help to you.