A neural network-based method for chord/note scale association with melodies