Re: [PD] tanh() or a compressor?

2013-10-02 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 2013-10-01 16:30, Mario Mey wrote:
 How does Pd or the soundcard outputs the signal  1? Does it
 compress it?

depends on the actual backend and how you are using it.
e.g. some backends only support values that cannot possibly exceed
+-1; in these cases, the signal will be hard clipped!
with some other backends (that support floating point values natively)
you might get away with a compressed/limited signal.

if you don't know, it's best to assume that anything exceeding +-1
will be clipped.
even if you do know, it's better to assume that they will be clipped.

 
 I started this thread because I saw the high peaks in an array...
 but I never listened the sound distorted.

with very transient sounds (like clicks and pops) you might not hear
the distortion, as these values are very broadband anyhow.

btw, make sure that your signal is not already distorted on the
soundcard input. you cannot undo that...

fgamsdr
IOhannes

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Icedove - http://www.enigmail.net/

iQIcBAEBCAAGBQJSS80zAAoJELZQGcR/ejb4w7oP/imJTt1s3zNaZv3npavA0YJT
oL0cne6eS6bQ726jE133aRik0z2AZ3jWeiDC565kRoQcrf5Gml8qRvu5HnyR0J13
8H1FImL6rnsBTlusfy63tcj5GO450/nW5MY4xryCIep0K/EMufdudwNUVa9iu3Ar
G74ifuN/eikpRZd8wBBB9ohAvqGU6qolLYqWq+acDBpAy0Z9rn+9NJMDsfrWNGDh
dV552L9S6pnieocZbTcsKmLpxnc/VeCbNIUUCQsksEuY5XKkbenj0u7o8zzfEsF2
IbGiMP16q3OzDJdVzABu13w9Vd890jLMVeGQZe9f4OuMz07VebHRNht97vOC1obw
f3DDGAbABd0XqJPl0yaMhTMF+L/ndXcHIthF5LHN65OqzDJlge+Mj2e1ZrXj6VGg
6KK+6SjoWRGNAMMeauTsQyjG/cu9UfYJ1gjgSk38trqKzAZupwi9J+ysnvUjOzfh
ib7TNGeJCm34GLNwZs6lta+53cMkLApADfQkR7+CFJrS9f+x1RMcoIizl4gnMcgu
TPAeuhWwbjebo/O3dwtokb2CxeMsa3vDmM3zT78khtYmmh5/ZJAMI3+Re+5FcvkQ
tVgIfexS7ghmISZOlPRfpCp+TGnES8xMmXzsql0Q+tKGWWt1sxZ3/P6di4zP4oiF
9BQxOCAGJ+wUk/S+TIRT
=jR3Z
-END PGP SIGNATURE-

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] tanh() or a compressor?

2013-10-01 Thread Mario Mey

El 01/10/13 00:54, Brian Fay escribió:
Are you using a pop filter or windscreen or anything in front of the 
mic? Maybe that could help filter out some of the super-loud plosive 
and fricative sounds.
No beatboxer uses a pop filter or windscreen... unless he/she is at a 
recording studio.


Moving further away from the mic would definitely lower the volume, 
too (the SM58 is a cardioid mic, so it has proximity effect, where 
bass gets emphasized the closer you are to the mic). I guess the 
proximity effect will actually sound pretty nice on the kicks, but it 
also would explain why the peaks are so high.
Yes, the proximity is very important. Unfortunatly, I can't move further 
away the mic.


Well, I wrote in DIY2 thread in Forum, because I want to use Hardoff's 
compressor and I wanted his opinion, too. Because, after several tests, 
I realized that I can't get rid of the first peak of a kick (more or 
less, signal = 4). So, I thought about using the compressor with attack 
and release at lowest and, inmediatly after that, something like [expr~ 
(tanh($v1/1.5))*1.5]. So, tanh() compress the highest peaks to 1.5, 
but it doesn't distort so much the sound.


Can anybody tell me if I am very wrong?
Is the math correct?

As when writting the arrays to disk, Pd has to normalized them to 1, I 
can't see really the difference in a sound editor, between the original 
and the compressed one.









On Mon, Sep 30, 2013 at 3:35 PM, Mario Mey mario...@gmail.com 
mailto:mario...@gmail.com wrote:


