xenharmonic-devs / sonic-weave

The SonicWeave DSL for manipulating musical frequencies, ratios and equal temperaments
MIT License
4 stars 4 forks source link

Disable intrinsic multiplication (space operator) between intervals #346

Closed frostburn closed 3 months ago

frostburn commented 3 months ago

(Too lazy / too late to format the copy&paste.)

ask me for EDO reccs > 31 — Today at 8:33 PM re: ⁠scale-workshop-dev⁠ is there a reason it's scalar multiplication? frostburn — Today at 8:33 PM 3 foo looks like 3 foo from maths. ask me for EDO reccs > 31 — Today at 8:35 PM 🤔 is that reasonable? this is very rare in programming languages; even when writing out comma expressions and equivalences i never omit the for fear of confusion... itd be nice if the "space operator" was reserved for its use in ScaleWorkshop Sheets one of the reasons it's rare in programming languages is it makes the syntax fairly nontrivial: int x should not be int*x which means something different anyway frostburn — Today at 8:36 PM I guess that's reasonable. Just put whatever in the space operator because I definitely wanted 3/2 'fif' and 3/2 #ff00ff to be things. ask me for EDO reccs > 31 — Today at 8:36 PM itd be nice if ScaleWorkshop Sheets syntax could coexist, but you'd be the better judge for how reasonable of a goal that is (as it will mean the syntax is significantly more constrained) frostburn — Today at 8:36 PM I mean your critique is reasonable. frostburn — Today at 8:37 PM Yeah... It's going to be hard to develop with that constraint so I'll definitely start SWS as a new experimental project. ask me for EDO reccs > 31 — Today at 8:38 PM stuff like (5/4)(16/15) does make sense mathematically but i avoid that format because it could be confused with (5/4)/(16/15) (which is when the brackets are actually necessary) and afaik while people do write horizontal-line ratios next to each-other they dont write "5/4 3/2" both cuz depending on spacing it might be confused for "5/43/2" and cuz "1 1/2" already means something very different