3 ms·
Very cool stuff! Haskell is indeed great for this kind of thing; perhaps I will get around to trying it out. A (very minor) issue: > Actually, scat and pcat us
by thinkpad20 12y ago
Very cool stuff! Haskell is indeed great for this kind of thing; perhaps I will get around to trying it out. A (very minor) issue:
> 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.
- lachenmayer 12y agoThere'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.
- tracyshaun 12y agoI 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.