How to send Program Change messages out to hardware devices and other applications

How to send Program Change messages out to hardware devices and other applications

In this article we’ll show you how to send Program Change messages out to hardware devices and other applications.

Gig Performer 4 introduces improved support for sending out MIDI to your hardware MIDI devices and external applications. For example, Gig Performer 4 introduced the MIDI Helper Tool. Further, while in Gig Performer 3 bank select fields were combined into a single number (MSB * 128 + LSB to determine the actual number to use), in Gig Performer 4 you specify MSB and LSB values separately, the same way that most hardware handles bank select.

In the following sections we will cover different approaches to sending out program change (PC) messages (check out our user guide to learn more about program change and control change messages). To demonstrate what MIDI messages are sent out, we’ll use the free application MIDI Monitor for Mac (alternatively we recommend the free application MidiView, available for both Windows and macOS).

Let’s get started!

1. How to send out a program change message when you select the desired rackspace

.
Install the MIDI Monitor app as usual and run it:

MIDI Monitor acts as a destination for other programs. Gig Performer recognizes it as MIDI Out

Expand Sources and then tick the option Act as a destination for other programs (as indicated with the red rectangle). When you run Gig Performer you will notice a new MIDI Output port in MIDI Ports Options (as indicated with the yellow rectangle).

In Gig Performer, click on the Wiring view and insert that MIDI Out block (click here if you need help inserting plugins):

MIDI Out Block and its plugin editor

When the MIDI Out block’s plugin editor opens, note the section called MIDI data to send when you switch to this rackspace (as indicated with the red rectangle). Under Program change messages tick the Program Change check box, and optionally the Bank select checkbox where you can enter the desired MSB and LSB values.

Every time you change any of the values in the MIDI Out plugin editor, they all get sent out so you can immediately see the changes. Try it: click on the edit box where “1” is already specified and just confirm this value by pressing the Enter key:

Gig Performer sends out MIDI program change message with MSB and LSB

On the screenshot above are displayed MIDI Monitor (A) and MidiView (B) windows (for those who decided to install MidiView, which was also recommended at the beginning of an article).

You may wonder why the outputs are different (on A you can see the PC 1, and on B you can see the PC 0 displayed).

Here are the reasons:

  • MIDI Program Changes always go from 0 to 127.
  • Some hardware and software devices count the first program change as PC0 (the range is 0-127) and the others as PC1 (the range is 1-128).
  • Gig Performer by default displays 1 as the first program change and that behavior can be changed in the Global MIDI Options – turn on the Use zero-based PC numbers toggle button if you want to display 0 instead of 1 for the first program change message (so the scope is 0-127 instead of 1-128). Note: regardless of how Gig Performer displays the first program change, under the hood the first program change is always 0 (as mentioned in the first bullet point).
  • The “Other MIDI messages to send” section and the MIDI Helper Tool (which will be mentioned shortly) always use the “pure MIDI” values (0-127) regardless of how you set Gig Performer to display the first program change.

.
So, what happened in the screenshot above (Gig Performer is set to the default options)?
– In (A), Gig Performer displays 1, but sends 0 under the hood. The MIDI Monitor app gets 0 and displays it as 1 (it displays the first program change – which is internally 0 – as 1).
– In (B), Gig Performer displays 1, but actually sends 0 and the MidiView app gets 0 and displays it as 0.

Feel free to experiment with sending out different PC messages and see the results. Every time that you switch to this particular rackspace, the specified program change message and/or MSB/LSB values will be sent out to your hardware device or application.

Alternatively, you can send out PC messages using the MIDI Helper Tool to create the messages. Notice the “Other MIDI messages to send” section; when you click on the Edit… button, the MIDI Helper Tool will open:

MIDI Helper Tool in Gig Performer

Clicking on the Add new MIDI Event button will open a new window where you can specify the desired MIDI messages (check the user manual to learn more).

MIDI Helper Tool Select MIDI messages

For example, if you want to replicate the MIDI messages from A (see one of the screenshots above) so the MIDI Monitor shows the same output as in A, enter messages like shown on the screenshot above. Note that bank select messages (MSB and LSB) are just control change messages CC0 and CC32 (these are the only CC messages that are deliberately by Gig Performer). Afterward, click on the Close button.

Other MIDI messages to send and MIDI monitor output

