[PD-dev] How to customize Pd.app for macOS?

Roman Haefeli reduzent at gmail.com
Thu Dec 14 10:57:42 CET 2017


I currently see no need to be able to change these settings from within
the patch, so I am happy to be able to set up the environment _before_
launching the path. But anyway, good to know how this works.

Roman

On Mit, 2017-12-13 at 22:28 +0100, Ingo Stock wrote:
> You can set the audio settings from within a patch by sending a
> message
> to pd.
> 
> The message would look like this:
> 
> [; pd audio-dialog 0 0 0 0 1 0 0 0 0 0 0 0 2 0 0 0 44100 25 -1 128]
> 
> The values are:
> 
> [; pd audio-dialog indev1 indev2 indev3 indev4 inchan1 inchan2
> inchan3
> inchan4 outdev1 outdev2 outdev3 outdev4 outchan1 outchan2 outchan3
> outchan4 samplerate delay callback blocksize(
> 
> The arguments correspond to the fields of the audio setting window
> (in
> different order).
> 
> Maybe it is necessary to send the following message afterwards:
> 
> [; pd save-preferences(
> 
> At least it seems to be necessary to somehow close the invisible
> window,
> or pd gives an error "too many windows" after too many settings.
> 
> You can open the dialog by sending:
> 
> [; pd audio-properties 1(
> 
> Sorry i don't have the knowledge on how to do this correctly, i just
> figured that out from looking at the source code
> (tcl/dialog_audio.tcl)
> and this one post i found about it. [1]
> 
> best, ingo
> 
> 
> [1]
> http://forum.critterandguitari.com/t/audio-settings-set-pure-datas-de
> lay-msec-for-one-single-patch/1337/8
> 
> 
> 
> On 13/12/17 12:46, Roman Haefeli wrote:
> > 
> > Hey all
> > 
> > I'd like to know whether it is possible to modify Pd.app in a way
> > that
> > it starts an included patch automatically with included preference
> > settings? In other words, I'd like to make a stand-alone app from a
> > patch.
> > 
> > From what I was able to figure out, double-clicking the Pd.app
> > starts
> > Contents/MacOS/Pd which in turn seems to launch
> > Contents/Resources/bin/pd. I tried to replace the Pd executable by
> > a
> > shell script that would start Contents/Resources/bin/pd with the
> > desired flags, but that seemed to go into an endless loop of
> > starting
> > pd processes.
> > 
> > Any hints appreciated. 
> > 
> > Roman
> > 
> > 
> > 
> > 
> > _______________________________________________
> > Pd-dev mailing list
> > Pd-dev at lists.iem.at
> > https://lists.puredata.info/listinfo/pd-dev
> > 
> _______________________________________________
> Pd-dev mailing list
> Pd-dev at lists.iem.at
> https://lists.puredata.info/listinfo/pd-dev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: This is a digitally signed message part
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20171214/35f399a9/attachment.sig>


More information about the Pd-dev mailing list