ShacharHarshuv / open-ear

106 stars 20 forks source link

More instruments #72

Open azmeuk opened 2 years ago

azmeuk commented 2 years ago

Hi. First of all thank you for this app!

While piano is fine for playback, I think the app would be even better with other instrument sounds, so users could practice their ears in additional contexts. I would suggest an option to choose one or several instruments from a list, and randomly select one of the instruments for exercise playbacks if several are selected.

What do you think?

ShacharHarshuv commented 2 years ago

Sounds like a great idea! Admittedly I've been thinking about it myself. There are a few design decisions that has to be made:

  1. Is this setting relevant for all exercises? For now all exercises are playing notes, so it's seemingly relevant for all of them. But I've been thinking of adding a new kind of exercise in the future for "timbre" training (For example, learn to differ a flute from a clarinet). This question is important when deciding whether to put this setting per exercise, or in the "global settings". Another limitation of putting this setting globally, is that exercises will not be able to decide for themselves which instrument they want to play. With this ability, they will be able not only to choose instrument in a way that makes sense for the specific exercise, but also play multiple instruments at the same time. (If that's possible with Tone.js)
  2. What would be the UI element for selection? Seems like ionic supports multiple option select, might be a good option: . (I'm also thinking of changing existing multiple selection in the app to that, since long checkbox lists are not ideal)

If you want to try to implement this yourself, please consider the following: