{"id":562,"date":"2016-11-18T22:34:36","date_gmt":"2016-11-19T03:34:36","guid":{"rendered":"https:\/\/portfolios.cs.earlham.edu\/?p=562"},"modified":"2016-11-18T22:34:36","modified_gmt":"2016-11-19T03:34:36","slug":"configuring-jack-and-other-instruments","status":"publish","type":"post","link":"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/","title":{"rendered":"Configuring JACK and Other Instruments"},"content":{"rendered":"<p>Today, I found out how to automatically connect the FluidSynth audio output to the computer&#8217;s audio device input without having to manually make the connection in QjackCtl every time I run the program, and how to map each instrument to a specific channel. The FluidSynth API uses the &#8220;fluid_settings_setint&#8221; and &#8220;fluid_synth_program_select&#8221; functions, respectively, for such tasks. Both features are now integrated into the program, and I also allow the users to change the channel to instrument mapping as they see fit as well.<\/p>\n<p>Now, the last thing I need to do to make this program a true virtual conductor is to incorporate tempo in such a way that I don&#8217;t have to limit myself and the music to eighth notes or longer anymore. Earlier today, Forrest also suggested that I use an integer tick counter of some kind to subdivide each beat instead of a floating point number. Also, for some reason, I&#8217;m still getting wildly inaccurate BPM readings, even without the PortAudio sleep function in the way anymore, but I may still be able to use the clock ticks themselves to my advantage. Although, a simple ratio can convert clock ticks to MIDI ticks easily, but I still need to figure out how I can trigger note on\/off messages after a certain number of clock ticks have elapsed.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today, I found out how to automatically connect the FluidSynth audio output to the computer&#8217;s audio device input without having to manually make the connection in QjackCtl every time I run the program, and how to map each instrument to &hellip; <a href=\"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/\">Read More<\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-562","post","type-post","status-publish","format-standard","hentry","category-edward"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Configuring JACK and Other Instruments - CS\/DS Student Portfolios<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Configuring JACK and Other Instruments - CS\/DS Student Portfolios\" \/>\n<meta property=\"og:description\" content=\"Today, I found out how to automatically connect the FluidSynth audio output to the computer&#8217;s audio device input without having to manually make the connection in QjackCtl every time I run the program, and how to map each instrument to &hellip; Read More\" \/>\n<meta property=\"og:url\" content=\"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/\" \/>\n<meta property=\"og:site_name\" content=\"CS\/DS Student Portfolios\" \/>\n<meta property=\"article:published_time\" content=\"2016-11-19T03:34:36+00:00\" \/>\n<meta name=\"author\" content=\"Edward Ly\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Edward Ly\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/2016\\\/11\\\/18\\\/configuring-jack-and-other-instruments\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/2016\\\/11\\\/18\\\/configuring-jack-and-other-instruments\\\/\"},\"author\":{\"name\":\"Edward Ly\",\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/#\\\/schema\\\/person\\\/89af3998f351d29a0ccc69f7311c2aa9\"},\"headline\":\"Configuring JACK and Other Instruments\",\"datePublished\":\"2016-11-19T03:34:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/2016\\\/11\\\/18\\\/configuring-jack-and-other-instruments\\\/\"},\"wordCount\":233,\"commentCount\":0,\"articleSection\":[\"Edward\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/2016\\\/11\\\/18\\\/configuring-jack-and-other-instruments\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/2016\\\/11\\\/18\\\/configuring-jack-and-other-instruments\\\/\",\"url\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/2016\\\/11\\\/18\\\/configuring-jack-and-other-instruments\\\/\",\"name\":\"Configuring JACK and Other Instruments - CS\\\/DS Student Portfolios\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/#website\"},\"datePublished\":\"2016-11-19T03:34:36+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/#\\\/schema\\\/person\\\/89af3998f351d29a0ccc69f7311c2aa9\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/2016\\\/11\\\/18\\\/configuring-jack-and-other-instruments\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/2016\\\/11\\\/18\\\/configuring-jack-and-other-instruments\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/2016\\\/11\\\/18\\\/configuring-jack-and-other-instruments\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Configuring JACK and Other Instruments\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/#website\",\"url\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/\",\"name\":\"CS\\\/DS Student Portfolios\",\"description\":\"AI and ML, Image Classification, Arduino\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/#\\\/schema\\\/person\\\/89af3998f351d29a0ccc69f7311c2aa9\",\"name\":\"Edward Ly\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2633fa74216d093a8642a5432c44963fd10f677e4cbcc6d935069f9859630ee?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2633fa74216d093a8642a5432c44963fd10f677e4cbcc6d935069f9859630ee?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d2633fa74216d093a8642a5432c44963fd10f677e4cbcc6d935069f9859630ee?s=96&d=mm&r=g\",\"caption\":\"Edward Ly\"},\"url\":\"https:\\\/\\\/portfolios.cs.earlham.edu\\\/index.php\\\/author\\\/esly14\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Configuring JACK and Other Instruments - CS\/DS Student Portfolios","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/","og_locale":"en_US","og_type":"article","og_title":"Configuring JACK and Other Instruments - CS\/DS Student Portfolios","og_description":"Today, I found out how to automatically connect the FluidSynth audio output to the computer&#8217;s audio device input without having to manually make the connection in QjackCtl every time I run the program, and how to map each instrument to &hellip; Read More","og_url":"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/","og_site_name":"CS\/DS Student Portfolios","article_published_time":"2016-11-19T03:34:36+00:00","author":"Edward Ly","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Edward Ly","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/#article","isPartOf":{"@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/"},"author":{"name":"Edward Ly","@id":"https:\/\/portfolios.cs.earlham.edu\/#\/schema\/person\/89af3998f351d29a0ccc69f7311c2aa9"},"headline":"Configuring JACK and Other Instruments","datePublished":"2016-11-19T03:34:36+00:00","mainEntityOfPage":{"@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/"},"wordCount":233,"commentCount":0,"articleSection":["Edward"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/","url":"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/","name":"Configuring JACK and Other Instruments - CS\/DS Student Portfolios","isPartOf":{"@id":"https:\/\/portfolios.cs.earlham.edu\/#website"},"datePublished":"2016-11-19T03:34:36+00:00","author":{"@id":"https:\/\/portfolios.cs.earlham.edu\/#\/schema\/person\/89af3998f351d29a0ccc69f7311c2aa9"},"breadcrumb":{"@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/portfolios.cs.earlham.edu\/index.php\/2016\/11\/18\/configuring-jack-and-other-instruments\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/portfolios.cs.earlham.edu\/"},{"@type":"ListItem","position":2,"name":"Configuring JACK and Other Instruments"}]},{"@type":"WebSite","@id":"https:\/\/portfolios.cs.earlham.edu\/#website","url":"https:\/\/portfolios.cs.earlham.edu\/","name":"CS\/DS Student Portfolios","description":"AI and ML, Image Classification, Arduino","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/portfolios.cs.earlham.edu\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/portfolios.cs.earlham.edu\/#\/schema\/person\/89af3998f351d29a0ccc69f7311c2aa9","name":"Edward Ly","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/d2633fa74216d093a8642a5432c44963fd10f677e4cbcc6d935069f9859630ee?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d2633fa74216d093a8642a5432c44963fd10f677e4cbcc6d935069f9859630ee?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d2633fa74216d093a8642a5432c44963fd10f677e4cbcc6d935069f9859630ee?s=96&d=mm&r=g","caption":"Edward Ly"},"url":"https:\/\/portfolios.cs.earlham.edu\/index.php\/author\/esly14\/"}]}},"rttpg_featured_image_url":null,"rttpg_author":{"display_name":"Edward Ly","author_link":"https:\/\/portfolios.cs.earlham.edu\/index.php\/author\/esly14\/"},"rttpg_comment":0,"rttpg_category":"<a href=\"https:\/\/portfolios.cs.earlham.edu\/index.php\/category\/student\/2016\/edward\/\" rel=\"category tag\">Edward<\/a>","rttpg_excerpt":"Today, I found out how to automatically connect the FluidSynth audio output to the computer&#8217;s audio device input without having to manually make the connection in QjackCtl every time I run the program, and how to map each instrument to &hellip; Read More","_links":{"self":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/posts\/562","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/comments?post=562"}],"version-history":[{"count":5,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/posts\/562\/revisions"}],"predecessor-version":[{"id":567,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/posts\/562\/revisions\/567"}],"wp:attachment":[{"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/media?parent=562"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/categories?post=562"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/portfolios.cs.earlham.edu\/index.php\/wp-json\/wp\/v2\/tags?post=562"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}