I have an audio patch in progress. In short, it takes an input, splits the signal in several paths, then all paths meet again at [dac~]... In brief, it is a guitar effector.
While this patch works fine when launching Pd from shell with GUI, such as $ pd filename.pd
Not all signal paths seem to work when launching with the nogui option. $ pd -nogui filename.pd
I get some sound out of it, so it appears only part of all signal paths are blocked.
The patch is of reasonable size and difficult to trace, therefore prior to dissecting it I would like to ask... Are there any specific objects or logics known to behave differently under no-gui ?
Unfortunately, there seem to be many that respond different to -nogui.
I recall posting on this a few years back. One previously suggested
workaround is to put a [netsend] and [netreceive] pair in your patch.
Check the archives for more details.
D.
Quoting PSPunch shima@pspunch.com:
I have an audio patch in progress. In short, it takes an input, splits the signal in several paths, then all paths meet again at [dac~]... In brief, it is a guitar effector.
While this patch works fine when launching Pd from shell with GUI, such as $ pd filename.pd
Not all signal paths seem to work when launching with the nogui option. $ pd -nogui filename.pd
I get some sound out of it, so it appears only part of all signal paths are blocked.
The patch is of reasonable size and difficult to trace, therefore prior to dissecting it I would like to ask... Are there any specific objects or logics known to behave differently under no-gui ?
The way I remember it, anything to do with tables or other allocated memory can break with -nogui. [tabwrite~], [tabread~], [delwrite~], [delread~], [vd~] etc etc....
D.
Quoting PSPunch shima@pspunch.com:
Are there any specific objects or logics known to behave differently under no-gui ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Derek Holzer wrote:
The way I remember it, anything to do with tables or other allocated memory can break with -nogui. [tabwrite~], [tabread~], [delwrite~], [delread~], [vd~] etc etc....
now this is something completely new to me and it does sound like voodoo. all of the object mentioned above have nothing to do with gui and should therefore not be affected by anything related to nogui.
there are known problems initializing the sound system in nogui-mode.
fgmasd IOhannes
Well, I do recall having some very not-working comb filters in a -nogui patch, where other things did work. This was some years ago. Would a [block] object suffer from this initialization problem? That might explain it. I have no idea where those patches went to, they were from 2005 or something, so I have no way to verify this now...
D.
On 3/19/10 3:57 PM, IOhannes m zmölnig wrote:
Derek Holzer wrote:
The way I remember it, anything to do with tables or other allocated memory can break with -nogui. [tabwrite~], [tabread~], [delwrite~], [delread~], [vd~] etc etc....
now this is something completely new to me and it does sound like voodoo. all of the object mentioned above have nothing to do with gui and should therefore not be affected by anything related to nogui.
there are known problems initializing the sound system in nogui-mode.
Hi Derek,
I added on your name to search keys in the archive, and came across your old posts.
Others facing the same problem, but no specific reasoning nor solution...
I will dig in to my patch and hopefully will have follow ups soon...
Based on this conversation, and in a completely unscientific way, I would say maybe [block~] or [switch~] might cause problems, and places where those are might need a [netreceive] to initialize audio. But I am guessing. This seems like a very deeply embedded problem in Pd, and was enough for me to disregard -nogui as completely broken. YMMV.
D.
On 3/20/10 12:09 AM, PSPunch wrote:
Hi Derek,
I added on your name to search keys in the archive, and came across your old posts.
Others facing the same problem, but no specific reasoning nor solution...
I will dig in to my patch and hopefully will have follow ups soon...
Hi Derek,
At the moment, I have neither [block~] nor [switch]~. I'm already looking forward to inventing my own voodoo to share.
[send~]? [receive~]?
All of these things have nothing to do with the GUI. Definitely voodoo!
Graphical bangs? Number boxes? Sliders or other GUI elements? Maybe if these were in-line inside your patches they would stop working as well....
D.
On 3/20/10 12:16 PM, PSPunch wrote:
Hi Derek,
At the moment, I have neither [block~] nor [switch]~. I'm already looking forward to inventing my own voodoo to share.