Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-05-06 Thread EmbeddedMicro
It turns out that you can't sync it with python yet. So I am going to port my plugin to C. -- View this message in context: http://www.nabble.com/Python-Plugin-LED-Cube-Visualizations-tp23117783p23416741.html Sent from the Gnome - Rhythmbox - Dev mailing list archive at Nabble.com.

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-05-04 Thread Jonathan Matthew
On Mon, May 04, 2009 at 04:29:23PM -0700, EmbeddedMicro wrote: > > I have a general idea of what I need to do but I need to know how to get to > the pipeline clock. Anyone know how? I need something equivalent to this but > in python and for Rhythmbox. > > sync_clock = gst_pipeline_get_clock (GST

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-05-04 Thread EmbeddedMicro
I have a general idea of what I need to do but I need to know how to get to the pipeline clock. Anyone know how? I need something equivalent to this but in python and for Rhythmbox. sync_clock = gst_pipeline_get_clock (GST_PIPELINE (bin)); bin is a pipeline. -- View this message in context: htt

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-05-02 Thread EmbeddedMicro
I have it working with the cube now! Thanks a lot! You were right about the magnitude part, but the source part didn't work quite right. Here's the working code. import rb > import gst > import serial > import array > > class LEDcube(rb.Plugin): > > def activate(self, shell): >

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-05-01 Thread Jonathan Matthew
On Fri, May 01, 2009 at 04:33:14PM -0700, EmbeddedMicro wrote: > > Another question, how do I isolate the magnitude part. I though it would have > been something like message.magnitude but that does not work. > > Also I am getting messages on play/pause. How can I get only the messages > that con

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-05-01 Thread EmbeddedMicro
Another question, how do I isolate the magnitude part. I though it would have been something like message.magnitude but that does not work. Also I am getting messages on play/pause. How can I get only the messages that contain the magnitude info. Thanks, Justin -- View this message in context:

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-05-01 Thread EmbeddedMicro
Thanks a lot! That example is exactly what I needed. Also will the changes you made to Rhythmbox eventually make it to the Ubuntu repository? How long does that usually take? One thing I noticed is there is a pause about every second in the output. It is a short pause but it might mess with the

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-04-30 Thread Jonathan Matthew
On Thu, Apr 30, 2009 at 07:10:47AM -0700, EmbeddedMicro wrote: > > Now I'm getting this... > > File "/home/justin/.gnome2/rhythmbox/plugins/cube/led-cube.py", line 12, > in activate > bus = player.props.bus > AttributeError: 'gobject.GProps' object has no attribute 'bus' > Traceback (most r

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-04-30 Thread EmbeddedMicro
Now I'm getting this... File "/home/justin/.gnome2/rhythmbox/plugins/cube/led-cube.py", line 12, in activate bus = player.props.bus AttributeError: 'gobject.GProps' object has no attribute 'bus' Traceback (most recent call last): File "/home/justin/.gnome2/rhythmbox/plugins/cube/led-cube.

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-04-29 Thread Jonathan Matthew
On Wed, Apr 29, 2009 at 03:27:47PM -0700, EmbeddedMicro wrote: > > Thanks a lot for that example! > > However when I run it I get the error. > > File "/home/justin/.gnome2/rhythmbox/plugins/cube/led-cube.py", line 24, > in filter_inserted > p.get_bus().connect('message', self.on_message) >

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-04-29 Thread EmbeddedMicro
Thanks a lot for that example! However when I run it I get the error. File "/home/justin/.gnome2/rhythmbox/plugins/cube/led-cube.py", line 24, in filter_inserted p.get_bus().connect('message', self.on_message) AttributeError: 'NoneType' object has no attribute 'connect' Jonathan Matthew

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-04-29 Thread Jonathan Matthew
On Sun, Apr 26, 2009 at 03:47:48PM -0700, EmbeddedMicro wrote: > > I under stand this a bit more. I read up on the spectrum element, but I can't > figure out how to get the messages it sends out. This is what I have now, it > does not work. > > > ... > > Is the bus stuff even remotely correct?

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-04-26 Thread EmbeddedMicro
I under stand this a bit more. I read up on the spectrum element, but I can't figure out how to get the messages it sends out. This is what I have now, it does not work. import rhythmdb, rb > import serial > import gst > > class LEDcube(rb.Plugin): > > def __init__(self): >

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-04-22 Thread EmbeddedMicro
I'm having a hard time with this. I believe I have the level and spectrum elements set up correctly, but I can't figure out how to use them. For example say I have this. import rhythmdb, rb > import gobject, gtk > import serial > import gst > > class LEDcube(rb.Plugin): > > def __init__(s

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-04-20 Thread Jonathan Matthew
On Sun, Apr 19, 2009 at 06:56:31PM -0700, EmbeddedMicro wrote: > > > EmbeddedMicro wrote: > > > > shell.get_player().props.player.add_tee_element(b) > > AttributeError: '__main__.RBPlayerGst' object has no attribute > > 'add_tee_element' > > > > Is the guide wrong? How do I add the elements? >

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-04-19 Thread EmbeddedMicro
EmbeddedMicro wrote: > > shell.get_player().props.player.add_tee_element(b) > AttributeError: '__main__.RBPlayerGst' object has no attribute > 'add_tee_element' > > Is the guide wrong? How do I add the elements? > It looks like it should be shell.get_player().props.player.add_tee(b) So here

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-04-19 Thread EmbeddedMicro
Thanks a lot for the tip! I have been looking for a while without finding much about this. So now I have import rhythmdb, rb import gobject, gtk import serial import gst class SamplePython(rb.Plugin): def __init__(self): rb.Plugin.__init__(self)

Re: [Rhythmbox-devel] Python Plugin-LED Cube Visualizations

2009-04-19 Thread Jonathan Matthew
On Sat, Apr 18, 2009 at 03:06:25PM -0700, EmbeddedMicro wrote: > > I build and sell RGB LED cubes. The newest version has a serial interface > that I would like to utilise using Rhythmbox. I know C, but I am using > Python (for the first time) as it is easier. > > So far I have the plugin set up