From 5b0e2b734d0b1828972012764811cd0edc96d71b Mon Sep 17 00:00:00 2001 From: dvs1 Date: Mon, 4 Nov 2024 15:42:52 +1000 Subject: No need for Help here now that it can find it's README. --- aataaj.lua | 64 -------------------------------------------------------------- 1 file changed, 64 deletions(-) (limited to 'aataaj.lua') diff --git a/aataaj.lua b/aataaj.lua index 4acee75..d24ac35 100755 --- a/aataaj.lua +++ b/aataaj.lua @@ -15,70 +15,6 @@ ]] local _ = require 'PolygLua' - ---[[ TODO - replace this with code to search for and print the README.md file. - 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. -]] -Help = [[ -This is part of the AllAudioToALSAandJACK project, aataaj for short, -pronounced like "attach". - -The purpose is to scan for all ALSA / asound audio devices, and hook them -all up to ALSA and JACK. Then it starts up JACK, and hooks up any -joysticks it finds as MIDI controllers. So any ALSA application gets routed through -JACK. - -This is very rough for now, only just started writing it. The stop -command is particularly crude and violent, lots of pkill. - -Since it isn't a package yet, some setup is needed. - -The packages you need installed are - - luajit - jackd2 - jack-tools for jack-plumbing, but other patch persistance methods could be used. - a2jmidid - zita-ajbridge - aseqjoy - - qjackctl can be used as a visual patchbay, though I prefer catia from the KXStudio repos. - -You need to have the snd-aloop kernel module loaded. - -The aataaj.lua script should be run at boot time, install it by running - - -./aataaj.lua install - - -"aataaj JACK" should be called on user login. Probably don't need to run "aataaj STOP" on -user logout. - -It starts up JACK and friends, and creates JACK devices for all the -things "aataaj start" found. It creates the cloop and ploop devices that -catch everything ALSA does. Then creates MIDI devices for all your -joysticks. - - -Alas ~/.asoundrc doesn't understand ~ or $HOME, or even "try the current -directory" it seems. So you have to hard code the path. Make sure your -~/.asoundrc or /etc/asoundrc includes something like this - - - - - - -"aataaj STOP" closes down everything "aataaj JACK" started up. - - - -TODO - Leave it running, and hotplug ALSA / asound audio devices. - a2jmidid takes care of hotplugging MIDI devices. - Though I think I still need to deal with hotplugged joysticks. - -NOTE - Seems both ALSA and JACK are per user. So you need to run -"aataaj JACK" for each user. - -]] Version = '0.0 crap' local function goAway() -- cgit v1.1