aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-01 20:47:02 -0500
committerMarshall Lochbaum <mwlochbaum@gmail.com>2021-03-01 20:47:40 -0500
commite0d4b50898a5f8ef41985d58d1bdc6a92c0b1b62 (patch)
tree9924ce3acb10f5e41f1ae6f3892213a104bea82f
parent129f8fcbf676c235cc6ee8a06e0432e8b08938d0 (diff)
Fix handling of lists of multi-channel tracks in Concat
-rw-r--r--mix.bqn4
1 files changed, 2 insertions, 2 deletions
diff --git a/mix.bqn b/mix.bqn
index bfdcbf5..5f86513 100644
--- a/mix.bqn
+++ b/mix.bqn
@@ -9,8 +9,8 @@ I ⇐ <⟜0 ⌽∘⊢⍟⊣ ↕⊸÷∘|
# Add two signals 𝕨 and 𝕩 or a list of signals 𝕩,
# extending to the length of the longest signal.
Add ⇐ +´ ·(⌈´(¯1⊑≢)¨)⊸(↑⎉1¨) ⊢⊘(≍○<)
-# Like add, but concatenate instead.
-Concat ⇐ (∾ ↓¨˜⟜(<0⥊˜·⌈´=¨)) ⊘ (∾⎉1)
+# Like add, but concatenate instead (no extension).
+Concat ⇐ (∾ (0⥊˜·⌈´=¨)⊸(<∘⊣↓¨↓)) ⊘ (∾⎉1)
# Like ⌽⎉1, but the end of the signal does not wrap around.
Shift ⇐ <⟜0◶⟨↓⎉1 , (-⥊0˙)⊸(∾⎉1)⟩
# Repeat signal 𝕩 𝕨 times.