{"id":880,"date":"2013-04-23T23:48:10","date_gmt":"2013-04-24T06:48:10","guid":{"rendered":"https:\/\/www.ussherpress.com\/blog\/?p=880"},"modified":"2017-03-08T19:53:57","modified_gmt":"2017-03-09T03:53:57","slug":"i-made-a-synth-keyboard","status":"publish","type":"post","link":"https:\/\/www.ussherpress.com\/blog\/?p=880","title":{"rendered":"I Made a Synth Keyboard"},"content":{"rendered":"<p>Just for fun, I made my own synthesizer keyboard app for the iPad and iPhone. It&#8217;s all homebrew stuff. I created my own oscillator and ADSR envelope routines and just rely on the OS for audio sample callbacks. It can play back any of the following waves: sine, square, triangle, sawtooth, pulse, and noise. If you&#8217;re familiar with old-school game and computer systems, like the NES and C64, you&#8217;ll recognize some of these sounds.<\/p>\n<p>I&#8217;ve <a title=\"YouTube video of the synth player on iPhone\" href=\"http:\/\/youtu.be\/cC3YghsEx7o?t=1m58s\" target=\"_blank\">previously demoed the synth music player<\/a>, which uses tracked files for note playback. This is the first time I&#8217;ve hooked up the synth code to a UI system so that you can play music directly.<\/p>\n<p>This keyboard runs on iPhone and iPad. Here are a couple of screenshots.<\/p>\n<p>iPhone:<\/p>\n<p><a href=\"https:\/\/www.ussherpress.com\/blog\/?attachment_id=881\" rel=\"attachment wp-att-881\"><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-881\" src=\"https:\/\/www.ussherpress.com\/blog\/wp-content\/uploads\/Photo-Apr-23-11-07-17-PM-580x386.png\" alt=\"Photo Apr 23, 11 07 17 PM\" width=\"580\" height=\"386\" srcset=\"https:\/\/www.ussherpress.com\/blog\/wp-content\/uploads\/Photo-Apr-23-11-07-17-PM-580x386.png 580w, https:\/\/www.ussherpress.com\/blog\/wp-content\/uploads\/Photo-Apr-23-11-07-17-PM-940x626.png 940w, https:\/\/www.ussherpress.com\/blog\/wp-content\/uploads\/Photo-Apr-23-11-07-17-PM.png 960w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p>iPad:<br \/>\n<a href=\"https:\/\/www.ussherpress.com\/blog\/?attachment_id=882\" rel=\"attachment wp-att-882\"><img loading=\"lazy\" class=\"aligncenter size-medium wp-image-882\" src=\"https:\/\/www.ussherpress.com\/blog\/wp-content\/uploads\/Photo-Apr-23-23-06-09-580x435.png\" alt=\"Photo Apr 23, 23 06 09\" width=\"580\" height=\"435\" srcset=\"https:\/\/www.ussherpress.com\/blog\/wp-content\/uploads\/Photo-Apr-23-23-06-09-580x435.png 580w, https:\/\/www.ussherpress.com\/blog\/wp-content\/uploads\/Photo-Apr-23-23-06-09-940x705.png 940w, https:\/\/www.ussherpress.com\/blog\/wp-content\/uploads\/Photo-Apr-23-23-06-09.png 1024w\" sizes=\"(max-width: 580px) 100vw, 580px\" \/><\/a><\/p>\n<p>And here&#8217;s a demo of me playing with the app on the iPad:<br \/>\n<iframe loading=\"lazy\" src=\"http:\/\/www.youtube.com\/embed\/iymaYUtI9_o?rel=0\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Just for fun, I made my own synthesizer keyboard app for the iPad and iPhone. It&#8217;s all homebrew stuff. I created my own oscillator and ADSR envelope routines and just rely on the OS for audio sample callbacks. It can play back any of the following waves: sine, square, triangle, sawtooth, pulse, and noise. If &hellip; <a href=\"https:\/\/www.ussherpress.com\/blog\/?p=880\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">I Made a Synth Keyboard<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[131],"tags":[84,5,85,60],"_links":{"self":[{"href":"https:\/\/www.ussherpress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/880"}],"collection":[{"href":"https:\/\/www.ussherpress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ussherpress.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ussherpress.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ussherpress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=880"}],"version-history":[{"count":11,"href":"https:\/\/www.ussherpress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/880\/revisions"}],"predecessor-version":[{"id":1409,"href":"https:\/\/www.ussherpress.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/880\/revisions\/1409"}],"wp:attachment":[{"href":"https:\/\/www.ussherpress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=880"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ussherpress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=880"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ussherpress.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}