Hello I try to run two different pd instances with different startup options on Mac Os 10.7.
Is there a way to setup the audio / midi devices and so on from within a patch ? something like the declare object ? Or run from terminal with two different command lines (but i will have then to script the terminal application, which i never done !) Or rename one of the pd applications to fool the MAC ? Thanks Jm
There are a few ways to do this... here's houw you could make a copy of Pd and have it use different settings:
Copy the app (say, to Pd2.app)
edit the file, Pd2.app/Contents/Resources/bin/pd
(you can use "open -e" from a command line to do this). It's a binary file so it will look ugly.
Go in and replace the four instances of teh string org.puredata.pd with another string of the same length such as org.puredata.zz
Now you can open the two versions of Pd and each will keep its own set of preferences.
Now here's a question - wouldn't it be nice to be able to have Pd automatically do this by (for instance) looking at the app's name and using that to figure out what preferences to load? On the other hand, maybe in other circumstances you woudn't want that behavior... hmm.
cheers Miller
On Tue, Sep 11, 2012 at 10:45:19PM +0200, Jean-Marie Adrien wrote:
Hello I try to run two different pd instances with different startup options on Mac Os 10.7.
Is there a way to setup the audio / midi devices and so on from within a patch ? something like the declare object ? Or run from terminal with two different command lines (but i will have then to script the terminal application, which i never done !) Or rename one of the pd applications to fool the MAC ? Thanks Jm
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
great ! thanks. Le 11 sept. 2012 à 23:08, Miller Puckette a écrit :
There are a few ways to do this... here's houw you could make a copy of Pd and have it use different settings:
Copy the app (say, to Pd2.app)
edit the file, Pd2.app/Contents/Resources/bin/pd
(you can use "open -e" from a command line to do this). It's a binary file so it will look ugly.
Go in and replace the four instances of teh string org.puredata.pd with another string of the same length such as org.puredata.zz
Now you can open the two versions of Pd and each will keep its own set of preferences.
Now here's a question - wouldn't it be nice to be able to have Pd automatically do this by (for instance) looking at the app's name and using that to figure out what preferences to load? On the other hand, maybe in other circumstances you woudn't want that behavior... hmm.
cheers Miller
On Tue, Sep 11, 2012 at 10:45:19PM +0200, Jean-Marie Adrien wrote:
Hello I try to run two different pd instances with different startup options on Mac Os 10.7.
Is there a way to setup the audio / midi devices and so on from within a patch ? something like the declare object ? Or run from terminal with two different command lines (but i will have then to script the terminal application, which i never done !) Or rename one of the pd applications to fool the MAC ? Thanks Jm
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hi,
Miller Puckette wrote:
Now here's a question - wouldn't it be nice to be able to have Pd automatically do this by (for instance) looking at the app's name and using that to figure out what preferences to load? On the other hand, maybe in other circumstances you woudn't want that behavior... hmm.
What about a -preffile command-line option ?
Le 12/09/2012 10:25, Charles Goyard a écrit :
Hi,
Miller Puckette wrote:
Now here's a question - wouldn't it be nice to be able to have Pd automatically do this by (for instance) looking at the app's name and using that to figure out what preferences to load? On the other hand, maybe in other circumstances you woudn't want that behavior... hmm.
What about a -preffile command-line option ?
There are already many possibilities with some shell scripting (even on a Mac) :
echo "Starting the right Pd v-model"
/Applications/Pd-extended.app/Contents/Resources/bin/pd -nomidi -noaudio -open v-right-model.pd -send "preset-file ../video-presets/right.coll;" &
echo "Starting the left Pd v-model";
/Applications/Pd-extended.app/Contents/Resources/bin/pd -stderr -nomidi -noaudio -open v-left-model.pd -send "preset-file ../video-presets/left.coll;" &
But i agree a specific -preffile option would be great.
OH
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hello,
There is some other possibilities on osx, To use two different preferences files, make sure you have no preference file saved locally (in ~/Library/Preferences/org.puredata.pdextended.plist) In this case Pd-extended search for its default preference file inside itself in: /Applications/Pd-extended.app/Contents/org.puredata.pdextended.default.plist So if you duplicate the application Pd-extended.app for example in Pd-extended-audio.app, you'll have two different preference files.
Otherwise, you can save in a patch informations regarding the audio/midi configuration, see for example [get-audio-dialog] from pdx, then you can launch two instance of pd (with command line) with two different patches and settings. best, n
Le 12/09/12 10:39, Olivier Heinry a écrit :
Le 12/09/2012 10:25, Charles Goyard a écrit :
Hi,
Miller Puckette wrote:
Now here's a question - wouldn't it be nice to be able to have Pd automatically do this by (for instance) looking at the app's name and using that to figure out what preferences to load? On the other hand, maybe in other circumstances you woudn't want that behavior... hmm.
What about a -preffile command-line option ?
There are already many possibilities with some shell scripting (even on a Mac) :
echo "Starting the right Pd v-model"
/Applications/Pd-extended.app/Contents/Resources/bin/pd -nomidi -noaudio -open v-right-model.pd -send "preset-file ../video-presets/right.coll;" &
echo "Starting the left Pd v-model";
/Applications/Pd-extended.app/Contents/Resources/bin/pd -stderr -nomidi -noaudio -open v-left-model.pd -send "preset-file ../video-presets/left.coll;" &
But i agree a specific -preffile option would be great.
OH
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You can also do the "app from a patch" under the File menu, which will create a custom Pd-extended.app for you, with custom prefs in the plist file. Then edit the included plist file, and you have a self-contained custom Pd.app with your patch.
.hc
On 09/12/2012 06:07 AM, Nicolas Montgermont wrote:
Hello,
There is some other possibilities on osx, To use two different preferences files, make sure you have no preference file saved locally (in ~/Library/Preferences/org.puredata.pdextended.plist) In this case Pd-extended search for its default preference file inside itself in: /Applications/Pd-extended.app/Contents/org.puredata.pdextended.default.plist
So if you duplicate the application Pd-extended.app for example in Pd-extended-audio.app, you'll have two different preference files.
Otherwise, you can save in a patch informations regarding the audio/midi configuration, see for example [get-audio-dialog] from pdx, then you can launch two instance of pd (with command line) with two different patches and settings. best, n
Le 12/09/12 10:39, Olivier Heinry a écrit :
Le 12/09/2012 10:25, Charles Goyard a écrit :
Hi,
Miller Puckette wrote:
Now here's a question - wouldn't it be nice to be able to have Pd automatically do this by (for instance) looking at the app's name and using that to figure out what preferences to load? On the other hand, maybe in other circumstances you woudn't want that behavior... hmm.
What about a -preffile command-line option ?
There are already many possibilities with some shell scripting (even on a Mac) :
echo "Starting the right Pd v-model"
/Applications/Pd-extended.app/Contents/Resources/bin/pd -nomidi -noaudio -open v-right-model.pd -send "preset-file ../video-presets/right.coll;" &
echo "Starting the left Pd v-model";
/Applications/Pd-extended.app/Contents/Resources/bin/pd -stderr -nomidi -noaudio -open v-left-model.pd -send "preset-file ../video-presets/left.coll;" &
But i agree a specific -preffile option would be great.
OH
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list