Csound Csound-dev Csound-tekno Search About

[Csnd] fluidsynth artifacts

Date2011-01-25 14:10
FromJoel Ross
Subject[Csnd] fluidsynth artifacts
When using the fluid opcodes, I've noticed that the end of a note
(beyond the end of the decay stage) is always followed by a short
section of an unpleasant buzzing sound, which is at the same pitch as
the note, it is very quiet so is sometimes not too obvious, but with
other instruments it is a very problematic. The sound resembles the
effect of reducing the bit depth of a signal, it seems like fluidsynth
is getting something wrong - using a low bitrate, or rescaling from a
very quiet signal. Has anyone else experienced something like this?

Regards,
- Joel


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-01-25 14:34
FromVictor Lazzarini
SubjectRe: [Csnd] fluidsynth artifacts
Could it be your sample library?
On 25 Jan 2011, at 14:10, Joel Ross wrote:

> When using the fluid opcodes, I've noticed that the end of a note
> (beyond the end of the decay stage) is always followed by a short
> section of an unpleasant buzzing sound, which is at the same pitch as
> the note, it is very quiet so is sometimes not too obvious, but with
> other instruments it is a very problematic. The sound resembles the
> effect of reducing the bit depth of a signal, it seems like fluidsynth
> is getting something wrong - using a low bitrate, or rescaling from a
> very quiet signal. Has anyone else experienced something like this?
>
> Regards,
> - Joel
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-01-25 14:45
FromJoel Ross
SubjectRe: [Csnd] fluidsynth artifacts
I don't think so, this is consistently happening with a number of soundfonts,
including the GM one in the csound svn. The sound tends towards a square
wave as the amplitude decays, as if it were at a low bit depth.

- Joel

On 25 January 2011 15:34, Victor Lazzarini  wrote:
> Could it be your sample library?
> On 25 Jan 2011, at 14:10, Joel Ross wrote:
>
>> When using the fluid opcodes, I've noticed that the end of a note
>> (beyond the end of the decay stage) is always followed by a short
>> section of an unpleasant buzzing sound, which is at the same pitch as
>> the note, it is very quiet so is sometimes not too obvious, but with
>> other instruments it is a very problematic. The sound resembles the
>> effect of reducing the bit depth of a signal, it seems like fluidsynth
>> is getting something wrong - using a low bitrate, or rescaling from a
>> very quiet signal. Has anyone else experienced something like this?
>>
>> Regards,
>> - Joel
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-01-25 15:03
FromVictor Lazzarini
SubjectRe: [Csnd] fluidsynth artifacts
does it happen with sf opcodes as well?
On 25 Jan 2011, at 14:45, Joel Ross wrote:

> I don't think so, this is consistently happening with a number of  
> soundfonts,
> including the GM one in the csound svn. The sound tends towards a  
> square
> wave as the amplitude decays, as if it were at a low bit depth.
>
> - Joel
>
> On 25 January 2011 15:34, Victor Lazzarini  
>  wrote:
>> Could it be your sample library?
>> On 25 Jan 2011, at 14:10, Joel Ross wrote:
>>
>>> When using the fluid opcodes, I've noticed that the end of a note
>>> (beyond the end of the decay stage) is always followed by a short
>>> section of an unpleasant buzzing sound, which is at the same pitch  
>>> as
>>> the note, it is very quiet so is sometimes not too obvious, but with
>>> other instruments it is a very problematic. The sound resembles the
>>> effect of reducing the bit depth of a signal, it seems like  
>>> fluidsynth
>>> is getting something wrong - using a low bitrate, or rescaling  
>>> from a
>>> very quiet signal. Has anyone else experienced something like this?
>>>
>>> Regards,
>>> - Joel
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/? 
>>> group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe
>>> csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe
>> csound"
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-01-25 15:14
Frommenno
Subject[Csnd] Re: fluidsynth artifacts
And when you use this in the instrument and use the highest Interpolation
Order?

