Re: Recording widget motion

2006-09-11 Thread Stefan Kost
hi, yes, using the GstController is the way to go. Initially you will record a series of timed value changes. The GstController manages this queue for you. If you hook these changes onto e.g. a GstVOlume element, you can then listen to the "notify::volume" of it and from the handler set the value

Re: Recording widget motion

2006-09-07 Thread Samuel Cormier-Iijima
Yea... after thinking about it more I think I'll stick with either implementing my own widget or using a graph widget (time vs value) that the user can edit with a pencil, eraser, or line (how reason does it). On 9/7/06, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: > On Thu, Sep 07, 2006 at 09:42

Re: Recording widget motion

2006-09-07 Thread Yeti
On Thu, Sep 07, 2006 at 09:42:16AM -0400, Samuel Cormier-Iijima wrote: > > I thought g_timeout_add > would cause timing to be off (it would unsynchronize over time), but > using a GTimer fixed it. Yes, g_timeout_add() is just a best-effort timer, no real-time. But many apps do not need to run th

Re: Recording widget motion

2006-09-07 Thread Samuel Cormier-Iijima
Thanks for the reply! That is pretty much what I'm doing currently, although your idea of using a GSList is a much better solution than the weird struct I'm using now :-). Also, I wasn't sure whether to use g_timeout_add or to make another thread to update the slider; I thought g_timeout_add would

Re: Recording widget motion

2006-09-07 Thread Yeti
On Thu, Sep 07, 2006 at 08:59:13AM -0400, Samuel Cormier-Iijima wrote: > This is for music editing software I'm thinking about writing. > Basically, the user should be able to "record" the volume during > playback by sliding the GtkHScale around. When he plays it back the > next time, the volume sh

Re: Recording widget motion

2006-09-07 Thread Samuel Cormier-Iijima
This is for music editing software I'm thinking about writing. Basically, the user should be able to "record" the volume during playback by sliding the GtkHScale around. When he plays it back the next time, the volume should change according to the way he recorded it (i.e. it'll wiggle around by it

Re: Recording widget motion

2006-09-07 Thread Carlo Agrusti
Samuel Cormier-Iijima ha scritto lo scorso 07/09/2006 05:02: > Hi everyone, > > I have a GtkAdjustment and HScale and I'd like to be able to record > and playback the user's movement. To clarify: a user should be able to > push a "record" button, after which he can drag the Scale widget > however