Re:The Music Suite
by lachenmayer on Thursday June 05, 2014 @03:53PM
(#7853948)
There's an easy solution if you prefer to use those:
melody = scat
chord = pcat
I think the rationale is that you'd most often want `melody` to refer to the melody of the whole song rather than some sequence of notes within your melody.
Re:The Music Suite
by tracyshaun on Thursday June 05, 2014 @05:10PM
(#7854538)
I agree with you that the names 'melody' and 'chord' would be more appropriate here. I think of dung when I see 'scat'.
I'm excited to use this, though, and will definitely be reassigning those names to something else at the top of every file.
> Actually, scat and pcat used to be called melody and chord back in the days, but I figured out that these are names that you actually want to use in your own code.
I would have preferred to see `melody` and `chord` over s/pcat because that's what they're doing. The whole point of a declarative DSL like this is to be descriptive. When I first saw `scat` I wondered if it was a shorthand for `staccato`, or perhaps even a reference to scat singing? On the other hand, not only are `melody` and `chord` very obvious, but they are also general enough that they are rather unlikely to be used as variable names, except perhaps as one-offs.