|
From: | Paul Morris |
Subject: | Re: Coloring of key signature accidentals based on their pitch |
Date: | Sat, 22 Aug 2015 11:48:39 -0400 |
Hi David,
Nice! It’s cool to see how you’re doing this kind of thing with a relatively simple example.
Yep, it still looks pretty daunting on closer inspection. Seems like the ledger requests data structure stuff could be redone with some nested alists. We’ll see. Thanks for the tip on that ambitus snippet – it is impressive! I hadn’t looked at it before.
Good catch, thanks! The only thing I can think of to prevent this nesting is to split the function into separate functions and chain them together. So you would either call the next function or “return early” without calling it. All the needed data would be passed through as parameters. Not sure if that’s a good approach (performance wise) or not. On the one hand the additional functions aren’t even called in some cases, on the other hand you have more functions that get called when they are all needed. Cheers, -Paul |
[Prev in Thread] | Current Thread | [Next in Thread] |