The first thing I do when opening my patches is to zoom in using Ctrl+.Is there a way to trigger Ctrl+ from loadbang?
-
Is there a way to trigger Ctrl+ from loadbang?
-
edit preferences, misc preferences, zoom new windows.
-
@benalb That works if I open the patch on the machine where the option was set, but not when the patch is opened on another machine. I'm working on patches that will be distributed to other people, some of whom have very little experience with Pd. Is there a way to trigger zoom from within the patch, so that people on other machines don't have to change their options?
And a related question, is there a way to turn on the DSP from within a patch?
-
to turn on the DSP, loadbang a message with "; pd dsp 1"
-
@jamcultur you need to send the [zoom 2( message to the canvas, you can do this either with [pdcontrol] or [namecanvas].
-
@oid Where are the commands that can be sent to [pdcontrol] documented?
-
@jamcultur I just use [iemguts/canvasreceive] connected to a [print], run the command you want and see what comes up. I don't think there is a complete list anywhere, just an outdated patch with many but not all messages but has a few commands which can be tricky to discover on your own.
pd-msg.zip
A [print] connected to [r pd] can uncover global messages like turning dsp on/off and the help files have a few documented like the dsp message. Failing those, searching here/mailing list or pd's tcl files can sometimes be useful but generally at that point it is kind of hacky and you would be best to actually write up a simple tcl plugin.Edit: that should be [iemguts/receivecanvas], always get that backwards for some reason.
-
@oid Thank you.