[PD] edit or play mode information

Hans-Christoph Steiner hans at eds.org
Mon Jan 29 18:43:17 CET 2007


Also, you can track the state if you do this:

[receive pd]
|
[route editmode]
|
[X]

.hc

On Jan 29, 2007, at 2:27 AM, Chuckk Hubbard wrote:

> Sorry, I left the list out on my earlier reply...
>
> I have used:
>
> [x]
> |
> [pd-subpatch editmode $1(
>
> Instead of Ctl-E, and then the same toggle can be used to tell the
> patch whether editmode is on for the subpatch.  I have my sequencer
> score set up so that hitting E once lets go of the note-cursor and
> enters edit mode; hitting E again leaves edit mode but leaves the
> note-cursor unattached to the mouse; and hitting Q at any point binds
> the note-cursor to the mouse.  Of course Ctl-E still works, but in my
> patch there's no reason not to have just E enter editmode- it only
> works when that subpatch is active.
>
> -Chuckk
>
>
> On 1/28/07, robbert van hulzen <robbert at performers.net> wrote:
>> dear all,
>> i'm attempting to build an abs to control whether or not hitting a  
>> key has
>> an effect: i'd like the space bar to do a number of things when in  
>> play mode
>> but not in edit mode. i came up with the patch below, however,  
>> working on
>> several open patches will screw it up as it works with a counter  
>> that keeps
>> track of the number of times command-e has been hit (resulting in  
>> 1 or 0
>> which controls a spigot). i'd like to replace this 'relative'  
>> control with
>> an 'absolute' one, in other words i'm wondering whether i can  
>> retrieve the
>> mode status of the patch somewhere so i can have that control the  
>> spigot.
>> any ideas would be much appreciated.
>> cheers, robbert
>>
>> --
>> Pd-0.39.2-extended-test5
>> mac osx 10.4.8, 15" G4 PB 1.67 GHz, 1 GB ram
>>
>> #N canvas 0 22 672 629 10;
>> #X obj 50 280 tgl 23 0 go \$0-go empty 0 -6 0 8 -241291 -1 -1 0 1;
>> #X obj 50 202 key;
>> #X obj 50 228 sel 32;
>> #X obj 80 339 select 0 1;
>> #X obj 83 391 list;
>> #X obj 50 365 \$0;
>> #X msg 83 417 \; \$1-go color \$2 \$3 22;
>> #X msg 125 365 19 16;
>> #X obj 50 313 t b f;
>> #X msg 80 365 15 22;
>> #X obj 27 20 keyname;
>> #X obj 115 72 sel e;
>> #X obj 71 150 demux;
>> #X obj 115 124 f;
>> #X obj 145 124 + 1;
>> #X obj 71 46 t s b s;
>> #X msg 115 98 -1;
>> #X obj 101 176 sel Alt_L;
>> #X obj 134 202 + 1;
>> #X obj 101 202 f;
>> #X obj 167 202 mod 2;
>> #X obj 101 228 == 0;
>> #X obj 50 254 spigot 1;
>> #X connect 0 0 8 0;
>> #X connect 1 0 2 0;
>> #X connect 2 0 22 0;
>> #X connect 3 0 9 0;
>> #X connect 3 1 7 0;
>> #X connect 4 0 6 0;
>> #X connect 5 0 4 0;
>> #X connect 7 0 4 1;
>> #X connect 8 0 5 0;
>> #X connect 8 1 3 0;
>> #X connect 9 0 4 1;
>> #X connect 10 1 15 0;
>> #X connect 11 0 16 0;
>> #X connect 12 1 17 0;
>> #X connect 13 0 14 0;
>> #X connect 13 0 12 1;
>> #X connect 14 0 13 1;
>> #X connect 15 0 12 0;
>> #X connect 15 1 13 0;
>> #X connect 15 2 11 0;
>> #X connect 16 0 13 0;
>> #X connect 17 0 19 0;
>> #X connect 18 0 20 0;
>> #X connect 19 0 18 0;
>> #X connect 19 0 21 0;
>> #X connect 20 0 19 1;
>> #X connect 21 0 22 1;
>> #X connect 22 0 0 0;
>> #X coords 0 -1 1 1 23 23 1 50 280;
>>
>>
>>
>> _______________________________________________
>> PD-list at iem.at mailing list
>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
>> listinfo/pd-list
>>
>
>
> --
> "Far and away the best prize that life has to offer is the chance to
> work hard at work worth doing."
> -Theodore Roosevelt
>
>
> -- 
> "Far and away the best prize that life has to offer is the chance to
> work hard at work worth doing."
> -Theodore Roosevelt
>
> _______________________________________________
> PD-list at iem.at mailing list
> UNSUBSCRIBE and account-management -> http://lists.puredata.info/ 
> listinfo/pd-list


------------------------------------------------------------------------

                   ¡El pueblo unido jamás será vencido!






More information about the Pd-list mailing list