Skip to content
passivist edited this page Jan 20, 2017 · 3 revisions

GUI

In this chapter we will implement a lot of useful GUI functionality starting with Buttons and Sliders setting parameters visible and changeable from the host program. We will also implement a waveform display for the sample and make our parameters persistent.

In JUCE user interaction consists of several parts. First there are GUI elements like Buttons or Sliders that appear on screen but by themselves don't provide any interaction. Part of these GUI classes are listeners, these classes trigger callbacks in the main process whenever a GUI element is changed. We can use these callbacks to set values in our program or trigger different function calls. Lastly there are parameters, these are objects that make values in your plugin accessible to the host program. Parameters can store values and handle ranges of values and are the preferred way of providing an interface to your plugin.

We will start by first implementing a parameter for the start position of the grains and then adding a class that encapsulates both the functionality of a parameter and a slider.

<<< last Chapter next Chapter >>>

Clone this wiki locally