[PD] Check for batch and/or nogui mode from Patch

Roman Haefeli reduzent at gmail.com
Mon Jan 13 21:53:36 CET 2014

On Mon, 2014-01-13 at 20:26 +0100, Thomas Mayer wrote:
> Hi,
> is there a way to get information on whether Pd has been started with
> -batch or -nogui from inside a patch?

Though I consider Cyrille's approach the clean way for your specific
purpose, there is also a way to check for '-batch' without help from
outside. Measure [delay 1000] with [realtime] and if the result is
orders of magnitude smaller than '1000' (say 0.4), Pd has most likely
been started with '-batch' (assuming it didn't do much during the 1000ms
logical time). 


More information about the Pd-list mailing list