Click on the Send Now button to see the results in the MIDI Monitor.

2. How to send out a program change message when you select the desired variation

.
In this example we’ll take advantage of the MIDI Out’s plugin parameter and send out PC 0 in the first variation, PC 1 in the second variation and PC 2 in the third variation. First make sure that the MIDI Out (MIDI Monitor) plugin is inserted in the Wiring view. Then go to Edit mode in the Panels view and insert a Plastic Blue Knob. Select the MIDI Out block plugin and its PC parameter as indicated in the screenshot below:

PC (Program Change) parameter in the MIDI Out plugin in Gig Performer

Create two more variations and name them Variation 2 and Variation 3 respectively (click here to learn more). Afterwards, click the Variation 2 and enter Edit mode; select the Plastic Blue Knob, then click on the Value tab and type in 1m as the Widget value (NB: you can enter values using MIDI numbers by adding the letter “m” at the end of the value. For example, if you type in “64m”, Gig Performer will interpret it as an exact value of 50.39 (roughly 50% of the maximum MIDI value of 127)).

Similarly, in the Variation 3 type in 2m as the widget value and press the Enter key. Test your configuration: select the first, second and the third variation respectively:

Variations send program change messages (PC messages) in Gig Performer

Note: while you can also send out bank select messages through variations (CC0 and CC32), keep in mind that they must be sent out before sending a PC message. As there is no guarantee that bank select messages will be sent out before a PC message, we recommend that you don’t use these three parameters simultaneously. 

However, you can arrange for bank select messages to change through variations, and then send program changes from your MIDI controller. See the following section to learn more.

3. How to pass-through program change messages from your MIDI input

.
A convenient way of sending program change messages is using your MIDI controller. If your MIDI controller can send out program change messages, then you can connect the MIDI In block to the MIDI Out block and send out these PC messages to the external hardware or applications.

Click on the Wiring View and connect the MIDI In (OMNI) block to the MIDI Out block. Afterwards, open the MIDI Out’s plugin editor:

Pass through program change messages - MIDI In to MIDI Out plugin

By default, the MIDI Out blocks program change messages that it receives. To pass PC messages, make sure to tick the Pass Program Change messages checkbox. 

Try sending out a PC message from your MIDI controller.

Note that MIDI In blocks also have the PC parameter, so you can send PC messages out using widgets and techniques that are already demonstrated in the previous section. 

4. How to send out a program change message when you select the desired song part

.
Clicking on a song part can also send program change messages:

Song part can send PC (program change messages) out to external hardware

Check our user manual to learn more.

Clicking on the Edit… button opens the MIDI Helper Tool and you can easily add MIDI events, using steps that are provided in the section 1. 

Instrument definition file support

.
Rather than just using PC and bank numbers, clicking on the Set PC From Patch Name button in the MIDI Out block allows you to select the PC and bank numbers to be sent out using patch names defined in instrument definition file (INS file) if available for your hardware synth when switching to the current rackspace:

 

INS files (Cakewalk Instrument Definition Files) in Gig Performer

Simply click on the Set PC From Patch Name button (1) to open the Instrument Definitions window; click on the Load… button (2) and then select the desired INS file. Afterwards, click on the drop-down menu to select the desired bank (3) and optionally tick the Send on Select check box (4) if you want to send bank select and PC messages immediately when you select the desired patch name, i.e. Distortion Guitar. The resulting output in the MIDI Monitor application is indicated with the red arrow. Gig Performer will set the correct PC, MSB and LSB values and show the patch name (indicated with the blue rectangle).

Experiment! 

.
Make use of these different techniques presented in this article and build your own versatile and creative setup. You can also combine various options from different plugins. For example, consider the following setup:

– Create a new rackspace and three variations. 
– Insert a MIDI Out block and in its plugin editor check only the Bank select check box (don’t check the Program Change checkbox).
– Connect the MIDI In (OMNI) to the MIDI Out block.
– Insert a knob and map it to the PC parameter of the MIDI In (OMNI) block.
– Set variations 1, 2 and 3 to send PC0, PC1 and PC2 to respectively.
– Duplicate this rackspace, and in the MIDI Out block, change MSB to 1 and LSB to 1.

Here are the results when you click on the first rackspace, then on each variation, and then on the second rackspace and each of its variations: 

