Control Pins

Video Transcript

0:08
Welcome back. Now that you’re familiar with how controls work and different styles of controls,
0:13
let's see how we can use controls to control other controls.
0:17
If you select any component and go to its Properties panel in the Right-Side Pane,
0:21
you’ll notice the bottom section has an expandable window called Control Pins.
0:27
Every control in the component’s control panel is listed here,
0:31
and if you check a control’s box then it exposes a new Control Pin on the bottom of the component.
0:38
These square Control pins can be wired to each other the same way that circular audio pins
0:44
can be wired to each other, but control pins send data to each other rather than audio.
0:50
The flow follows the same logic as audio, in that incoming data comes from the left,
0:55
and outgoing data goes out to the right.
1:00
Let’s say I have a situation where I want to press the Play Button of an Audio Player
1:04
and also stop a different Audio Player.
1:07
I can expose the Play Trigger of the first player and the Stop Trigger of the second one.
1:16
I'll wire the right hand, out going pin of the first audio player,
1:20
in to the left hand incoming pin of the second audio player
1:24
Now when I press Play here, it will start the Audio Player
1:29
while simultaneously sending a trigger impulse across this wire to Stop the second Audio Player.
1:36
You can accomplish an infinite number of simple tasks with a single wire like this,
1:40
but before you start playing … be aware that not all controls are necessarily going to play well together.
1:47
If you use one trigger button to control another trigger button like this,
1:51
you know exactly what’s going to happen.
1:53
But think about what you’d like to accomplish before you start mixing control types.
1:59
What happens, for instance, if you wire the mute button of the
2:02
first Audio Player to the Gain knob of the second?
2:06
If you answered that the Gain knob with toggle between 0 and 100%, you’re wrong. Wrong.
2:13
You see, the mute button expresses itself in a few different ways: textually and numerically.
2:20
It has two possible states – on and off.
2:23
Textually, these are represented by the string of "muted" and "unmuted,"
2:28
but numerically these are represented by the binary values of 1 and 0.
2:34
Meanwhile, the Gain Knob has a numeric range of -100 to 20,
2:39
so it’s going to accept a numerical value as an input. That means that when you toggle this mute button,
2:45
you’ll end up toggling the Gain knob between the values of 0dB and 1dB,
2:50
which definitely is not muting and unmuting the control.
2:55
It all comes down to understanding how each control expresses itself.
3:00
The "File Name" control, for instance, is the Text field where you select the audio file you want to play.
3:06
This control wants to be fed a text string.
3:09
If you wired the Mute button to the File Name, it’s going to look for audio files
3:12
on your Core named "Muted" or "Unmuted," which probably aren’t going to exist.
3:19
The key to successfully wiring control pins together is to just think logically,
3:24
and make sure you’re connecting controls that make sense together.
3:28
If you’re in Emulation Mode or on the Core, you can hover your mouse over any control pin to read its current state,
3:34
which should give you a good idea of the type of data it would pass along.
3:39
It’s definitely possible to make far more complicated interactions between these control pins,
3:43
and there are a lot of components in the Control Components branch
3:47
of the Schematic Library that let you do this. We’re not going to go into them in this Level One Course,
3:52
but it’s important that you know that they exist, so you have an idea of what’s possible later on.
3:58
There are simple things like delays and routers, you could use a Flip-Flop
4:03
to convert a trigger button into a toggle button, and you can even apply custom logic functions
4:08
or even scripting to make your controls do exactly what you want.
4:12
If you want to learn more about these components now, just select one and press F1 to bring up
4:17
up the Help file about it. Again, these are advanced concepts that you don’t need to know right now.
4:23
The only thing I do want to show you is the Custom Controls component.
4:28
This component allows you to generate blank controls that have no prior association.
4:34
Its control panel is entirely empty until you choose what types of controls you want it to have.
4:40
In its Properties panel you can choose a Control Type, and you’ll see a list of different styles.
4:45
There are a variety of knobs with different numeric ranges, an LED, a fader, here’s the Toggle Button
4:53
and the Trigger button … everything we talked about earlier.
4:56
Make a selection and that button appears in the control panel, and its control pin is ready to be wired.
5:03
Perhaps you want one trigger button that will start two Audio Players at the same time.
5:07
Simply wire your new button to the Play triggers of those two Audio Players.
5:16
We’re not going to go any deeper than that in Level One,
5:18
but you can probably start imagining some of the things you can accomplish with control pins.
5:23
Even without a Core, you can have a lot of fun experimenting with this in Emulation Mode, so have fun!