Re: [PD] Linux script to launch JACK and Pd at once

2011-01-18 Thread Pierre Massat
Yeah, obviously that'd be by far the easiest way. Stupid me.

2011/1/18 Ricardo Lameiro ricardolame...@gmail.com

 doesnt Ladish does that? (http://ladish.org/)

 What do you mean with turn audio on at startup? on Pd? you can send a
 loadbang to a message to turn the dsp on... but maybe that isnt what you
 want...

 2011/1/17 Pierre Massat pimas...@gmail.com

 Thank you Marco, but I don't need to run many apps. What does the exit
 do though?
  I'd be interested in a command that would turn the audio on at startup, i
 don't know whether this is possible.

 Just to satisfy my curiosity, how far can we go using scripts? Would it be
 possible to launch Pd and write a patch from scratch directly from a script?


 Thanks again for your help.

 Pierre

 2011/1/17 Marco Donnarumma de...@thesaddj.com

 Hi Pierre,
 also the -p argument is quite useful if you use multiple soundcard (like
 travel setup, studio, etc...), as it allows to choose which profiles you
 want jack to load.

 Using many applications for one project, I found useful the following
 script.

 First, I have one folder where to save all different software patches
 included in a project.
 I keep one unique name for several file formats, so I can use the script
 below to launch a studio setup at once indicating the project name as a
 variable $1.
 

 #! /bin/bash

 qjackctl -s -p FocusriteSaffire40 
 sleep 5

 ardour2 ../ardour/$1/$1.ardour 
 hydrogen $1.h2song 
 zynaddsubfx -l $1/$1.xmz 
 seq24 --file $1/$1.midi 

 exit






 On Mon, Jan 17, 2011 at 03:03:34PM +0100, Pierre Massat wrote:
  I used the one published by Joao Pais, that is:
 
  #!/bin/bash
 
  qjackctl -s  sleep 5  pdextended
 
 
  I'd be grateful if someone could tell me what -s means, by the way.

 $ man qjackctl
 [...]
  -s, --start
Start JACK audio server immediately
 [...]

 $ exit
 --
  Frank BarknechtDo You RjDj.me?  _ __
 footils.org



 --
 Marco Donnarumma aka TheSAD
 Independent New Media Arts Professional, Performer, Teacher
 Ongoing MSc by Research, University of Edinburgh, UK


 PORTFOLIO: http://marcodonnarumma.com
 LAB: http://www.thesaddj.com | http://cntrl.sourceforge.net |
 http://www.flxer.net
 EVENT: http://www.liveperformersmeeting.net



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




 --
 Fagote / Contrafagote
 Bassoon / Contra-bassoon
 http://myspace.com/ricardolameiro

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-18 Thread Marco Donnarumma
yep Ladish does that too, never tried though.

Just to satisfy my curiosity, how far can we go using scripts? Would it be
 possible to launch Pd and write a patch from scratch directly from a
 script?


Pierre, I reckon it would be easier to do from with a Pd patch.
Usually, scripts are useful to me when I have to handle multitask sessions
or anyway do something which is a little related to Pd.
But I'm not at all script expert.

M



On Mon, Jan 17, 2011 at 11:28 PM, Ricardo Lameiro
ricardolame...@gmail.comwrote:

 doesnt Ladish does that? (http://ladish.org/)

 What do you mean with turn audio on at startup? on Pd? you can send a
 loadbang to a message to turn the dsp on... but maybe that isnt what you
 want...

 2011/1/17 Pierre Massat pimas...@gmail.com

 Thank you Marco, but I don't need to run many apps. What does the exit
 do though?
  I'd be interested in a command that would turn the audio on at startup, i
 don't know whether this is possible.

 Just to satisfy my curiosity, how far can we go using scripts? Would it be
 possible to launch Pd and write a patch from scratch directly from a script?


 Thanks again for your help.

 Pierre

 2011/1/17 Marco Donnarumma de...@thesaddj.com

 Hi Pierre,
 also the -p argument is quite useful if you use multiple soundcard (like
 travel setup, studio, etc...), as it allows to choose which profiles you
 want jack to load.

 Using many applications for one project, I found useful the following
 script.

 First, I have one folder where to save all different software patches
 included in a project.
 I keep one unique name for several file formats, so I can use the script
 below to launch a studio setup at once indicating the project name as a
 variable $1.
 

 #! /bin/bash

 qjackctl -s -p FocusriteSaffire40 
 sleep 5

 ardour2 ../ardour/$1/$1.ardour 
 hydrogen $1.h2song 
 zynaddsubfx -l $1/$1.xmz 
 seq24 --file $1/$1.midi 

 exit






 On Mon, Jan 17, 2011 at 03:03:34PM +0100, Pierre Massat wrote:
  I used the one published by Joao Pais, that is:
 
  #!/bin/bash
 
  qjackctl -s  sleep 5  pdextended
 
 
  I'd be grateful if someone could tell me what -s means, by the way.

 $ man qjackctl
 [...]
  -s, --start
Start JACK audio server immediately
 [...]

 $ exit
 --
  Frank BarknechtDo You RjDj.me?  _ __
 footils.org



 --
 Marco Donnarumma aka TheSAD
 Independent New Media Arts Professional, Performer, Teacher
 Ongoing MSc by Research, University of Edinburgh, UK


 PORTFOLIO: http://marcodonnarumma.com
 LAB: http://www.thesaddj.com | http://cntrl.sourceforge.net |
 http://www.flxer.net
 EVENT: http://www.liveperformersmeeting.net



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




 --
 Fagote / Contrafagote
 Bassoon / Contra-bassoon
 http://myspace.com/ricardolameiro




-- 
Marco Donnarumma aka TheSAD
Independent New Media Arts Professional, Performer, Teacher
Ongoing MSc by Research, University of Edinburgh, UK


PORTFOLIO: http://marcodonnarumma.com
LAB: http://www.thesaddj.com | http://cntrl.sourceforge.net |
http://www.flxer.net
EVENT: http://www.liveperformersmeeting.net
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-17 Thread Pierre Massat
Thank you all for your help. I made a simple script than i launch via a
GNOME (or whatever, i'm in ubuntu) launcher and it works just fine. That's
the kind of very simple tricks that make life easier. That made my day.

@IOhannes : yes, i know that there should be a way of using HID without
being root, i need to take some time to figure it out. What's pd-ot?
Off-topic?

Pierre

2011/1/8 IOhannes m zmölnig zmoel...@iem.at

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 01/07/2011 08:49 PM, Pierre Massat wrote:
  Is there a way i can write a script that would start Jack and Pd in the
  proper order by clicking on a single file?

 Pd=0.43 should automatically start jack if needed.
 afair, the relevant code is also in PdX


  And is there a way i can start both as root? (I need to use HID) I'm

 why do you need to be root to use HID?
 i suggest reading the documentation on unix groups and udev.
 btw, this is a recurring topic on this list, so you might have luck
 using the mail-archives.

  assuming this would be quite a big breach though.

 security wise: yes.
 script wise, it would be rather simple.


  And now, totally off topic, are we allowed to start conversations about
  topics that aren't in any way related to Pd at all? You 're about the
 only
  group of  highly computer-literate people that i know, and there 's
 always a
  question or two that i'd like to ask about the directions the digital
 world
  is aiming at.

 well, there is the pd-ot list, which is meant for this kind of talk.
 otoh, there are not so many pd-ot subscribers as there are pd-list
 subscribers.

 however, you should follow the netiquette and not mix unrelated
 questions ;-)


 fgmasdr
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk0oeJQACgkQkX2Xpv6ydvTbUwCfaIdS59VaFprxO+RHvl2YIkYx
 WrMAoIDoLjF5ThwPN3kxojx5tqC5rv1p
 =y0H4
 -END PGP SIGNATURE-

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-17 Thread IOhannes m zmoelnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 2011-01-17 09:19, Pierre Massat wrote:

 @IOhannes : yes, i know that there should be a way of using HID without
 being root, i need to take some time to figure it out. 

it's a good investment, and you should do it.


 What's pd-ot?
 Off-topic?

yes. according to http://lists.puredata.info/listinfo, it is off topic
discussions for the pd-community

fgamsdr
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk00ArIACgkQkX2Xpv6ydvTCWACgteCHeqUFCdZ8W31ntAReGkPZ
J54AniusOAiHW0zk32qRiD7IUwHi3YOM
=uF4l
-END PGP SIGNATURE-



smime.p7s
Description: S/MIME Cryptographic Signature
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-17 Thread Jaime Oliver
Hi Pierre,

would it be possible to see your script?

J

2011/1/17 Pierre Massat pimas...@gmail.com

 Thank you all for your help. I made a simple script than i launch via a
 GNOME (or whatever, i'm in ubuntu) launcher and it works just fine. That's
 the kind of very simple tricks that make life easier. That made my day.

 @IOhannes : yes, i know that there should be a way of using HID without
 being root, i need to take some time to figure it out. What's pd-ot?
 Off-topic?

 Pierre

 2011/1/8 IOhannes m zmölnig zmoel...@iem.at

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 01/07/2011 08:49 PM, Pierre Massat wrote:
  Is there a way i can write a script that would start Jack and Pd in the
  proper order by clicking on a single file?

 Pd=0.43 should automatically start jack if needed.
 afair, the relevant code is also in PdX


  And is there a way i can start both as root? (I need to use HID) I'm

 why do you need to be root to use HID?
 i suggest reading the documentation on unix groups and udev.
 btw, this is a recurring topic on this list, so you might have luck
 using the mail-archives.

  assuming this would be quite a big breach though.

 security wise: yes.
 script wise, it would be rather simple.


  And now, totally off topic, are we allowed to start conversations about
  topics that aren't in any way related to Pd at all? You 're about the
 only
  group of  highly computer-literate people that i know, and there 's
 always a
  question or two that i'd like to ask about the directions the digital
 world
  is aiming at.

 well, there is the pd-ot list, which is meant for this kind of talk.
 otoh, there are not so many pd-ot subscribers as there are pd-list
 subscribers.

 however, you should follow the netiquette and not mix unrelated
 questions ;-)


 fgmasdr
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk0oeJQACgkQkX2Xpv6ydvTbUwCfaIdS59VaFprxO+RHvl2YIkYx
 WrMAoIDoLjF5ThwPN3kxojx5tqC5rv1p
 =y0H4
 -END PGP SIGNATURE-

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
Jaime E Oliver LR

www.jaimeoliver.pe

858 750 0924 (cel)
858 202 1522 (home)
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-17 Thread Pierre Massat
I used the one published by Joao Pais, that is:

#!/bin/bash

qjackctl -s  sleep 5  pdextended


I'd be grateful if someone could tell me what -s means, by the way.

Pierre

2011/1/17 Jaime Oliver jaime.oliv...@gmail.com

 Hi Pierre,

 would it be possible to see your script?

 J

 2011/1/17 Pierre Massat pimas...@gmail.com

 Thank you all for your help. I made a simple script than i launch via a
 GNOME (or whatever, i'm in ubuntu) launcher and it works just fine. That's
 the kind of very simple tricks that make life easier. That made my day.

 @IOhannes : yes, i know that there should be a way of using HID without
 being root, i need to take some time to figure it out. What's pd-ot?
 Off-topic?

 Pierre

 2011/1/8 IOhannes m zmölnig zmoel...@iem.at

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 On 01/07/2011 08:49 PM, Pierre Massat wrote:
  Is there a way i can write a script that would start Jack and Pd in
 the
  proper order by clicking on a single file?

 Pd=0.43 should automatically start jack if needed.
 afair, the relevant code is also in PdX


  And is there a way i can start both as root? (I need to use HID) I'm

 why do you need to be root to use HID?
 i suggest reading the documentation on unix groups and udev.
 btw, this is a recurring topic on this list, so you might have luck
 using the mail-archives.

  assuming this would be quite a big breach though.

 security wise: yes.
 script wise, it would be rather simple.


  And now, totally off topic, are we allowed to start conversations
 about
  topics that aren't in any way related to Pd at all? You 're about the
 only
  group of  highly computer-literate people that i know, and there 's
 always a
  question or two that i'd like to ask about the directions the digital
 world
  is aiming at.

 well, there is the pd-ot list, which is meant for this kind of talk.
 otoh, there are not so many pd-ot subscribers as there are pd-list
 subscribers.

 however, you should follow the netiquette and not mix unrelated
 questions ;-)


 fgmasdr
 IOhannes
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.10 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

 iEYEARECAAYFAk0oeJQACgkQkX2Xpv6ydvTbUwCfaIdS59VaFprxO+RHvl2YIkYx
 WrMAoIDoLjF5ThwPN3kxojx5tqC5rv1p
 =y0H4
 -END PGP SIGNATURE-

 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




 --
 Jaime E Oliver LR

 www.jaimeoliver.pe

 858 750 0924 (cel)
 858 202 1522 (home)

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-17 Thread Frank Barknecht
On Mon, Jan 17, 2011 at 03:03:34PM +0100, Pierre Massat wrote:
 I used the one published by Joao Pais, that is:
 
 #!/bin/bash
 
 qjackctl -s  sleep 5  pdextended
 
 
 I'd be grateful if someone could tell me what -s means, by the way.

$ man qjackctl
[...]
  -s, --start
Start JACK audio server immediately
[...]

$ exit
-- 
 Frank BarknechtDo You RjDj.me?  _ __footils.org__

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-17 Thread Pierre Massat
Thank you Marco, but I don't need to run many apps. What does the exit do
though?
 I'd be interested in a command that would turn the audio on at startup, i
don't know whether this is possible.

Just to satisfy my curiosity, how far can we go using scripts? Would it be
possible to launch Pd and write a patch from scratch directly from a script?


Thanks again for your help.

Pierre

2011/1/17 Marco Donnarumma de...@thesaddj.com

 Hi Pierre,
 also the -p argument is quite useful if you use multiple soundcard (like
 travel setup, studio, etc...), as it allows to choose which profiles you
 want jack to load.

 Using many applications for one project, I found useful the following
 script.

 First, I have one folder where to save all different software patches
 included in a project.
 I keep one unique name for several file formats, so I can use the script
 below to launch a studio setup at once indicating the project name as a
 variable $1.
 

 #! /bin/bash

 qjackctl -s -p FocusriteSaffire40 
 sleep 5

 ardour2 ../ardour/$1/$1.ardour 
 hydrogen $1.h2song 
 zynaddsubfx -l $1/$1.xmz 
 seq24 --file $1/$1.midi 

 exit






 On Mon, Jan 17, 2011 at 03:03:34PM +0100, Pierre Massat wrote:
  I used the one published by Joao Pais, that is:
 
  #!/bin/bash
 
  qjackctl -s  sleep 5  pdextended
 
 
  I'd be grateful if someone could tell me what -s means, by the way.

 $ man qjackctl
 [...]
  -s, --start
Start JACK audio server immediately
 [...]

 $ exit
 --
  Frank BarknechtDo You RjDj.me?  _ __footils.org



 --
 Marco Donnarumma aka TheSAD
 Independent New Media Arts Professional, Performer, Teacher
 Ongoing MSc by Research, University of Edinburgh, UK


 PORTFOLIO: http://marcodonnarumma.com
 LAB: http://www.thesaddj.com | http://cntrl.sourceforge.net |
 http://www.flxer.net
 EVENT: http://www.liveperformersmeeting.net

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-17 Thread Ricardo Lameiro
doesnt Ladish does that? (http://ladish.org/)

What do you mean with turn audio on at startup? on Pd? you can send a
loadbang to a message to turn the dsp on... but maybe that isnt what you
want...

2011/1/17 Pierre Massat pimas...@gmail.com

 Thank you Marco, but I don't need to run many apps. What does the exit do
 though?
  I'd be interested in a command that would turn the audio on at startup, i
 don't know whether this is possible.

 Just to satisfy my curiosity, how far can we go using scripts? Would it be
 possible to launch Pd and write a patch from scratch directly from a script?


 Thanks again for your help.

 Pierre

 2011/1/17 Marco Donnarumma de...@thesaddj.com

 Hi Pierre,
 also the -p argument is quite useful if you use multiple soundcard (like
 travel setup, studio, etc...), as it allows to choose which profiles you
 want jack to load.

 Using many applications for one project, I found useful the following
 script.

 First, I have one folder where to save all different software patches
 included in a project.
 I keep one unique name for several file formats, so I can use the script
 below to launch a studio setup at once indicating the project name as a
 variable $1.
 

 #! /bin/bash

 qjackctl -s -p FocusriteSaffire40 
 sleep 5

 ardour2 ../ardour/$1/$1.ardour 
 hydrogen $1.h2song 
 zynaddsubfx -l $1/$1.xmz 
 seq24 --file $1/$1.midi 

 exit






 On Mon, Jan 17, 2011 at 03:03:34PM +0100, Pierre Massat wrote:
  I used the one published by Joao Pais, that is:
 
  #!/bin/bash
 
  qjackctl -s  sleep 5  pdextended
 
 
  I'd be grateful if someone could tell me what -s means, by the way.

 $ man qjackctl
 [...]
  -s, --start
Start JACK audio server immediately
 [...]

 $ exit
 --
  Frank BarknechtDo You RjDj.me?  _ __footils.org



 --
 Marco Donnarumma aka TheSAD
 Independent New Media Arts Professional, Performer, Teacher
 Ongoing MSc by Research, University of Edinburgh, UK


 PORTFOLIO: http://marcodonnarumma.com
 LAB: http://www.thesaddj.com | http://cntrl.sourceforge.net |
 http://www.flxer.net
 EVENT: http://www.liveperformersmeeting.net



 ___
 Pd-list@iem.at mailing list
 UNSUBSCRIBE and account-management -
 http://lists.puredata.info/listinfo/pd-list




-- 
Fagote / Contrafagote
Bassoon / Contra-bassoon
http://myspace.com/ricardolameiro
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-08 Thread João Pais

I use the script

#!/bin/bash

qjackctl -s  sleep 5  pdextended


As I've noticed, it works either if jack is already on or not. Same goes  
to other applications that need jack, like ardour.
Ah, no root access there. Wouldn't it be better to search for another of  
getting permissions, instead of running programs as root?


João


Hi,

On 07.01.2011 20:49, Pierre Massat wrote:

don't know if it made it through the storm...

2011/1/3 Pierre Massat pimas...@gmail.com


Hi all!

Happy new year first of all!

Is there a way i can write a script that would start Jack and Pd in the
proper order by clicking on a single file?


I have made two simple scripts for that, one that starts jack, qjackctl
and programs, that are in a text file with each program in a seperate
line, and another script to stop all started programs. To use them for
puredata only, rewrite the while[$1]; do done portions to start only  
Pd.


The textfiles look like that:

pdextended -rt -jack -alsamidi -inchannels 2 -outchannels 8
ardour2


And is there a way i can start both as root? (I need to use HID) I'm
assuming this would be quite a big breach though.


To start programs with root provileges, use gksu or gksudo for X11  
programs.


cu Thomas



--
Friedenstr. 58
10249 Berlin (Deutschland)
Tel +49 30 42020091 | Mob +49 162 6843570
Studio +49 30 69509190
jmmmp...@googlemail.com | skype: jmmmpjmmmp

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-08 Thread IOhannes m zmölnig
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/07/2011 08:49 PM, Pierre Massat wrote:
 Is there a way i can write a script that would start Jack and Pd in the
 proper order by clicking on a single file?

Pd=0.43 should automatically start jack if needed.
afair, the relevant code is also in PdX


 And is there a way i can start both as root? (I need to use HID) I'm

why do you need to be root to use HID?
i suggest reading the documentation on unix groups and udev.
btw, this is a recurring topic on this list, so you might have luck
using the mail-archives.

 assuming this would be quite a big breach though.

security wise: yes.
script wise, it would be rather simple.


 And now, totally off topic, are we allowed to start conversations about
 topics that aren't in any way related to Pd at all? You 're about the only
 group of  highly computer-literate people that i know, and there 's always a
 question or two that i'd like to ask about the directions the digital world
 is aiming at.

well, there is the pd-ot list, which is meant for this kind of talk.
otoh, there are not so many pd-ot subscribers as there are pd-list
subscribers.

however, you should follow the netiquette and not mix unrelated
questions ;-)


fgmasdr
IOhannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk0oeJQACgkQkX2Xpv6ydvTbUwCfaIdS59VaFprxO+RHvl2YIkYx
WrMAoIDoLjF5ThwPN3kxojx5tqC5rv1p
=y0H4
-END PGP SIGNATURE-

___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Linux script to launch JACK and Pd at once

2011-01-07 Thread Thomas Mayer
Hi,

On 07.01.2011 20:49, Pierre Massat wrote:
 don't know if it made it through the storm...
 
 2011/1/3 Pierre Massat pimas...@gmail.com
 
 Hi all!

 Happy new year first of all!

 Is there a way i can write a script that would start Jack and Pd in the
 proper order by clicking on a single file?

I have made two simple scripts for that, one that starts jack, qjackctl
and programs, that are in a text file with each program in a seperate
line, and another script to stop all started programs. To use them for
puredata only, rewrite the while[$1]; do done portions to start only Pd.

The textfiles look like that:

pdextended -rt -jack -alsamidi -inchannels 2 -outchannels 8
ardour2

 And is there a way i can start both as root? (I need to use HID) I'm
 assuming this would be quite a big breach though.

To start programs with root provileges, use gksu or gksudo for X11 programs.

cu Thomas
-- 
[D]ie Kunst flieht, wenn ihr eure Thaten sofort mit dem historischen
Zeltdach überspannt. (Friedrich Nietzsche - Vom Nutzen und Nachtheil
der Historie für das Leben)
http://www.residuum.org/
#! /bin/bash
# mknoise v0.1
# starts jackd and qjackctl (if not already running) and programs from a
# text file, each program in new line including options

# takes text file(s) as argument: $ ./mknoise file1 [file2 ...]

if pgrep jackd
then true 
else /usr/bin/jackd -dalsa -r44100  /dev/null 21
fi

if pgrep qjackctl  
then true 
else /usr/bin/qjackctl  /dev/null 21
fi

while [ $1 ]; do
cut -d   -f 1 $1  .musicapplist 
while read; do
X=$REPLY
$X  /dev/null 21
done  $1
shift 
done
#! /bin/bash
# stopnoise v0.1
# stops programs, that have been invoked by mknoise
# including jackd and qjackstl

# run with $ ./stopnoise

while read ; do
X=$REPLY
killall $X
done .musicapplist

rm .musicapplist

killall qjackctl
killall jackd
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management - 
http://lists.puredata.info/listinfo/pd-list