Skip to content

Commit

Permalink
1.1.3 - HOTFIX: doto-for implementation,
Browse files Browse the repository at this point in the history
pre condition for ->ChunkedBufferWriter,
small refactor of main.clj
  • Loading branch information
rybandrei2014 committed Sep 16, 2020
1 parent 8532377 commit 0c863f4
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,9 @@
## 1.1.2
### Changed
- HOTFIX: implementation of doto-for macro

## 1.1.3
### Changed
- HOTFIX: implementation of doto-for macro
- HOTFIX: pre condition for ->ChunkedBufferWriter
- small refactor of example/main.clj
20 changes: 10 additions & 10 deletions example/main.clj
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
;; require namespaces to work with pydub
(require '[cljdub-dsp.io :refer :all])
(require '[cljdub-dsp.prop :refer :all])
(require '[cljdub-dsp.operation :refer :all])
(require '[cljdub-dsp.effect :refer :all])
(require '[cljdub-dsp.util :refer :all])
;; require namespaces for interop between pydub and TarsosDSP libs
(require '[cljdub-dsp.dsp.interop :refer :all])
(require '[cljdub-dsp.dsp.model :refer :all])
(require '[cljdub-dsp.dsp.processor :refer :all])
(require '[cljdub-dsp.dsp.pitch :refer :all])
(require '[cljdub-dsp.io :refer :all]
'[cljdub-dsp.prop :refer :all]
'[cljdub-dsp.operation :refer :all]
'[cljdub-dsp.effect :refer :all]
'[cljdub-dsp.util :refer :all]
;; require namespaces for interop between pydub and TarsosDSP libs
'[cljdub-dsp.dsp.interop :refer :all]
'[cljdub-dsp.dsp.model :refer :all]
'[cljdub-dsp.dsp.processor :refer :all]
'[cljdub-dsp.dsp.pitch :refer :all])

(comment
;; convert stereo mp3 file to stereo wav file
Expand Down
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject dragoon/cljdub-dsp "1.1.2"
(defproject dragoon/cljdub-dsp "1.1.3"
:description "Sound processing library that allows usage of pydub library's functionality in Clojure as well as provides interface for interaction between pydub and TarsosDSP libraries"
:url "https://github.com/dragoon000320/cljdub-dsp"
:license {:name "Eclipse Public License 2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/cljdub_dsp/dsp/model.clj
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"Audio processor that fills byte container (must be containter with extendable length, for example - list) with bytes from processing pipeline"
[jvm-list-container offset]
{:pre [(int? offset)
(>= 0 offset)]}
(>= offset 0)]}
(ChunkedBufferWriter. jvm-list-container (atom offset)))

(defrecord AudioDispatcherWrapper
Expand Down
2 changes: 1 addition & 1 deletion src/cljdub_dsp/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
(~f ~res val#))
~res)))
([this f val & rest]
`(doto-for ~this ~f ~(cons val rest))))
`(doto-for ~this ~f (list ~val ~@rest))))

0 comments on commit 0c863f4

Please sign in to comment.