From 537340998fa4d28f868b77ce06005da7df89c46f Mon Sep 17 00:00:00 2001 From: s-ol Date: Sun, 23 Mar 2025 13:00:52 +0100 Subject: lib: fix midi port labels --- alv-lib/_midi.moon | 4 ++-- alv-lib/midi.moon | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/alv-lib/_midi.moon b/alv-lib/_midi.moon index 82b1b4f..6693966 100644 --- a/alv-lib/_midi.moon +++ b/alv-lib/_midi.moon @@ -47,7 +47,7 @@ find_port = (Klass, label, connect) -> -- then pattern matches for i, name in ipairs names if name\match connect - port\openport i + port\openport i, label return port, name port\openvirtualport label @@ -118,7 +118,7 @@ port_names = Constant.meta summary: "Get all MIDI port names." examples: { '(midi/port-names direction)' } description: ' -`direction` can be either `"in"` or `"out". +`direction` can be either `"in"` or `"out"`. Returns an array of strings.' value: class extends Op diff --git a/alv-lib/midi.moon b/alv-lib/midi.moon index 5bd51b7..2a2418c 100644 --- a/alv-lib/midi.moon +++ b/alv-lib/midi.moon @@ -171,7 +171,7 @@ cc = Constant.meta send_notes = Constant.meta meta: name: 'send-notes' - summary: "`send MIDI note events." + summary: "send MIDI note events." examples: { '(midi/send-notes [port] [chan] note-events)' } description: " `note-events` is a !-stream of structs with the following keys: -- cgit v1.2.3