Tutorialñcreating A Panel - CAKEWALK PRO AUDIO User Manual

Cakewalk
Table of Contents

Advertisement

You can display the actual value of an alias in almost any format, by
using a text widget. To do so, you create a string for the Label Þeld of the
text widget that contains some special characters, as listed in the
following table:
Special characters...
%d
%x
%04d
The format strings are similar to those deÞned in the C computer
language. Here are a few examples, given an alias value of 23:
Label...
%d
Volume = %d
Device ID = 0x%02x
I have %05d widgets!
Tutorial—Creating a Panel
In this section, we will create a panel from scratch in order to illustrate
the process. The sample panel will control three speciÞc parameters
found on any General MIDI deviceÑvolume, modulation, and sustainÑ
and add a few other widgets to display their values. To demonstrate how
this panel works, you will need to have at least one track of MIDI data
assigned to a General MIDI-compliant device in the Track view of the
current song.
How they are used...
These characters are replaced by the value, displayed
in decimal form.
These characters are replaced by the value, displayed
in hexadecimal form.
These characters are replaced by the value, displayed
in decimal form, with exactly four digits displayed. The
0 indicates that the following number 4 is the desired
number of digits.
Display...
23
Volume = 23
Device ID =0x17 (this is hexadecimal)
I have 00023 widgets!
11-37

Advertisement

Table of Contents
loading

Table of Contents