Open felixroos opened 1 year ago
also good for strumming: https://strudel.tidalcycles.org/?QZtGq9xNCjgK
todo fix:
sequence(pure(1),silence).pedal(pure(1)).queryArc(0.5,1)
> Array []
"you could fix it by querying the pedals with the whole of the hap
to be sure of finding everything
being sure to throw any events away that don't intersect with the original query"
It'd be good to find three related names for the different behaviours:
Ideas for the first two:
For the last one I was thinking maybe expand/grow, but the original haps could also be made smaller.. so maybe
Or as it's related to struct
Or we could also name the three variants together
These are really new alignment functions, so we can add them to the operators, making add.fill
etc or whatever we call them.
I like head
/ tail
, maybe also fillRight
/ fillLeft
which is more explicit
I guess head
implies losing the tail. fillRight
/ fillLeft
is good although we've moved away from implying that time goes from left to right, which is quite nice..
Maybe just onset
, offset
and fill
works?
Or more radically, on
and off
, renaming current off
to offset
?
we've moved away from implying that time goes from left to right, which is quite nice..
makes sense, maybe headFill
, tailFill
? Or prolong
and prelong
?
Maybe just onset, offset and fill works?
To me, onset and offset sound too simple compared to what this is doing.
Although actually I'm not sure how this should work. My guess:
"a ~".pedal("1")
-> "a"
"a ~".pedal("1")
-> "a"
"a".pedal("1 ~")
-> "a ~"
?"a@3 ~".pedal("~ 1")
-> "a".mask("~ 1")
- e.g. a fragment with its first half missing?To me, onset and offset sound too simple compared to what this is doing.
I was thinking that .offset()
applies a pattern of offsets?
maybe it helps (or futher complicates) to include the versions of the function that use the other sides of the timespans:
"a ~ ~ ~".x("1 1")
-> a ~
aka tailFill
(pedal)"~ a@2 ~".x("1 1")
-> ~ a ~ ~
aka tailCut
"~ a@2 ~".x("1 1")
-> ~ ~ a ~
aka headCut
"~ a ~ ~".x("1 1")
-> a ~
aka headFill
maybe headCut and tailCut are a bit brutal...
Heh, the right metaphor must be out there somewhere..
https://strudel.tidalcycles.org/?PsM_BuH_L5A4
maybe also rename to hold..