aboutsummaryrefslogtreecommitdiffstats
path: root/aataaj.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xaataaj.lua64
1 files changed, 0 insertions, 64 deletions
diff --git a/aataaj.lua b/aataaj.lua
index 4acee75..d24ac35 100755
--- a/aataaj.lua
+++ b/aataaj.lua
@@ -15,70 +15,6 @@
15]] 15]]
16 16
17local _ = require 'PolygLua' 17local _ = require 'PolygLua'
18
19--[[ TODO - replace this with code to search for and print the README.md file.
20 Since we got the path to the script in arg[0], we can split that up and follow symlinks until we find where the files are. Maybe we can find README.md there.
21]]
22Help = [[
23This is part of the AllAudioToALSAandJACK project, aataaj for short,
24pronounced like "attach".
25
26The purpose is to scan for all ALSA / asound audio devices, and hook them
27all up to ALSA and JACK. Then it starts up JACK, and hooks up any
28joysticks it finds as MIDI controllers. So any ALSA application gets routed through
29JACK.
30
31This is very rough for now, only just started writing it. The stop
32command is particularly crude and violent, lots of pkill.
33
34Since it isn't a package yet, some setup is needed.
35
36The packages you need installed are -
37 luajit
38 jackd2
39 jack-tools for jack-plumbing, but other patch persistance methods could be used.
40 a2jmidid
41 zita-ajbridge
42 aseqjoy
43
44 qjackctl can be used as a visual patchbay, though I prefer catia from the KXStudio repos.
45
46You need to have the snd-aloop kernel module loaded.
47
48The aataaj.lua script should be run at boot time, install it by running -
49
50./aataaj.lua install
51
52
53"aataaj JACK" should be called on user login. Probably don't need to run "aataaj STOP" on
54user logout.
55
56It starts up JACK and friends, and creates JACK devices for all the
57things "aataaj start" found. It creates the cloop and ploop devices that
58catch everything ALSA does. Then creates MIDI devices for all your
59joysticks.
60
61
62Alas ~/.asoundrc doesn't understand ~ or $HOME, or even "try the current
63directory" it seems. So you have to hard code the path. Make sure your
64~/.asoundrc or /etc/asoundrc includes something like this -
65
66</var/lib/aataaj/asoundrc>
67
68
69
70"aataaj STOP" closes down everything "aataaj JACK" started up.
71
72
73
74TODO - Leave it running, and hotplug ALSA / asound audio devices.
75 a2jmidid takes care of hotplugging MIDI devices.
76 Though I think I still need to deal with hotplugged joysticks.
77
78NOTE - Seems both ALSA and JACK are per user. So you need to run
79"aataaj JACK" for each user.
80
81]]
82Version = '0.0 crap' 18Version = '0.0 crap'
83 19
84local function goAway() 20local function goAway()