simple session management

Programming applications for making music on Linux.

Moderators: MattKingUSA, khz

Post Reply
peter
Established Member
Posts: 13
Joined: Tue Jul 21, 2015 1:48 pm

simple session management

Post by peter »

I've made a python session manager for myself.
It is very basic and maybe useful for starters.

It uses the "jack_snapshot" program and the "aconnect" utility.
You can save and load different sessions by name (jack and alsa connections and programs to start).
You can not (for now) save the programs that are running in a session.
You need to put them manually in the apps.txt ( any program you want to start ).

I do not know if it works on all os'es and if it will restore all connections (depends on utility's).
You need python 2.7 ( 3.* will not work, but that can be fixed.)

If anybody is interested, let me know.
( I do not know how to make the program available here, so could someone tell me how to do this ?)
Trying is what I do best.
nils
Established Member
Posts: 538
Joined: Wed Oct 22, 2008 9:05 pm
Has thanked: 35 times
Been thanked: 94 times
Contact:

Re: simple session management

Post by nils »

Hello,

Session Management is an important part of the LA system. You can't work properly without it.
You could just upload the code somewhere public:
* https://github.com/ is currently en vogue, kind of like slashdot was a few years ago. It is intended to "catch" as many accounts as possible (like Facebook etc.) so the entry barrier should be very low.
* http://repo.or.cz/ is kind of similar. Its service-software itself is Open Source so this is the morally better choice.
* or just create a tar.gz or zip and upload it somewhere on your own website.

That said: Many people are not aware that the hard part in session management is not the to write a program that starts, stops (and monitors) clients but that the clients behave differently and correctly when under session management. The only session manager that enforces that by a very strict set of rules is Non Session Management. http://non.tuxfamily.org/wiki/Non%20Session%20Manager
You should try that out (and use it, in my opinion)
peter
Established Member
Posts: 13
Joined: Tue Jul 21, 2015 1:48 pm

Re: simple session management

Post by peter »

Yes Nils, NON sessionmanager is a very good program.
I think that NON is a must for a professional studio.
But I'am a creative person and can not handle rigid control very well 8)

As a part-time musician-ist I need a flexibel, simpel system. I want to be in control.
So I looked at different (script based) sessionmanagers and of course in my view they all lacked something :)
Hence this simple python thing.

So we do not have a download (/upload) section here.
I will try to put it on a free website, I will post the url later. ( I want that to be simple to. )
I think not everybody is keen on downloading a zip or tar from some unknown site.
But hey, you can trust me.
Trying is what I do best.
nils
Established Member
Posts: 538
Joined: Wed Oct 22, 2008 9:05 pm
Has thanked: 35 times
Been thanked: 94 times
Contact:

Re: simple session management

Post by nils »

if it is just a single python file just post it here as with the Code tag :)
peter
Established Member
Posts: 13
Joined: Tue Jul 21, 2015 1:48 pm

Re: simple session management

Post by peter »

Here is the link to the zip file.
It contains (hopefully) all you need.

EDIT 23 July 2015:
A new download, changed some things like adding a template.
More suggestions/idea's are welcome
https://drive.google.com/file/d/0B39t6C ... sp=sharing

I would like to know if it works for you or not (and why)
And if people are interested I could make a GUI version.
Last edited by peter on Thu Jul 23, 2015 8:02 am, edited 2 times in total.
Trying is what I do best.
nils
Established Member
Posts: 538
Joined: Wed Oct 22, 2008 9:05 pm
Has thanked: 35 times
Been thanked: 94 times
Contact:

Re: simple session management

Post by nils »

You included the .pyc file instead of the python file by accident.
Post Reply