Open felixroos opened 7 months ago
naturally, this leads to a more general design where c could be used on any other seconds based control like envelopes
How could "0.25c".mul(2)
do the expected?
How could
"0.25c".mul(2)
do the expected?
i'd say that should return "0.5c" . so _c would be an artificial number type, similar to how hex numbers are prefixed with 0x
So mul
would take care to do the multiplication while preserving the suffix? Or would something parse it into an object like {value: 0.25, _type: cycle}
?
I guess ideally "0.25c".fmap(x => x*2)
would work too.
instead of seconds, there could be a delay control that uses cycles as a unit. maybe
delay
could be reused with a special suffix, likedelay('.25c')
, which would also allow one to keep using combo notationdelay(".5:.25c:.9")
.