fluidSetInterpMethod giengine, 1, 7

menno

Date2011-01-26 15:24
FromJoel Ross
SubjectRe: [Csnd] Re: fluidsynth artifacts
Hi, thanks for the suggestions.

This seems to happen with both the fluid opcodes and the sfplay, and
with every soundfont I've tried.
I wonder if I'm not just seeing the effects of the amplitude going
below the noise floor, though it does
seem a little loud for that. It appears to start between -24 and -60
dB even when rendering in 24-bit. I've tried
the dither option as well, but in every case I end up with distortion
during the decay.

I've uploaded an example which shows this effect:

https://docs.google.com/leaf?id=0B6h005La3HGSYmE2ZTA5NzMtZmNjNS00MTczLWFlN2QtZjMzYTk3OWU1MmQ4&hl=en_GB&authkey=CM_j8J8P

-Joel

On 25 January 2011 16:14, menno  wrote:
>
> And when you use this in the instrument and use the highest Interpolation
> Order?
>
> fluidSetInterpMethod giengine, 1, 7
>
> menno
> --
> View this message in context: http://csound.1045644.n5.nabble.com/fluidsynth-artifacts-tp3356299p3356433.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-01-27 09:48
Frommenno
Subject[Csnd] Re: fluidsynth artifacts
yes i hear what you mean now. I had to normalize your wave and turn up the
volume of my amp, but what i hear is this: after the note is finished
(including the release) i hear a soft "echo" of the same note, same pitch.
It do not detect distortion in that weak sound myself, but that echo is
weird enough.
I can not help you out, but i can confirm that "there is something there"...

menno

Date2011-01-27 11:05
FromMichael Gogins
SubjectRe: [Csnd] Re: fluidsynth artifacts

Reverb is on by default.

On Jan 27, 2011 4:49 AM, "menno" <nabob_cd@yahoo.com> wrote:
>
> yes i hear what you mean now. I had to normalize your wave and turn up the
> volume of my amp, but what i hear is this: after the note is finished
> (including the release) i hear a soft "echo" of the same note, same pitch.
> It do not detect distortion in that weak sound myself, but that echo is
> weird enough.
> I can not help you out, but i can confirm that "there is something there"...
>
> menno
> --
> View this message in context: http://csound.1045644.n5.nabble.com/fluidsynth-artifacts-tp3356299p3359442.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>

Date2011-01-27 12:42
Frommenno
Subject[Csnd] Re: fluidsynth artifacts
allright, that is a possibility too..:)
Joel, try and mute the reverb by using something like this:

	fluidCCi giengine, 1, 91, 0
before fluidNote.
Controller 91 is the reverb controller of an instrument.

menno

Date2011-01-27 13:23
FromJoel Ross
SubjectRe: [Csnd] Re: fluidsynth artifacts
Actually, I've turned all of the effects off with the instantiation of
fluidsynth.

giengine  fluidEngine 0, 0

The problem that I'm hearing is quantization noise, so the question is really
whether this is a natural result of the bit depth that the audio is written at,
or whether there is some issue with scaling somewhere between fluidsynth
and csound. I don't seem to get this problem at low amplitudes with
other sounds,
but this could just be a matter of them sounding digital to start with.

The other thing that seems to be happening is that the envelopes that are
being used by fluidsynth are being held at a very low amplitude for an
excessively
long time, holding a sound effectively at 1 bit resolution for nearly
a second is
going to sound nasty in any case.

Perhaps there is a way to shorten this.

-Joel

On 27 January 2011 13:42, menno  wrote:
>
> allright, that is a possibility too..:)
> Joel, try and mute the reverb by using something like this:
>
>        fluidCCi giengine, 1, 91, 0
> before fluidNote.
> Controller 91 is the reverb controller of an instrument.
>
> menno
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/fluidsynth-artifacts-tp3356299p3359639.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"