[PD] Check for batch and/or nogui mode from Patch
Cyrille Henry
ch at chnry.net
Mon Jan 13 21:20:15 CET 2014
hello,
the most simple solution is to add a message at startup :
pd -batch -send testquit bang
[loadbang]
|
[message for object(
|
[object-to-test]
|
[t b a]
| |
| [stdout]
|
| [r testquit]
| |
| [1 <
| |
[spigot 0]
|
[; pd quit(
cheers
c
Le 13/01/2014 20:26, Thomas Mayer a écrit :
> Hi,
>
> is there a way to get information on whether Pd has been started with
> -batch or -nogui from inside a patch?
>
> I am trying to make unit tests by starting a Pd instance in batch mode
> from Python, and comparing the output from [stdout] to the desired
> result, and I want Pd to close itself via [; pd quit(. When Pd is not
> running in batch mode, then I want to stop this message from being sent
> with a [spigot], something like:
>
> [loadbang]
> |
> [message for object(
> |
> [object-to-test]
> |
> [t b a]
> | |
> | [stdout]
> |
> | [test-for-batch-mode]
> | |
> [spigot]
> |
> [; pd quit(
>
> Thanks,
> Thomas
>
More information about the Pd-list
mailing list