Tidal icon indicating copy to clipboard operation
Tidal copied to clipboard

? notation location

Open pyrrhic-ish opened this issue 3 years ago • 4 comments

It would be cool if the exact location of the ? function would mean something in the syntax.

for example:

bd*2? could result in |~bd|bdbd|~~|bd~| Meaning all repetitions are happening 50%

where:

bd?*2 could result in |~~|bdbd|bdbd|~~| Meaning if bd happens it multiplies it afterwards

pyrrhic-ish avatar Dec 19 '20 13:12 pyrrhic-ish

somewhat related - Is there a non-recursive "?" operator? When I first saw it, I thought "p?" meant that "p" happens as a whole (with all events) or not (none).

jwaldmann avatar Dec 19 '20 17:12 jwaldmann

shouldn't be the opposite? with bd*2? I expect the block bd*2 to happen, or not happen, as a whole, while with bd?*2 I expect the bd to be executed or not executed, then this event is doubled by 2

ndr-brt avatar Nov 11 '21 14:11 ndr-brt

heh I expect the opposite of what @ndr-brt suggests. What is proposed in the issue makes sense to me.

bd*2? removes none, one, or both of the bd events per cycle

bd?*2 would remove none or all of the events per cycle

kindohm avatar Nov 11 '21 15:11 kindohm

I think it's just a matter of a convention, and maybe we need another operator to describe "random as a whole" and it will behave like I proposed, this will avoid breaking changes and misunderstandings. I will open a new issue about that

ndr-brt avatar Nov 12 '21 07:11 ndr-brt