[PD] edit or play mode information

Steffen stffn at dibidut.dk
Mon Jan 29 18:02:33 CET 2007


On 29/01/2007, at 17.27, IOhannes m zmoelnig wrote:

> Steffen wrote:
>>
>> On 29/01/2007, at 15.30, Chuckk Hubbard wrote:
>>
>>> I didn't think you wanted cursor control.  I'm saying I don't think
>>> what you want is possible, but it is possible to set up other  
>>> keys to
>>> control edit mode, and that the toggle that does so can be used to
>>> directly control other things.  Maybe someone else knows a way to  
>>> read
>>> the mode from a patch; I've never found a way either.
>>
>> When sending the msg. [; pd editmode 1(, Pd respond with this:
>> pd: unknown message editmode  1
>>
>> So it might not be possible to read the editmode status of the  
>> current
>> patch, as it is with a subpatch using:
>
>
> well "pd" is not the current patch but a global receiver. since pd
> itself cannot be in edit mode (only patches!), the [; pd editmode $1(
> does not make sense.

Yeah, that (that it doesn't makes sense) makes sense.

>
> aprt from that, you should be able to use [; pd-patch.pd( once the  
> patch
> is saved.
> (but still you don't get notified of changes!)

Ahh, thanks a bunch, that's why i couldn't make it set the "current"  
named patch in editmode, i forgot the .pd extension in the msg.

I see that the editmode status can't be read when it's changes with  
fx. ctrl-e, but it can if it is done manually as demonstrated below  
or in the the attached patch - this might be just what Chuckk Hubbard  
spoke about from the beginning - forgive me (i'm learning)!

[x]
|
[; pd-patchname.pd editmode $1(

[r pd-patchname.pd]
|
[route editmode]
|
[nbx]

-------------- next part --------------
A non-text attachment was scrubbed...
Name: editmode.pd
Type: application/octet-stream
Size: 896 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20070129/e1b8a4c0/attachment.obj>
-------------- next part --------------




More information about the Pd-list mailing list