Experiment-with-Program-Changes-MIDI-Monitor

In this example we arranged to send bank select messages before the PC messages (that a knob sends in different variations). So, when the first rackspace is activated, the bank select messages (MSB: 0 and LSB: 0) are first called and then program change messages (all MIDI messages related to the first rackspace are indicated with the red rectangle).

When you click on the second rackspace, the banks change, so every coming PC message is now bound to MSB 1 and LSB 1 (all MIDI messages related to the second rackspace are indicated with the blue rectangle).

More explanation and useful information:

  • If you have a MIDI Out block in your rackspace, when you switch to another rackspace, you’ll see All Notes Off and Hold Pedal messages.
  • Consider banks (MSB and LSB) as states – you send them and they are stored. So, if you need to send your PC message to the different bank, you need to send MSB and LSB before sending the program change messages (it doesn’t matter in which order MSB and LSB messages are sent, it’s only important that they are sent before a PC message).
  • You can of course send program change messages without sending MSB and LSB messages in which case the associated patch will be selected from the current bank.
  • The MSB and LSB (if needed) values are typically remembered by the receiving synth so there is no need to resend one of them if the value hasn’t changed. 

.
Note
: you can also use GPScript to cover the most sophisticated use cases for your live performance. Please visit our community to share with us your use case or if have questions about approaches presented in this article.

If you like this article, please share it and spread the word.

Own the Stage® with Gig Performer®.

Nemanja Pudar

.
Related topics:
Backstage With Gig Performer – MIDI in and MIDI out Blocks (Youtube)
Rackspaces vs Program Changes

 



Scaling curves allow you to control the shape of the output of a widget or convert an incoming note velocity to a new velocity. Various predefined curves are available and they can be tweaked as necessary. You can also just draw your own curve as well to achieve the effect you require.

 

MIDI File Player Plugin


You can load up to 128 MIDI song files in a single plugin instance. Switch from one song to another, mute tracks and/or change their channel numbers. Tempo can be controlled by individual songs or you can use the global tempo and tap tempo to control the BPM interactively.

 

Favorites and Presets


Create a sound by placing and interconnecting your desired plugins, such as a synth, some effects and perhaps a mixer. Select them all and then save the selection as a named favorite. The favorite will subsequently show up in all plugin insert menus, making it easy for you to recreate that configuration whenever you need it again. This feature is also very powerful for creating your needed sounds on your studio computer and then transferring them to your touring laptop.

 

Probabilistic Sound Designer


Parameters you select in an open plugin are captured into the Probabilistic Sound Designer dialog window. When you click Randomize, you're only adjusting those selected parameters. Each entry in the PSD dialog has a curve but unlike widgets where the curve controls scaling, in the PSD the curves are used to define the probability of particular values being selected. Make sure the filter cutoff never gets too slow so as to block all sound. Perhaps adjust the max range of the VCA attack parameter so that the sound doesn't have too much delay. Constrain the octave ranges of the oscillators, perhaps ensuring that 1/3rd of the time we select 8' and 2/3rds of the time we select 4'. The possibilities are endless.

 

More Widgets


Numerous new widgets are included in Gig Performer - a new sustain pedal, plastic knobs, drum pads and more colored sliders. Shapes can be colored with different borders and fill colors and morphed from rectangular to circular. Your creativity is now the limit to creating fabulous front panels in Gig Performer.

 

MIDI Message Helper


Select MIDI devices by name. Choose the MIDI message type and adjust the appropriate parameters for the specific type

 

  

Layout management


Gig Performer supports arbitrary resizing. Layout your widgets the way you want - resize the main window and the widgets will grow or shrink as necessary to maintain the same interrelationships. No matter what size screen you have, your front panels will still be neat and usable.

 

Undo Support


If you move your widgets around and/or resize them, or even delete them by mistake, the Undo facility will correct your mistake. Minor moves to a widget by mistake will no longer spoil your design

 

Plugin Channel Count


Some plugins support a large number of outputs and they depend on the traditional channel strip to control how many ports should be available.   When you only need a stereo pair, it is convenient not to have a large horizontal block. In Gig Performer, the number of available ports  is controlled by the channel count override, which can be applied to individual plugins and will be remembered when the gigfile is reloaded or if the plugin is saved as a favorite.

 

