MUSC 108. Introduction to Music Technology - Fall 2013

03Lab7 - Stereo Pan

[Overview [Syllabus]

This lab introduces the MIDI Pan Control message. Pan, stereo pan, or panorama, refers to the placement of sound from far left or far right as you face the source. For example when you're facing an orchestra the violins are usually on the left, the violas are in the center, and the cellos are on the right.

MIDI Control Message 10 (Stereo Pan)

MIDI Control Message 10 adjusts the left/right placement of sound.

Controller Name status data1 data2 Notes
    Control number Control value  
Stereo Pan $Bn 10 0-127 0 is far left
64 is center
127 is far right

Copy the data from the 03Lab1 and paste it into 03Lab7 at cell A1. Sort the data in cells A2:D59 to separate the NON from the NOF messages.

sort status descending

Create a workspace for the Pan messages

Copy the NON data, cells A2:D30. Paste into cell A61. Use A61:D89 to create the MIDI Control Pan (10) messages.

Create the MIDI Control Pan (10) messages

You want the song to start panned hard left and end panned hard right. Follow the same procedure you used for 03Lab5 to create the Volume Control messages

Change the Status byte to the MIDI Control message

Change all Status bytes B61:B89 to $B0. All control status bytes begin with B followed by the channel number.

Change Data1 bytes to 10 (Pan control)

Change all data1 bytes C61:C89 to 10. The data1 byte is the type of control message, Pan = 10.

Create the Pan messages

The Increment Value Formula

Assign these values to these variables

The increment value formula is:

(endPan - startPan) / numCells

Calculate it in an empty cell.

Increment formula   =  4.53571429

Copy the result 4.53571429.

Use The Fill Series Command To Create A Series

Type 0 (zero) into D61. Select D61 and Choose Fill->Series from the Edit menu. Paste 4.53571429 into the Step value. Use the Fill Series command to create the series.

Use the ROUND function to convert to integer values. Enter this formula into cell F62, =ROUND(D62,0)

Excel ROUND formula

Copy E62 and paste the formula into E63:E89. The results should look like this.

Rounded pan values

Copy E62:E89. Paste Special by Values into D62.

Sort into MIDIDisplay order

Select A1:D89. Choose these settings and click OK.

sort time status

Play in MIDIDisplay

Paste the Excel data into MIDIDisplay and click the Play button. Adjust the tempo as desired. You should hear the scale start left, move to center as it reaches the highest note, and move to the right as it descends. It will be more noticeable listening through headphones.

Ping Pong Stereo

This effect will bounces the sound from left to right on each note. Copy the data in cells A1:D88. Paste into Cell A91. Label Cell A90 as "Ping Pong Stereo"

Stereo ping pong

Select A91:D178. Sort the data to separate the B0's.

sort status ascending

The B0's should now be in cells B150:B178. Enter 0 into cell D150, enter 127 into cell D151. Copy both cells, D150:D151.

Copy paste ping pong data

Select cells D152:D178 and paste. The result should be:

Ping pong results

Sort the data in cells A91:D178 back into MIDIDisplay format.

sort time status

Create Two Reset All Controllers Messages

First MIDI Message

Insert a new row above A92. Enter the Reset All Controllers message as the first MIDI message.

Reset all controllers message at beginning

Last MIDI Message

Enter the Reset All Controllers message as the last MIDI message. Use a time stamp of the last NOF + 1000.

Reset all controllers message at end

Play in MIDIDisplay

Paste the data from cells A91:D180 into MIDIDisplay and click the Play button. Adjust the tempo as desired. You should hear the scale notes bounce between left and right. It will be more noticeable listening through headphones.

[Overview [Syllabus]

Revised John Ellinger, January - September 2013