December 2009

Page 68

//programming

corner// class JUCE_API Programing_Corner : public by_WilliamK { public: showText() { String caption(T("Get ready for some Juce and C++ action!")); // String sub(T("It's not for the faint of heart. Wipe your shoes before entering the room...")); // String downloads(T("http://juce.wusik.com")); }; };

/** Starting up with this issue, we will be introducing some programming tips for the experienced programmer, but also, for the guy who is just starting up. I will try to divide it up into basic and advanced sections, when possible. Now, if you never done any programming at all, I would advise to start up with a C++ book, before anything else. Get yourself a nice compiler, a good start-up book, and there you have it. If you don't know Juce yet, visit RawMaterialSoftware.com for some information about it. Its a free open-source framework. There's a license option, if you plan on releasing your work without its source-code. */

class JUCE_API Chapter_One : public by_WilliamK { Basic() { String name(T("Starting up with Juce, creating your own plugin")); }; }; The great thing about Juce, is that it comes with some nice examples. There's no big deals here, open the Juce folder and follow this path: juce/extras/audio plugins/demo/build/ and pick the platform you are working on. Here, I chose /win32 and opened the JuceDemoPlugin.vcproj file, which fires up Microsoft Visual C++ 2008, the Express edition. If you don't have a compiler yet, this is a nice option, since its free. Just Google for it and you’ll find its page at the Microsoft.com site. Once you open it up, it may ask to convert the project. Follow the instructions until you are ready to go. Notice the Left area, there's where you will see the project files. Open up the Sources Tree, and then the plug-in tree. There should be 8 files there. We will explain a bit about each file in a minute. For now its time to compile and see if everything is working. Now is a good time to mention that you will need to setup a few things first, before the compiler can actually work. Open up juce_AppConfig.h and set to 0 the following defines: JUCE_QUICKTIME, JUCE_OPENGL, JUCE_ASIO, JUCE_USE_CDBURNER and any other that you want to leave out for now. You also need install the VST SDK from Steinberg, to be able to compile the VST version. Once you have the Steinberg SDK, you need to add the VST SDK path to the compiler settings. If you are using MVC++2008 press F7 and it will start compiling. Once compiled, you should have a .dpm file, which is your plug-in file. Change the .dpm to .dll and move it to your host/sequencer plug-ins folder. 68

www.WusikSoundMagazine.com

December 2009


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.