thanks. i don't think i fully understand your reply, but i'm also not sure whether this is what i need: i'm not looking for simpler and / or more flexible ways to control mode & cursor movement. i'm looking for a way to make a keyboard action 'conditional': hitting the spacebar should have no effect in edit mode, and perform certain things (to be hooked up per version of the 'motherpatch' that i base patches for specific pieces on ... at least that's the plan ;) ) when in play mode. so i'm looking for a way to get the information about status mode from pd, which i'll then attempt to have control a spigot or sth similar. i'd be happy if someone could point me to a solution--maybe simply a search term for the list archives? searching on mode status, edit mode and similar wasn't very satisfying. thanks, robbert
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
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. -Chuckk
On 1/29/07, robbert van hulzen robbert@performers.net wrote:
thanks. i don't think i fully understand your reply, but i'm also not sure whether this is what i need: i'm not looking for simpler and / or more flexible ways to control mode & cursor movement. i'm looking for a way to make a keyboard action 'conditional': hitting the spacebar should have no effect in edit mode, and perform certain things (to be hooked up per version of the 'motherpatch' that i base patches for specific pieces on ... at least that's the plan ;) ) when in play mode. so i'm looking for a way to get the information about status mode from pd, which i'll then attempt to have control a spigot or sth similar. i'd be happy if someone could point me to a solution--maybe simply a search term for the list archives? searching on mode status, edit mode and similar wasn't very satisfying. thanks, robbert
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
PD-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
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:
[r pd-subpatch_name] | [route editomode] | [print editmode_status_of_subpatch_name]
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.
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!)
mfg.asdr IOhannes
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]
On 1/29/07, Steffen stffn@dibidut.dk wrote:
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)!
Pretty much. I was thinking more like:
[key] | [route whatever] | [x] | [; pd-subpatch editmode $1 ; edit-enabled $1(
Or the toggle could connect directly to whatever you want to enable/disable. Also, for me, the .pd extension isn't needed on subpatches...
-Chuckk
[x] | [; pd-patchname.pd editmode $1(
[r pd-patchname.pd] | [route editmode] | [nbx]
On Mon, 2007-01-29 at 15:19 -0500, Chuckk Hubbard wrote:
Also, for me, the .pd extension isn't needed on subpatches...
just in order to clarify it, if still unclear:
when sending messages to canvasses, the adress (or selector or whatever it is called correctly) is pd-<canvasname>. that is why, when adressing main-patches or abstractions, there IS an extension '.pd' and when adressing subpatches, there ISN'T any extension.
roman
___________________________________________________________ Der frühe Vogel fängt den Wurm. Hier gelangen Sie zum neuen Yahoo! Mail: http://mail.yahoo.de
Hallo, robbert van hulzen hat gesagt: // robbert van hulzen wrote:
thanks. i don't think i fully understand your reply, but i'm also not sure whether this is what i need: i'm not looking for simpler and / or more flexible ways to control mode & cursor movement. i'm looking for a way to make a keyboard action 'conditional': hitting the spacebar should have no effect in edit mode, and perform certain things (to be hooked up per version of the 'motherpatch' that i base patches for specific pieces on ... at least that's the plan ;) ) when in play mode. so i'm looking for a way to get the information about status mode from pd, which i'll then attempt to have control a spigot or sth similar.
I don't think, this is possible, also because edit-mode is a per-canvas setting. You can have edit mode enabled in one subpatch, and disabled in another subpatch. (see attached)
A good trick I heard from Peter Plessas: You could use CAPS_LOCK to switch between a custom performance mode and an edit mode. Just connect a [spigot] to your [key] [keyname] or [gemkeyname] objects and switch it on and off with CAPS_LOCK. I don't use this because I don't have a CAPS_LOCK key (it's mapped to an additional CTRL-key here, which is more comfortable when pressing CTRL-E all the time.)
Frank Barknecht _ ______footils.org_ __goto10.org__