Input muting and output fading


Rather than a single audio length tail, Gig Performer 4 gives you the ability to control input muting and output fading separately. Input muting controls how much time it takes for audio input to be silenced when you leave the rackspace. Output fading controls how much time will be taken for audio to fade out when you leave the rackspace.

 

Faster Plugin Finder


Instead of searching through menus of perhaps hundreds of plugins (you know who you are!), the Quick Plugin Finder makes it easy to find the plugin you need by simply typing partial strings. For example, as shown here, to find the Modartt Pianoteq 7 plugins, it's enough to type pia mod 7 (in any order, by the way)  to restrict the list of available plugins to those matching your query. The Quick Plugin Finder also knows about manufacturers, presets and favorites.

 

  

Touch Friendly Input


Any entry field can be changed by either dragging your mouse (or finger) up or down, or by using the large popup touchpad where you can just tap on the squares to enter a value. The large popup keypad also does validation so you can't enter an invalid value. You can also just tap the BPM field to pop up a larger view where you can quickly change tempo, tranpose, trigger Tap Tempo and enable Ableton Link, the last allowing you to synchronize Gig Performer with any other application that also supports Ableton Link.

 

New Tuner Display


The tuner view makes it easy for guitarists to quickly check and adjust their tuning. You can toggle into the tuner view from any other view and toggle right back as soon as you're done. All output will be silenced automatically while you're in tuning mode. You can adjust the concert reference pitch from its default of 440 Hz to suit your own needs. The tuner view fills the entire screen so you can easily see it from a distance.

 

GP Script Enhancements


GP Script adds new language improvements such as multiple initialization sections, initialization with declarations and enhanced callbacks. The WidgetValueChanged callback now supports multiple widgets. Sysex messages are now built-in with numerous supporting functions. String array handling is much faster. Integer bit manipulation is now built-in. A new global GigScript allows incoming MIDI messages to be modified and redirected on the fly. It also allows you to define keyboard macros for your computer keyboard to control Gig Performer itself. For complete information, please review the GP Script Language Manual available through the Help menu.

 

Scriptlets


Scriptlets make creating custom MIDI processors easy. You don't have to be a programmer to use them - you can just download scriptlets from our ever-growing collection on our website and drop them right into your rackspaces to use them. Use scriptlets for simple operations such as turning your single notes into chords, modifying, duplicating or converting one kind of message into another, automatic chord latching (AutoSustain), threshold detection, sysex manipulation... imagination is the limit.

 

Other Improvements


  • System Actions plugin
  • MIDI Out to OSC converter
  • Comment plugin
  • New GUI dialog to define MIDI events to send on song part change
  • MIDI Out blocks can automatically send multiple MIDI events
  • Open/close a plugin editor from a widget
  • Choose default startup view
  • Quick find for plugin parameters
  • Large collection of startup hints
  • OSC Patchbay mode
  • Plugins now default to stereo I/O
  • Dragging presets into the wiring view will automatically create the required plugin
  • Numerous other minor (but nice) usability and workflow enhancements

Numerous other enhancements and optimizations serve to make Gig Performer 4 a superb platform for performing artists.

 

Songs and Setlists


You can organize your rackspaces into songs and your songs into setlists and then just select the setlist you need for a show. Then simply cycle down through the parts, or use your control surface or a MIDI Guitar pedal controller to select individual parts directly.

 

Predictive Loading


Predictive Loading™ is an advanced feature that reduces your RAM and CPU resources by only loading rackspaces (or songs) as needed.

 

 

The Global Rackspace


The Global Rackspace can receive audio from whatever rackspace is currently active. Instead of inserting effects in every rackspace, simply insert them once in the Global Rackspace and all your local rackspaces will have access to them. The Global Rackspace can also send audio to the currently active rackspace. So you can insert a looper that receives audio directly from your guitar (say) and then send the looped audio to different effects in different rackspaces. If a particular instrument such as a piano or organ is needed everywhere (or almost everywhere), put it in the Global Rackspace.

 

   

Zoomable Wiring View


Gig Performer 4 provides a virtual view allowing you to spread out your blocks and connections to make them easier to see and manage, even if you have a very small screen. You can zoom in or out and you can use the Auto-Fit option to position your blocks to fit in the available space.