We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c67a8f8 + fa7765f commit c807b18Copy full SHA for c807b18
src/dsp/wav.png
-10.5 KB
src/dsp/wav.svg
src/dsp/wav_files.clj
@@ -6,7 +6,7 @@
6
:type :post
7
:date "2025-11-13"
8
:tags [:dsp :math :music]
9
- :image "wav.png"}}}
+ :image "wav.svg"}}}
10
(ns dsp.wav-files
11
(:require [scicloj.kindly.v4.kind :as kind]
12
[clojure.java.io :as io]
@@ -250,8 +250,7 @@ wav-format
250
;; into the correct datatype for each frame manually. For now we just
251
;; put the data for 16-bit mono WAV files into a short-array.
252
(defn audio-data [^InputStream is]
253
- (let [{:keys
254
- [frame-length]} (audio-format is)
+ (let [{:keys [frame-length]} (audio-format is)
255
format (-> (AudioSystem/getAudioFileFormat is)
256
AudioFileFormat/.getFormat)
257
^bytes
0 commit comments