JUCE 6 Tutorial 02 - Projucer Basics

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey what's up everybody i'd like to welcome you to another juice tutorial in this tutorial we're going to talk a little bit about the producer itself so the producer is what comes with when you actually download juice and it's a way to actually get your first project started when you're looking to build your first juice application so when you first open juice you'll be presented with this screen or you can if you if you're not you can actually go up here to file and do new project and then this should bring up this screen okay then you can see over here on the left hand side that you have a couple different types of applications that you can actually build so you have a blank application which basically has nothing and these are templates to help you kind of get started they provide you with the basic source files that you need to build that type of application so a ui application just has a basically a window where you can actually start building and using some graphics but it doesn't have any sort of facilities for audio uh input and output and that sort of thing then you have your audio application which is uh where you can build a stand-alone audio application then you have your plug-in application down here which is where you can actually build a vst or au or aax plug-in and the audio and basic the audio application and the basic plug-in application are the ones that i tend to use sometimes i'll use a ui application if i'm just trying to show an example or build something very quickly uh something visual okay so for this one we'll just use a ui application coming over here to the right side of your producer now you can give your project a name so i will just call this sample below that we have a module section where you can actually uh so juice is more kind of a collection of libraries so you have different libraries that you can include or disclude from your juice project as you can see some of them are checked in here because we're creating a template you have others that you can include such as like a dsp library you have opengl library so on and so forth but they're not included because we don't need them just yet so i will just leave that as is and then we have the path to the modules so normally in at least on a mac those will be in the applications folder and then we have our exporter section so we have checked in xcode as our choice of integrated development environment or ide and if we were on windows then we would probably have like visual studio and so on uh and then that's it so what i could do is i can actually create this project just going down here to the bottom right and hit create project and then i'll just choose desktop to actually create the project i hit open and now it's created my project so once it's created the project then you have your source files here so we have three source files main main component and main component.cpp okay we'll go through those in future tutorials and show you some of the basics around those so those are your source files and then below that you have your module section so that corresponds with what we did when we were actually creating the project where we included certain modules what you can do is if you want to create other if you want to include other modules what you can do is you can hit this plus bottom plus button down here at the bottom and i hit that and you hit add a module then i'm going to go to global juice modules path and what i can do is i can include something else now i'll just for example include this juice dsp library and so now i've included this and we can see that it's in red and we have a warning down here that says that the modules have missing dependencies so what this means is that the juice dsp module depends on other modules in order for it to function and so what i need to do is i need to either remove the module which will just remove the dsp module from our list of included libraries or i could hit add missing dependencies and that will automatically include the other libraries that we need in order for the juice dsp module to work so i will just click that and now it's included these other modules that we need for the juice dsp library to actually work properly down at the bottom we have exporters so as you can see we have our xcode as our exporter which is the ide that we're going to be using if i click in here then what we'll see is that we have uh these other sections and these are for more for kind of advanced features such as if you want to create compiler flags link or flags if you have other libraries that you're trying to link you would do that in here rather than trying to do that through your ide so make sure you do that all here in the producer so the producer is a way of managing your whole project and then uh i think that's everything important so a lot of these i've never actually even used myself but they're more kind of advanced things and sometimes you'll have some uh menus that are that are here in uh debug that aren't in the main xcode section and so and vice versa and then uh what else we have is the settings menu so up here at the top in the left if i click project settings then you'll see here that i can change the project name the main thing that you want to be concerned about here is uh adding using namespace juice to the juice header so i explained a little bit about that in my last tutorial juice tutorial one so i won't go through that again so check that tutorial if you're not sure what that means and then down here a little bit further the other thing you may want to change at some point is the c plus plus language standards so the default is c plus plus 14. i tend to use c plus plus 17. so these are just different uh updates of c plus plus and if you needed to use an older version of c plus plus you can actually go back and you can check that in so if you were using let's say a library an external library that was using just c plus plus 11 then you may need to change the c plus plus language standard there also header search pass if you have uh different headers that you're trying to link in from other libraries and that's the main thing so once you have all of this selected then and you have your options created the way you like them then what you can do is you're now ready to open this up in your ide and you can do that up here in the center where it says save and open in ide and now i've just clicked that and it will open up my xcode project and so then we see all of our juice modules that we included from our producer and if we click in here we'll see our source files the main cpp main component.h maincomponent.cpp and those correspond with our files here okay so one of the main things that i could tell you uh that you don't want to do is that people when they first get started with juice is they tend to start when they want to create more source files they'll try to do that through the ide so what i'll do just to demonstrate this for you is i will create a new file so let's say i'm creating a new class or a new a new source file here then i'll just create this and i will call this test and i'll hit next and i will put this in where where the rest of my source files are i hit create and now we have this test dot cpp and test.hpp that are now here but now what watch what happens if i close out xcode so i'll close this out and you'll notice that test.cpp and test.hpp are not in my source folder so if i go like this and i open it back up now those source files are actually gone okay so they aren't actually in here okay so what you need to do so first thing i'll do is i will go back into the folder itself because those files actually still exist and i can just go in here and i will delete these so any files that you're trying to create you need to create actually in the producer itself okay so this is where you manage your whole project so files that you're trying to create your also your header search paths any sort of libraries that you're trying to link into your project you need to do that via the producer so the way that we could do that is by going to our file explorer and then down here at the bottom we just hit our plus button and i will now do a a new cpp and header file and i will just call this i'll call this test2 and then i'll hit save and this will create these source files and you can actually like move them around so i'll just move them in here to the source folder and now i'll save it and open an ide again and now you see those files are there so make sure that when you're creating new source files that you're actually creating that in the producer itself and not in the ide or else they will disappear and that's very frustrating so those are the basics of the producer just to get your first juice project started i hope you enjoyed this tutorial please be sure to like and subscribe and i will see you next time
Info
Channel: The Audio Programmer
Views: 3,289
Rating: undefined out of 5
Keywords: audio programming, creative coding, audio coding, creative programming, digital signal processing, dsp, plugins, vst, software development, ableton, max msp, c++, sample rate, bit depth, nyquist theorem, juce framework, tutorial, beginner, easy, games development, games programming, basics, openFrameworks, open Frameworks, ofx, Maxim, Maximilian, Juce Framework, framework, juce audio, vst development, juce, plugin development
Id: js65GT6SGFk
Channel Id: undefined
Length: 10min 52sec (652 seconds)
Published: Thu Sep 03 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.