{"id":20704335,"url":"https://github.com/osch/lua-ljack","last_synced_at":"2025-03-11T04:45:31.002Z","repository":{"id":66985036,"uuid":"462203091","full_name":"osch/lua-ljack","owner":"osch","description":"Lua binding for the JACK Audio Connection Kit","archived":false,"fork":false,"pushed_at":"2023-11-10T01:02:35.000Z","size":151,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-17T20:13:18.476Z","etag":null,"topics":["jack","jackaudio","linux-audio","lua","lua-audio","lua-binding","lua-capi","lua-library","lua-midi","midi"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/osch.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-02-22T08:22:42.000Z","updated_at":"2024-02-04T10:33:36.000Z","dependencies_parsed_at":"2023-05-30T15:15:58.095Z","dependency_job_id":null,"html_url":"https://github.com/osch/lua-ljack","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osch%2Flua-ljack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osch%2Flua-ljack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osch%2Flua-ljack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/osch%2Flua-ljack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/osch","download_url":"https://codeload.github.com/osch/lua-ljack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242973963,"owners_count":20215245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["jack","jackaudio","linux-audio","lua","lua-audio","lua-binding","lua-capi","lua-library","lua-midi","midi"],"created_at":"2024-11-17T01:11:58.377Z","updated_at":"2025-03-11T04:45:30.970Z","avatar_url":"https://github.com/osch.png","language":"C","readme":"# LJACK \n[![Licence](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE)\n[![build status](https://github.com/osch/lua-ljack/workflows/build/badge.svg)](https://github.com/osch/lua-ljack/actions/workflows/build.yml)\n[![Install](https://img.shields.io/badge/Install-LuaRocks-brightgreen.svg)](https://luarocks.org/modules/osch/ljack)\n\n\u003c!-- ---------------------------------------------------------------------------------------- --\u003e\n\nLua binding for the [JACK Audio Connection Kit](https://jackaudio.org/).\n\nThis binding enables [Lua] scripting code to registrate ports and to manage port\nconnections and Lua audio processor objects for the JACK Audio Connection Kit. \nRealtime audio processing of [Lua processor objects](./doc/README.md#processor-objects) \nhas to be implemented in native C code. \n\n[Lua]:          https://www.lua.org\n\n\u003c!-- ---------------------------------------------------------------------------------------- --\u003e\n\n#### Further reading:\n   * [Documentation](./doc/README.md#ljack-documentation)\n   * [Examples](./examples/README.md#ljack-examples)\n\n\u003c!-- ---------------------------------------------------------------------------------------- --\u003e\n\n## First Example\n\n* This example lists all JACK ports and connects the first MIDI OUT port with\n  the first MIDI IN port if these are available:\n  \n    ```lua\n    local ljack = require(\"ljack\")\n    \n    local client = ljack.client_open(\"example01.lua\")\n    \n    local function listPorts(type, direction)\n        local list = client:get_ports(\".*\", type, direction)\n        print(\"Ports\", type, direction)\n        for _, p in ipairs(list) do\n            print(\"     \", p)\n        end\n        print()\n        return list\n    end\n    \n    local audioOutList = listPorts(\"AUDIO\", \"OUT\")\n    local audioInList  = listPorts(\"AUDIO\", \"IN\")\n    \n    local midiOutList = listPorts(\"MIDI\", \"OUT\")\n    local midiInList  = listPorts(\"MIDI\", \"IN\")\n    \n    if #midiInList \u003e 0 and #midiOutList \u003e 0 then\n        local p1, p2 = midiOutList[1], midiInList[1]\n        print(string.format(\"Connecting %q\\n\"..\n                            \"      with %q...\", p1, p2))\n        client:connect(p1, p2)\n    end\n    ```\n\n\u003c!-- ---------------------------------------------------------------------------------------- --\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosch%2Flua-ljack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fosch%2Flua-ljack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fosch%2Flua-ljack/lists"}