Now, I am checking volumes of my looper patch. I had to raise [*~
4] the volume of the mic, to get a razonable volume, compared to a
song file, for example. But, using this looper patch, I make
beatbox. So, kicks and snares from my mouth get in the mic. And,
using a visual array to test it, I realize that the kicks and
snares are so much higher volume than the vocals.

The patch has FXs with feedbacks, so, they can make signal  1.
So, at the end of the patch, there's [expr tanh($v1)] to to avoid
that...  tanh() is simpler than a a compressor, but it loose some
sounds (I think). Or I should trust in tanh()?

Multiple choice:
1- Use tanh() in the input, after adc~ and before dac~.
2- Use a compressor patch in the input, after adc~ (and tanh()
before dac~)
3- Use a compressor at the end of the patch, before dac~
4- Stay as it is now...

Also, I can't spend more CPU process...

What do you recommend me to use?

Thanks.


___
Pd-list@iem.at mailto:Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -
http://lists.puredata.info/listinfo/pd-list




___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] tanh() or a compressor?

2013-10-01 Thread Mario Mey

How does Pd or the soundcard outputs the signal  1? Does it compress it?

I started this thread because I saw the high peaks in an array... but I 
never listened the sound distorted.


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] tanh() or a compressor?

2013-10-01 Thread Antoine Villeret
hey,

if CPU is a matter, you could try to use an external analog (or digital)
compressor (and an eq) between your mic and your soudcard.

The table display in Pd is linear while sound intensity feeling is
logarithmic, so it's not surprising to have such peaks.
When you try to write value  1 to disk or to output it, it's clipped to 1.

++
a



--
do it yourself
http://antoine.villeret.free.fr


2013/10/1 Mario Mey mario...@gmail.com

 How does Pd or the soundcard outputs the signal  1? Does it compress it?

 I started this thread because I saw the high peaks in an array... but I
 never listened the sound distorted.


 __**_
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - http://lists.puredata.info/**
 listinfo/pd-list http://lists.puredata.info/listinfo/pd-list

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] tanh() or a compressor?

2013-10-01 Thread katja
Hi Mario,

Did you try [zexy/limiter~]? It's not so CPU-intensive. Isn't that what you
want: only attenuate the sounds which exceed a limit, and leave the rest
untouched?

Katja


On Tue, Oct 1, 2013 at 4:30 PM, Mario Mey mario...@gmail.com wrote:

 How does Pd or the soundcard outputs the signal  1? Does it compress it?

 I started this thread because I saw the high peaks in an array... but I
 never listened the sound distorted.


 __**_
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - http://lists.puredata.info/**
 listinfo/pd-list http://lists.puredata.info/listinfo/pd-list

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


[PD] tanh() or a compressor?

2013-09-30 Thread Mario Mey
Now, I am checking volumes of my looper patch. I had to raise [*~ 4] the 
volume of the mic, to get a razonable volume, compared to a song file, 
for example. But, using this looper patch, I make beatbox. So, kicks and 
snares from my mouth get in the mic. And, using a visual array to test 
it, I realize that the kicks and snares are so much higher volume than 
the vocals.


The patch has FXs with feedbacks, so, they can make signal  1. So, at 
the end of the patch, there's [expr tanh($v1)] to to avoid that...  
tanh() is simpler than a a compressor, but it loose some sounds (I 
think). Or I should trust in tanh()?


Multiple choice:
1- Use tanh() in the input, after adc~ and before dac~.
2- Use a compressor patch in the input, after adc~ (and tanh() before dac~)
3- Use a compressor at the end of the patch, before dac~
4- Stay as it is now...

Also, I can't spend more CPU process...

What do you recommend me to use?

Thanks.


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] tanh() or a compressor?

