summaryrefslogtreecommitdiff
path: root/src/unheard/time_object.clj
diff options
context:
space:
mode:
authorJake Zerrer <him@jakezerrer.com>2025-11-26 15:10:20 -0500
committerJake Zerrer <him@jakezerrer.com>2025-12-09 18:10:02 -0500
commit02dce7d08f92b1d255e3afca33034f481d1371a7 (patch)
tree18cebc9ab1ee73642ae1294b1c50173b977e29dc /src/unheard/time_object.clj
parent34bdba657919a38d26f698024f37d649931ac368 (diff)
Add git-bug to flakeHEADmain
Diffstat (limited to 'src/unheard/time_object.clj')
-rw-r--r--src/unheard/time_object.clj14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/unheard/time_object.clj b/src/unheard/time_object.clj
index 8d07361..5b71e0a 100644
--- a/src/unheard/time_object.clj
+++ b/src/unheard/time_object.clj
@@ -37,10 +37,11 @@
(def c (phrase (b 0) (b 3)))
(c 0))
-(defn phrase->spans [phrase]
+(defn phrase->spans
+ [phrase]
(let [{:keys [time-objects]} (phrase 0)]
(map (fn [{:keys [start duration value]}] [start (+ start duration) value])
- time-objects)))
+ time-objects)))
(comment
(phrase->spans c))
@@ -49,9 +50,8 @@
"Primary timeline bookkeeping mehanism."
[spans]
(let [c (i/create-ratio-interval-collection)]
- (doall
- (for [[start end value] spans]
- (.add c (i/ratio-interval start end value))))
+ (doall (for [[start end value] spans]
+ (.add c (i/ratio-interval start end value))))
c))
(comment
@@ -65,8 +65,8 @@
(m/stream (m/ap (let [at (m/?< >at)]
(into #{}
(map #(.value %)
- (i/find-overlaps timeline
- (i/ratio-interval at at nil))))))))
+ (i/find-overlaps timeline
+ (i/ratio-interval at at nil))))))))
(comment
(def at (atom 0))