Funny business in VuMeter OnPaint

17 views
Skip to first unread message

Carmine Casciato

unread,
Apr 26, 2011, 6:14:34 PM4/26/11
to pyo-discuss
Hello pyo,

Just got the latest revision and scared my neighbors half to death
when a wall of noise came out the speakers upon starting up the
examples.
Error message corresponds to OnPaint in VuMeter in _wxwidgets.
Error message:

Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/pyolib/_wxwidgets.py", line
582, in OnPaint
width = int(db*w)
OverflowError: cannot convert float infinity to integer

Carmine Casciato

unread,
Apr 26, 2011, 6:22:16 PM4/26/11
to pyo-discuss
Quick test:

Took out the VuMeter in the nuages example i.e.
s.gui(locals(), False, False)

No more error, but wall of noise still present. Too scared to
continue ;)

Olivier Bélanger

unread,
Apr 26, 2011, 6:27:27 PM4/26/11
to pyo-d...@googlegroups.com
Hi Carmine,

The VuMeter error is just a side effect of something else... When it receives an amplitude of "inf".

You got it with nuages example ? Just tested it, works fine here...

What is your system ? Python version ? compiler ?

Olivier

2011/4/26 Carmine Casciato <casc...@gmail.com>

Carmine Casciato

unread,
Apr 26, 2011, 6:55:12 PM4/26/11
to pyo-discuss
Hi Olivier,

Apple gcc 4.2.1, Apple Python 2.6.1, on OX 10.6.7, using JackPilot or
system audio.

There is definitely something funky going on with the examples for me.

The nuage example is now giving this as an error.

File "examples/nuages.py", line 24, in <module>
tabs.append(SndTable(snds[i]))
File "/Library/Python/2.6/site-packages/pyolib/tables.py", line
1114, in __init__
_size, _dur, _snd_sr, _snd_chnls = sndinfo(p)

So I tried some another example, freqmod. A (loud) burst and then
nothing. So I tried the simple sine wave example and it worked fine,
the gui and vumeter and everything. So now I am just confused. I am
going to re-fetch the library, see if that helps. I'll let you know.

Cheers,
Carmine

On Apr 26, 6:27 pm, Olivier Bélanger <belan...@gmail.com> wrote:
> Hi Carmine,
>
> The VuMeter error is just a side effect of something else... When it
> receives an amplitude of "inf".
>
> You got it with nuages example ? Just tested it, works fine here...
>
> What is your system ? Python version ? compiler ?
>
> Olivier
>
> 2011/4/26 Carmine Casciato <casci...@gmail.com>

Olivier Bélanger

unread,
Apr 26, 2011, 7:17:16 PM4/26/11
to pyo-d...@googlegroups.com
Maybe there is something wrong with Portaudio, sndinfo() uses it. How did you install the dependencies ? There is a shell script in the scripts folder that download and install libs and headers I use for portaudio, portmidi, libsndfile and liblo...

freqMod.py works for me, on 10.6.6.

Olivier

2011/4/26 Carmine Casciato <casc...@gmail.com>
Hi Olivier,

Olivier Bélanger

unread,
Apr 26, 2011, 7:30:18 PM4/26/11
to pyo-d...@googlegroups.com
Sorry,

scripts/get_dependencies.sh !

Olivier

Carmine Casciato

unread,
Apr 26, 2011, 9:27:14 PM4/26/11
to pyo-d...@googlegroups.com
I had forgotten to get the dependencies for this revision, I hadn't noticed that they were different than the last time. There were fewer 'deprecated warnings' when I recompiled this time, but something is still not working. Gonna clean everything up and try again tomorrow.
Thanks,
Carmine
Reply all
Reply to author
Forward
0 new messages