Hello all,
I am trying to use [earplug~] for a sound installation of mine, but I ran into a problem that I can't think of how to solve. I am feeding the angle values to [earplug~] through a [line] to smooth them out, but when the angle changes from 359.9 to 0 there is an audible click (since line is actually ramping down the value from 359.9 to 0 going through all the other angles). How is the best way of solving this?
I am considering to fold the angle function so that effectively it only ranges from 90 and 270 degrees (180 is the centre for [earplug~]). By doing that, both 0 and 360 would become 180, thus avoiding the unwanted click, but that would mean that there is would be no distinction between sounds coming from the front and the back of the listener.
Do you guys have any better ideas on how to solve this?
Thanks a lot! Gilberto
Hi,
I'm not sure you need to smooth the angle, if you have a look at the hrtf set (http://sound.media.mit.edu/KEMAR.html) it only has 5 degrees precision in yaw and 10 degrees in elevation. So if I'm not wrong your smoothing as no effect.
Etienne
2015-04-20 9:35 GMT+02:00 Gilberto Agostinho <gilbertohasnofb@googlemail.com
:
Hello all,
I am trying to use [earplug~] for a sound installation of mine, but I ran into a problem that I can't think of how to solve. I am feeding the angle values to [earplug~] through a [line] to smooth them out, but when the angle changes from 359.9 to 0 there is an audible click (since line is actually ramping down the value from 359.9 to 0 going through all the other angles). How is the best way of solving this?
I am considering to fold the angle function so that effectively it only ranges from 90 and 270 degrees (180 is the centre for [earplug~]). By doing that, both 0 and 360 would become 180, thus avoiding the unwanted click, but that would mean that there is would be no distinction between sounds coming from the front and the back of the listener.
Do you guys have any better ideas on how to solve this?
Thanks a lot! Gilberto
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi, My experience with earplug was that the external itself does the interpolation for you and there's no need to use line to avoid clicks. Feeding it directly with and angle with decimals works just fine. Also even using this 5 degrees resolutio, due to the interpolation I guess, it feels really smooth. Actually I have to say it works fairly well and maybe the only drawback it is that it's a bit dsp intensive. Salut!
On Mon, Apr 20, 2015 at 9:52 AM, Etienne Landon landon.etienne@gmail.com wrote:
Hi,
I'm not sure you need to smooth the angle, if you have a look at the hrtf set (http://sound.media.mit.edu/KEMAR.html) it only has 5 degrees precision in yaw and 10 degrees in elevation. So if I'm not wrong your smoothing as no effect.
Etienne
2015-04-20 9:35 GMT+02:00 Gilberto Agostinho < gilbertohasnofb@googlemail.com>:
Hello all,
I am trying to use [earplug~] for a sound installation of mine, but I ran into a problem that I can't think of how to solve. I am feeding the angle values to [earplug~] through a [line] to smooth them out, but when the angle changes from 359.9 to 0 there is an audible click (since line is actually ramping down the value from 359.9 to 0 going through all the other angles). How is the best way of solving this?
I am considering to fold the angle function so that effectively it only ranges from 90 and 270 degrees (180 is the centre for [earplug~]). By doing that, both 0 and 360 would become 180, thus avoiding the unwanted click, but that would mean that there is would be no distinction between sounds coming from the front and the back of the listener.
Do you guys have any better ideas on how to solve this?
Thanks a lot! Gilberto
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi all,
Thanks for all the replies. Here are my comments:
On 20/04/15 09:52, Etienne Landon wrote:
I'm not sure you need to smooth the angle, if you have a look at the hrtf set (http://sound.media.mit.edu/KEMAR.html) it only has 5 degrees precision in yaw and 10 degrees in elevation. So if I'm not wrong your smoothing as no effect.
Even if its precision is that low I hear audible clicks when I feed numbers without smoothing them with line. If I simply connect a number box to it and I use my mouse to scroll up and down the numbers relatively fast, I hear very clearly some unwanted artifacts.
On 20/04/15 10:12, Òscar Martínez Carmona wrote:
My experience with earplug was that the external itself does the interpolation for you and there's no need to use line to avoid clicks. Feeding it directly with and angle with decimals works just fine. Also even using this 5 degrees resolutio, due to the interpolation I guess, it feels really smooth.
Same as above. The interpolation done by the object works well up to a certain limit, but if you are feeding a lot of values and if the changes are large enough, the clicks will be heard.
On 20/04/15 10:14, IOhannes m zmoelnig wrote:
unwrap consecutive angles to make sure that the (naïve) difference (=abs(x1-x0)) between the two angles is always <=180°. (so when going from 170° to -170°, you unwrap the second value to 190°)
then [line]. (so you get steps: 170..180..190 rather than 170..0..-170)
than wrap the result back to 0°..360° (if that's beeded by [earplug~]).
I think I understand what you propose. I will try to implement this and see how it goes.
Thank you all for the help, I really appreciate it.
Cheers, Gilberto
On 2015-04-20 09:35, Gilberto Agostinho wrote:
Hello all,
I am trying to use [earplug~] for a sound installation of mine, but I ran into a problem that I can't think of how to solve. I am feeding the angle values to [earplug~] through a [line] to smooth them out, but when the angle changes from 359.9 to 0 there is an audible click (since line is actually ramping down the value from 359.9 to 0 going through all the other angles). How is the best way of solving this?
I am considering to fold the angle function so that effectively it only ranges from 90 and 270 degrees (180 is the centre for [earplug~]). By doing that, both 0 and 360 would become 180, thus avoiding the unwanted click, but that would mean that there is would be no distinction between sounds coming from the front and the back of the listener.
Do you guys have any better ideas on how to solve this?
unwrap consecutive angles to make sure that the (naïve) difference (=abs(x1-x0)) between the two angles is always <=180°. (so when going from 170° to -170°, you unwrap the second value to 190°)
then [line]. (so you get steps: 170..180..190 rather than 170..0..-170)
than wrap the result back to 0°..360° (if that's beeded by [earplug~]).
fgmdfsr IOhannes
Hi,
On 20/04/2015 09:35, Gilberto Agostinho wrote:
Hello all,
I am trying to use [earplug~] for a sound installation of mine, but I ran into a problem that I can't think of how to solve. I am feeding the angle values to [earplug~] through a [line] to smooth them out, but when the angle changes from 359.9 to 0 there is an audible click (since line is actually ramping down the value from 359.9 to 0 going through all the other angles). How is the best way of solving this?
Given that I know little about earplug~ - but can't you just have an 'infinite line' with a counter with [mod] at 360? So when your 'line' reaches 360 that will become 0, 361 will be 1 etc. Or am I missing somethig?
Lorenzo.