2013-09-30 Thread Mario Mey
I forgot to say that I'm using a Shure SM-58 connected to a external USB 
(cheap) soundcard (http://www.encore-usa.com/ar/support/ENMAB-8CM). In 
alsamixer, I raised the input volumes to max.


This  directly connected to the soundcard microphone will be connected 
throw a wireless Shure system. In that moment, I'll check again volumes.



 Mensaje original 
Asunto: tanh() or a compressor?
Fecha:  Mon, 30 Sep 2013 16:35:43 -0300
De: Mario Mey mario...@gmail.com
Para:   pd-list pd-list@iem.at



Now, I am checking volumes of my looper patch. I had to raise [*~ 4] the
volume of the mic, to get a razonable volume, compared to a song file,
for example. But, using this looper patch, I make beatbox. So, kicks and
snares from my mouth get in the mic. And, using a visual array to test
it, I realize that the kicks and snares are so much higher volume than
the vocals.

The patch has FXs with feedbacks, so, they can make signal  1. So, at
the end of the patch, there's [expr tanh($v1)] to to avoid that...
tanh() is simpler than a a compressor, but it loose some sounds (I
think). Or I should trust in tanh()?

Multiple choice:
1- Use tanh() in the input, after adc~ and before dac~.
2- Use a compressor patch in the input, after adc~ (and tanh() before dac~)
3- Use a compressor at the end of the patch, before dac~
4- Stay as it is now...

Also, I can't spend more CPU process...

What do you recommend me to use?

Thanks.



___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] tanh() or a compressor?

2013-09-30 Thread Charles Z Henry
On Mon, Sep 30, 2013 at 2:35 PM, Mario Mey mario...@gmail.com wrote:

 Now, I am checking volumes of my looper patch. I had to raise [*~ 4] the
 volume of the mic, to get a razonable volume, compared to a song file, for
 example. But, using this looper patch, I make beatbox. So, kicks and snares
 from my mouth get in the mic. And, using a visual array to test it, I
 realize that the kicks and snares are so much higher volume than the vocals.

 The patch has FXs with feedbacks, so, they can make signal  1. So, at the
 end of the patch, there's [expr tanh($v1)] to to avoid that...  tanh() is
 simpler than a a compressor, but it loose some sounds (I think). Or I
 should trust in tanh()?

 Multiple choice:
 1- Use tanh() in the input, after adc~ and before dac~.


This will cause distortion and change the shapes of your waveforms, and
introduce extra harmonics.  It may be an interesting effect, but it will
change the sound of your beatboxing.


 2- Use a compressor patch in the input, after adc~ (and tanh() before dac~)


This would be the preferred method.


 3- Use a compressor at the end of the patch, before dac~


If you have multiple instruments or voices in the output, you'll be
decreasing the volume globally and throwing off your mix.


 4- Stay as it is now...

 Also, I can't spend more CPU process...


Then, you haven't picked the right computer for your composition :)

Really, I don't think compression should be a cpu-expensive process.  Plus,
you have only one mic, right?



 What do you recommend me to use?

 Thanks.


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] tanh() or a compressor?

2013-09-30 Thread i go bananas
if the kick is not compressing properly, then one idea might be to lowpass
filter the signal that goes to the compressor's detection stage.  that way,
you'd filter out a lot of the energy from the hats, snares, etc.




