aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s+removethis@s-ol.nu>2025-03-23 12:00:52 +0000
committers-ol <s+removethis@s-ol.nu>2025-03-23 12:12:07 +0000
commit537340998fa4d28f868b77ce06005da7df89c46f (patch)
tree7d2544c7fedea25ceaecd63d160c38c766f1bdd9
parentlib: add love/font (diff)
downloadalive-537340998fa4d28f868b77ce06005da7df89c46f.tar.gz
alive-537340998fa4d28f868b77ce06005da7df89c46f.zip
lib: fix midi port labels
-rw-r--r--alv-lib/_midi.moon4
-rw-r--r--alv-lib/midi.moon2
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: