{"id":30,"date":"2018-04-28T00:49:41","date_gmt":"2018-04-28T00:49:41","guid":{"rendered":"https:\/\/blogs.harvard.edu\/wavepainter\/?p=30"},"modified":"2018-04-27T22:57:32","modified_gmt":"2018-04-28T02:57:32","slug":"update-4272018","status":"publish","type":"post","link":"https:\/\/archive.blogs.harvard.edu\/wavepainter\/2018\/04\/28\/update-4272018\/","title":{"rendered":"Update 4\/27\/2018"},"content":{"rendered":"<p>Over the last few days I have been experimenting with the tools and platforms I will be using for this project. I do not have much experience with python, so I installed pygame and spent some time learning how to show a window with some simple graphics. While doing this, I realized that writing the GUI application would be easier in Java, a language I am much more familiar with. Therefore, I may decide to write a Java GUI using tools I am more familiar with, rather than learn a new system. Additionally, I have read that the Raspberry Pi touchscreen drivers have in the past not worked well with pygame.<\/p>\n<p>I also spent some time learning my way around the JACK audio system. JACK applications are organized as a set of callbacks, which are pieces of code that are called when certain events occur. The main one of these is called at regular intervals, and its task is to fill a buffer with samples to be played. Other callbacks include one for changes to the sample rate, and one for when the audio server shuts down. I first modified one of the example programs, a MIDI sine wave synthesizer, to be polyphonic, and then further modified it to use a wavetable. Code for these two programs is on Github <a href=\"https:\/\/github.com\/davjgardner\/wavepainter\/tree\/master\/testing\">here<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the last few days I have been experimenting with the tools and platforms I will be using for this project. I do not have much experience with python, so I installed pygame and spent some time learning how to show a window with some simple graphics. While doing this, I realized that writing the <a class=\"read-more\" href=\"https:\/\/archive.blogs.harvard.edu\/wavepainter\/2018\/04\/28\/update-4272018\/\">Read More<\/a><\/p>\n","protected":false},"author":9581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[909],"tags":[],"class_list":["post-30","post","type-post","status-publish","format-standard","hentry","category-updates"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p9QzGt-u","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/archive.blogs.harvard.edu\/wavepainter\/wp-json\/wp\/v2\/posts\/30","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/archive.blogs.harvard.edu\/wavepainter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/archive.blogs.harvard.edu\/wavepainter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/wavepainter\/wp-json\/wp\/v2\/users\/9581"}],"replies":[{"embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/wavepainter\/wp-json\/wp\/v2\/comments?post=30"}],"version-history":[{"count":5,"href":"https:\/\/archive.blogs.harvard.edu\/wavepainter\/wp-json\/wp\/v2\/posts\/30\/revisions"}],"predecessor-version":[{"id":32,"href":"https:\/\/archive.blogs.harvard.edu\/wavepainter\/wp-json\/wp\/v2\/posts\/30\/revisions\/32"}],"wp:attachment":[{"href":"https:\/\/archive.blogs.harvard.edu\/wavepainter\/wp-json\/wp\/v2\/media?parent=30"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/wavepainter\/wp-json\/wp\/v2\/categories?post=30"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/archive.blogs.harvard.edu\/wavepainter\/wp-json\/wp\/v2\/tags?post=30"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}