Andrew Hassall | 1 Apr 14:10 2011
Picon

Finding overlap

Is it possible to find the signal overlap within an external, I know
you can find the length and sample rate of a signal from the struct
_signal, are there any functions to find the overlap?

Thanks
Andy
Miller Puckette | 1 Apr 17:57 2011

Re: Finding overlap

Unfortunately not.  I've been planning to make this possible for many years
but the details get confusing.

cheers
Miller

On Fri, Apr 01, 2011 at 01:10:42PM +0100, Andrew Hassall wrote:
> Is it possible to find the signal overlap within an external, I know
> you can find the length and sample rate of a signal from the struct
> _signal, are there any functions to find the overlap?
> 
> Thanks
> Andy
> 
> _______________________________________________
> Pd-dev mailing list
> Pd-dev@...
> http://lists.puredata.info/listinfo/pd-dev
Hans-Christoph Steiner | 1 Apr 18:49 2011
Picon

Re: gtk-open-plugin update


Hey Lorenzo, 

I cc'ed pd-dev since this could be generally useful discussion.  The
save thing works a fair amount different than open, and the messages are
hidden within the pd <-> pd-gui communications.  The place to start in
finding the File->Save function is to look at what the File->Save or
Ctrl-S calls.  In tcl/pd_bindings.tcl, you can see this:

    bind all <$::modifier-Key-s>      {menu_send %W menusave}

So Ctrl-S directly sends 'menusave' to pd.  To find that in the C
source, I look for '"menusave"' i.e. menusave in double-quotes:

 hans <at> palatschinken pure-data.git $ grep '"menusave"' src/*.c
 src/g_readwrite.c:        gensym("menusave"), 0);

Which is a piece of this line:

    class_addmethod(canvas_class, (t_method)canvas_menusave,
        gensym("menusave"), 0);

So that binds "menusave" to the canvas_menusave function which
ultimately replies to pd-gui calling the Tcl proc pdtk_canvas_saveas.
So you just need to override that Tcl proc since that is where
tk_getSaveFile is called to launch the Save As panel.

.hc

On Thu, 2011-03-31 at 23:35 +0200, Lorenzo Sutton wrote:
(Continue reading)

yvan volochine | 1 Apr 20:49 2011
Picon

erase object text

hi,

is there a way to erase the text from an object box that's being edited 
(in tcl) ?
I tryed with pdtk_sekectall and pdtk_text_set but I couldn't get it to 
work (pd keeps the 'old' text).

cheers,
_y
Miller Puckette | 1 Apr 22:43 2011

Re: erase object text

Can't be done -- the actual text editing is done in Pd and the TCL
code is just to display the current state of affairs down in Pd.

There might be a way to do it via messages to Pd though -- for instance,
simlulating the necessary mouse/keyboard actions.

cheers
Miller

On Fri, Apr 01, 2011 at 08:49:40PM +0200, yvan volochine wrote:
> hi,
> 
> is there a way to erase the text from an object box that's being
> edited (in tcl) ?
> I tryed with pdtk_sekectall and pdtk_text_set but I couldn't get it
> to work (pd keeps the 'old' text).
> 
> cheers,
> _y
> 
> _______________________________________________
> Pd-dev mailing list
> Pd-dev@...
> http://lists.puredata.info/listinfo/pd-dev
yvan volochine | 1 Apr 23:29 2011
Picon

Re: erase object text

On 04/01/2011 10:43 PM, Miller Puckette wrote:
> Can't be done -- the actual text editing is done in Pd and the TCL
> code is just to display the current state of affairs down in Pd.
>
> There might be a way to do it via messages to Pd though -- for instance,
> simlulating the necessary mouse/keyboard actions.

ah yes, that works if I simulate a double-click.
auto-completion is getting closer =)

cheers,
_y
Lorenzo Sutton | 2 Apr 00:48 2011
Picon

Re: gtk-open-plugin update

Dear Hans,

Thanks for the hint, indeed that was the save entry!

I added the save so now both open and save are working. I also unified
the .c sources and the make file in the same dir.
Release candidate is here:
http://puredata.info/community/projects/software/gtk-open-save/releases/0.2

Lorenzo.

-------- Original Message --------
Subject: Re: gtk-open-plugin update
From: Hans-Christoph Steiner <hans@...>
To: Lorenzo Sutton <lsutton@...>
CC: pd-dev@...
Date: 01/04/2011 18:49
> Hey Lorenzo, 
>
> I cc'ed pd-dev since this could be generally useful discussion.  The
> save thing works a fair amount different than open, and the messages are
> hidden within the pd <-> pd-gui communications.  The place to start in
> finding the File->Save function is to look at what the File->Save or
> Ctrl-S calls.  In tcl/pd_bindings.tcl, you can see this:
>
>     bind all <$::modifier-Key-s>      {menu_send %W menusave}
>
> So Ctrl-S directly sends 'menusave' to pd.  To find that in the C
> source, I look for '"menusave"' i.e. menusave in double-quotes:
>
(Continue reading)

yvan volochine | 2 Apr 14:15 2011
Picon

submitting gui-plugins

hi,

I have a couple of gui-plugins[*] I'd like to submit but I'm afraid I 
couldn't find how :/

I created an account on the wiki but I don't know how to add something 
in projects/software/gui-plugin.

cheers,
_y

ps: I realized that my RecentFiles patch fits in a Gui-Plugin, as well 
as other goodies.
pps: say I wrote 3 gui-plugins, do you think it's better to add them 
separately or group them all together ? (recent-files, 
menubar-shortcuts, auto-completion)
yvan volochine | 2 Apr 15:32 2011
Picon

Re: submitting gui-plugins

On 04/02/2011 03:14 PM, András Murányi wrote:
> log in, go to http://puredata.info/community/projects/software and click
> "add new software project" at the right side of the vertical navigation
> bar, under "All sorts of software built on..."

d'oh!

> I suggest that you don't group your stuff up but create separate entries.

alright

cheers,
_y
yvan volochine | 2 Apr 17:38 2011
Picon

Re: erase object text

On 04/01/2011 11:29 PM, yvan volochine wrote:
> On 04/01/2011 10:43 PM, Miller Puckette wrote:
>> Can't be done -- the actual text editing is done in Pd and the TCL
>> code is just to display the current state of affairs down in Pd.
>>
>> There might be a way to do it via messages to Pd though -- for instance,
>> simlulating the necessary mouse/keyboard actions.
>
> ah yes, that works if I simulate a double-click.

it seems that simulating the mouse is a bad idea (focus problems).
how would I go to simulate CTRL-A ??

this does not work:

proc ctrl_all {} {
     ...
     set key "Control_L"
     set a 97

     pdsend "$mytoplevel key 1 $key 0"
     pdsend "$mytoplevel key 1 $a 0"
     pdsend "$mytoplevel key 0 $a 0"
     pdsend "$mytoplevel key 0 $key 0"
}

cheers,
_y

Gmane