Re: [LAD] python, gtk, gstreamer

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-audio-dev@...>
Date: Thursday, February 28, 2013 - 2:37 am

On Wednesday 27 February 2013 18:51:34 Patrick Shirkey wrote:

Right now, I have not even tried to make a meter, I just want to get the peak
value out of the subroutine and print it from outside. I can print it from
the inside but can't even figure out how to get it out.

One sample I started working with (there are others but this is one) can be
found here:

http://stackoverflow.com/questions/9344888/getting-max-amplitude-for-an-...

In the def show_peak(bus, message):

there is:

peaks.append(message.structure['peak'][0])

but this is more of a "batch" type setup rather than an interactive one.

So let's say I do something like this instead:

#peaks.append(message.structure['peak'][0])
zpeak = message.structure['peak'][0]
#print "message.structure: "
print zpeak
return zpeak

along with making a jack source and sink instead of a file source and fake
sink.

I can get the peaks printed in there via the print zpeak.

But I am going around in circles (actually, circles is too clean a shape) in
my head trying to figure out how to get that info out as it comes in.

Once I ge that, then I have to figure out how to hook it up to a meter widget.

One possibility I have looked at basing this on is this:

http://zetcode.com/gui/pygtk/customwidget/

>

all the best,

drew
_______________________________________________
Linux-audio-dev mailing list
Linux-audio-dev@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-dev

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[LAD] python, gtk, gstreamer, drew Roberts, (Wed Feb 27, 9:15 pm)
Re: [LAD] python, gtk, gstreamer, Patrick Shirkey, (Wed Feb 27, 11:51 pm)
Re: [LAD] python, gtk, gstreamer, drew Roberts, (Thu Feb 28, 2:37 am)
Re: [LAD] python, gtk, gstreamer, Patrick Shirkey, (Thu Feb 28, 3:09 am)