From 2c83a39a88241571d7945a9ec4929fee95b570fc Mon Sep 17 00:00:00 2001 From: Marshall Lochbaum Date: Sat, 13 Mar 2021 10:39:32 -0500 Subject: =?UTF-8?q?Replace=20=E2=8D=8E=20and=20=E2=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wav.bqn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wav.bqn b/wav.bqn index b35362f..cee527a 100644 --- a/wav.bqn +++ b/wav.bqn @@ -92,7 +92,7 @@ _audioConvert ← { "Float formats other than 32-bit are not supported" ! 4=l 8‿23‿127 _float ·4 _int -⟜@ ; 𝕩: - 0 !˜ "Unsupported audio format: "∾⍕audioFormat + 0 !˜ "Unsupported audio format: " ∾ 2•Pretty audioFormat }audioFormat } @@ -121,7 +121,7 @@ Decode ← { # Assign field values to field names. hdr ↩ ('i'=wh.typ) ToInt∘⊢⍟⊣¨ wh.len /⊸⊔ hdr - ⍎(1↓∾"‿"⊸∾¨wh.name)∾"←hdr" + •Eval(1↓∾"‿"⊸∾¨wh.name)∾"←hdr" # Handle extensible format "subchunk1Size is invalid" ! 0‿2‿24 ∊˜ se←subchunk1Size-16 If (se>0)‿{𝕤 -- cgit v1.2.3