On Tue, Oct 1, 2013 at 11:37 AM, Mario Mey mario...@gmail.com wrote:

  I read
 http://designingsound.org/2013/06/tutorial-a-compressor-in-pure-data/about 
 compressor working and I tried 3 different (or similar) compressors:
 the one from the page, the one from DIY2 by Hardoff and the one from rjdj
 by Jwif. I thought that compressors works different...

 I use visual arrays to see the difference from the original sound (that is
 very loud) and the compressed one. With the first compressor, there was NO
 DIFFERENCE. No at all... I don't know if I was using wrong, but it was the
 same graphic. With DIY2/st-compressor.pd, there's difference and it seems
 to be good... untill I make a kick. Again, the waves goes to the sky (well,
 not so much). The third compressor can compress a lot (low threshold), but
 all the rest of the sound does too.

 I though that only the sounds that are higher the threshold are compressed
 and the rest stay the same. Am I wrong? Am I confused? I thought that a
 compressor is like tanh(), but with editable controls.

 Can someone explain this to me?

 El 30/09/13 17:23, Charles Z Henry escribió:

 Then, you haven't picked the right computer for your composition :)

 If I could, I would buy another notebook... and throw away this
 with-non-working-in-Linux-hybrid-graphic-cards fucking HP notebook. But,
 our economy is fatal. One dollar is ten argentine pesos. I bought this
 computer 3-4 years ago, at ARS $6.000. Think spending U$S 6.000 in a
 computer. Now, a good computer, is above $10.000.


 El 30/09/13 17:43, mr sgg escribió:

 ask 4 persons and you probably will get 4 different answers. first thing i
 would notice the setup seems dirty. for example use an external preamp
 instead of digital amplification (e.g. *~4) if you want proper sound
 quality. secondly i think you should try out and trust your ears. it really
 depends on what you want it to sound. tanh most probably will lead to more
 distortion while compression will eat more cpu.

 I will use a wireless system with this mic, so, it has gain. I'll check
 that, because I think that it is important a preamp there.

 to avoid your kicks being louder than vocals you should refer to
 beatboxers. maybe you do something wrong there. or you should use 2 mics. i
 admit i am not familiar with mixing rappers who beatbox at the same time

 The mic is very good and it sound very good. I want to clarify my doubts,
 because I see waves beyond 1 in visual arrays... and I want to understand
 that.




 El 30/09/13 17:23, Charles Z Henry escribió:




 On Mon, Sep 30, 2013 at 2:35 PM, Mario Mey mario...@gmail.com wrote:

 Now, I am checking volumes of my looper patch. I had to raise [*~ 4] the
 volume of the mic, to get a razonable volume, compared to a song file, for
 example. But, using this looper patch, I make beatbox. So, kicks and snares
 from my mouth get in the mic. And, using a visual array to test it, I
 realize that the kicks and snares are so much higher volume than the vocals.

 The patch has FXs with feedbacks, so, they can make signal  1. So, at
 the end of the patch, there's [expr tanh($v1)] to to avoid that...  tanh()
 is simpler than a a compressor, but it loose some sounds (I think). Or I
 should trust in tanh()?

 Multiple choice:
 1- Use tanh() in the input, after adc~ and before dac~.


  This will cause distortion and change the shapes of your waveforms, and
 introduce extra harmonics.  It may be an interesting effect, but it will
 change the sound of your beatboxing.


 2- Use a compressor patch in the input, after adc~ (and tanh() before
 dac~)


  This would be the preferred method.


 3- Use a compressor at the end of the patch, before dac~


  If you have multiple instruments or voices in the output, you'll be
 decreasing the volume globally and throwing off your mix.


 4- Stay as it is now...

 Also, I can't spend more CPU process...


  Then, you haven't picked the right computer for your composition :)

  Really, I don't think compression should be a cpu-expensive process.
 Plus, you have only one mic, right?



 What do you recommend me to use?

 Thanks.



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list


___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] tanh() or a compressor?

2013-09-30 Thread Brian Fay
Are you using a pop filter or windscreen or anything in front of the mic?
Maybe that could help filter out some of the super-loud plosive and
fricative sounds.

Moving further away from the mic would definitely lower the volume, too
(the SM58 is a cardioid mic, so it has proximity effect, where bass gets
emphasized the closer you are to the mic). I guess the proximity effect
will actually sound pretty nice on the kicks, but it also would explain why
the peaks are so high.

I guess you'll probably need the compressor (or tanh if you like the
distortion), but definitely give a pop filter/windscreen a shot if you
haven't (and let me know if it works, because I really have no clue and I'm
curious haha)


On Mon, Sep 30, 2013 at 3:35 PM, Mario Mey mario...@gmail.com wrote:

 Now, I am checking volumes of my looper patch. I had to raise [*~ 4] the
 volume of the mic, to get a razonable volume, compared to a song file, for
 example. But, using this looper patch, I make beatbox. So, kicks and snares
 from my mouth get in the mic. And, using a visual array to test it, I
 realize that the kicks and snares are so much higher volume than the vocals.

 The patch has FXs with feedbacks, so, they can make signal  1. So, at the
 end of the patch, there's [expr tanh($v1)] to to avoid that...  tanh() is
 simpler than a a compressor, but it loose some sounds (I think). Or I
 should trust in tanh()?

 Multiple choice:
 1- Use tanh() in the input, after adc~ and before dac~.
 2- Use a compressor patch in the input, after adc~ (and tanh() before dac~)
 3- Use a compressor at the end of the patch, before dac~
 4- Stay as it is now...

 Also, I can't spend more CPU process...

 What do you recommend me to use?

 Thanks.


 __**_
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management - http://lists.puredata.info/**
 listinfo/pd-list http://lists.puredata.info/listinfo/pd-list

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list