{"id":1444,"date":"2018-11-12T11:15:16","date_gmt":"2018-11-12T19:15:16","guid":{"rendered":"http:\/\/tre.ucsd.edu\/wordpress\/?p=1444"},"modified":"2018-11-20T10:48:16","modified_gmt":"2018-11-20T18:48:16","slug":"mus177206-introduction-to-juce","status":"publish","type":"post","link":"https:\/\/tre.ucsd.edu\/wordpress\/?p=1444","title":{"rendered":"mus177\/206 &#8211; introduction to JUCE"},"content":{"rendered":"<p>This week we will be getting started in using JUCE to create audio plugins. I will show you both the audio processing and graphic layers, and how they connect. To start, you need to download the JUCE SDK from <a href=\"http:\/\/www.juce.com\">www.juce.com<\/a>. Join with either the Education or Personal license.<\/p>\n<p>Along with these lessons, you should look at the following youtube videos from\u00a0<a class=\"yt-simple-endpoint style-scope yt-formatted-string\" spellcheck=\"false\" href=\"https:\/\/www.youtube.com\/channel\/UCpKb02FsH4WH4X_2xhIoJ1A\">The Audio Programmer<\/a>\u00a0(Joshua Hodge) &#8211;\u00a0<a href=\"https:\/\/youtu.be\/7n16Yw51xkI\">https:\/\/youtu.be\/7n16Yw51xkI<\/a>. These cover most relevant aspects of JUCE in detail. Much better than the tutorials on the JUCE website.<\/p>\n<p><a href=\"https:\/\/tre.ucsd.edu\/wordpress\/wp-content\/uploads\/2018\/11\/ClassTest.zip\">Here<\/a> is the class example from week 7. It was pointed out to me that JUCE has deprecated the existing createAndAddParameter method (with all the arguments). The valid way to use this method is to create a RangedParameter and hand it to createAndAddParameter. Here is gain from the class example: I create an AudioParameterFloat which gets added to the value tree (std::make_unique is a safer substitute for new).<\/p>\n<pre> parameters.createAndAddParameter(std::make_unique&lt;AudioParameterFloat&gt;(\"gain\", \/\/ parameter ID\r\n \"gain\", \/\/ parameter name\r\n NormalisableRange&lt;float&gt; (-60.0f, 12.0f), \/\/ range\r\n 0.0f, \/\/ default value\r\n \"dB\"));<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This week we will be getting started in using JUCE to create audio plugins. I will show you both the audio processing and graphic layers, and how they connect. To start, you need to download the JUCE SDK from www.juce.com. &hellip; <a href=\"https:\/\/tre.ucsd.edu\/wordpress\/?p=1444\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[21,23],"tags":[],"_links":{"self":[{"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1444"}],"collection":[{"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1444"}],"version-history":[{"count":3,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1444\/revisions"}],"predecessor-version":[{"id":1450,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1444\/revisions\/1450"}],"wp:attachment":[{"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1444"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1444"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tre.ucsd.edu\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1444"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}