AudioKit / ROMPlayer

AudioKit Sample Player (ROM Player) - EXS24, Sound Font, Wave Player
http://audiokitpro.com
MIT License
530 stars 82 forks source link

How would I write code to press a key or number of keys programmatically and generate the sound(s)? #3

Closed Shinehah-Gnolaum closed 5 years ago

Shinehah-Gnolaum commented 5 years ago

How would I write code to press a key or number of keys programmatically and generate the sound(s)?

analogcode commented 5 years ago

Hi @Shinehah-Gnolaum,

There's a few ways.

Good luck!

analogcode commented 5 years ago

And, to press the a key on the onscreen keyboard and sound a note, call

keyboardView.pressAdded(noteNumber, velocity: velocity)

In the ParentController