+ 1
Checking the existence of input pair of strings and their position in multiple preset lists of strings.
What methods should I use to check the existence of 2 input strings and also their position inside preset lists of strings that have a particular order? I'm new to c# so hope this doesn't sound too confusing
2 Answers
+ 7
I'm sorry but it does sound confusing, can u pls explain in clearer and in more detailed way what u need OR if u have the code pls show us
0
Ok. So basically I want to make this for a music related task since that's what I study and I just want to learn programming for myself.
There is the c major scale: c, d, e, f, g, h, a. All the other scales are built on variations of order and name of these letters (there are sharps (ex: c# hehe) and flats (ex: db (b is the symbol for flat)). Another scale may be g major : g, a, h, c, d, e, f# and there are like... A lot of scales other than these with their own note order.
The task is to find the scales in which 2 input notes can be found. Moreover, I also need to find on which position in the scale the first input note is. For example you input e and g, the program has to find all the scales in which both notes can be found and also the position of e (which in c major is on the 3rd step).