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.
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
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
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):
>
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
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:
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
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
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.
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)
>
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
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?
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):
>
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
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?
>
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
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)
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
18 matches
Mail list logo