AudioKit / Keyboard

SwiftUI music keyboard
MIT License
137 stars 25 forks source link

Add Guitar Layout #7

Closed NickCulbertson closed 2 years ago

NickCulbertson commented 2 years ago

This PR adds a guitar layout that is tuned to 4ths. It is basically the isometric keyboard with each row (string) offset by 5 notes. I added an example to the demo.

This does add a "rows" variable to the Keyboard class for setting the number of strings. And the pitchRange is the range of notes only on the first row which could result in the higher strings' pitches being out of bounds if not calculated with this in mind.

It is just a starting point. Let me know what you think!