Timeline for Print the notes of an increasing octave-repeating scale
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 21, 2023 at 20:26 | comment | added | Dominic van Essen | Agree that challenge is not at all self-explanatory... | |
Jan 21, 2023 at 20:24 | comment | added | Kevin Cruijssen |
@DominicvanEssen It is?.. I thought we could choose either high- (# ) or low-pitched (b ) I/O based on rule "If the notes are enharmonic equivalent, you can print either of them". Tbh, I've never played any instruments and had to look up the notes in the first place (and remembered doing this challenge before). The challenge is all but self-explanatory and the rules and I/O are pretty confusing imo.. :/
|
|
Jan 21, 2023 at 20:16 | comment | added | Dominic van Essen | Ah, that's a funny coincidence! But, apart from that, doesn't the challenge require programs to handle both X# and Xb names for each scale...? | |
Jan 21, 2023 at 20:12 | comment | added | Kevin Cruijssen |
@DominicvanEssen That's a coincidence, since I don't support b notes as I/O.. The G# results in an index of 11 with a list of indices [11,13,15,16,18,20,22] and the Gb results in an index of -1 with a list of indices -1,1,3,4,6,8,10] , which with modular 0-based indexing happens to be the same output-list ["G#","A#","C","C#","D#","F","G"] . If you put in bob as input, it'll still result in that same -1 index and output-list. 🤷
|
|
Jan 21, 2023 at 20:08 | comment | added | Dominic van Essen |
"If the scales are enharmonic equivalent (same scale but different names eg G#m and Abm), you have to handle both of them." - This appears to give identical results for G# and Gb ...
|
|
Jan 20, 2023 at 16:35 | history | answered | Kevin Cruijssen | CC BY-SA 4.0 |