Skip to content
FunkybotsEvilTwin edited this page Jul 29, 2020 · 4 revisions

TrackPan

Here is the basic syntax TrackPan assigned to a single Rotary parameter...

	Rotary			TrackPan "0"

Now, notice the number after TrackPan...

The numbers are for the LED ring displays on the MCU style encoders:

  • 0 means a single led -- perfect for Pan
  • 1 means fill from right edge - centre single -- fill to left edge perfect for Width or EQ boost/cut
  • 2 - left right fill -- good for level
  • 3 - spread -- good for Q

TrackPan + RotaryPush to Switch Between Pan and PanWidth Zones

The below example (from the MCU.zon) is a little more involved. It shows us how we'd use TrackPan by default on the encoders of an 8-channel surface, then use the RotaryPush widget to flip each channel's rotary encoder between Pan and PanWidth zones. This allows you to use the one Rotary to control both Pan and PanWidth by simply toggling a button.

Zone Home
	IncludedZones
		"Channel|1-8"
	IncludedZonesEnd
ZoneEnd

Zone "Channel|"
	RotaryPush| 			GoZone PanWidth|
	Rotary| 			TrackPan "0"
ZoneEnd

Zone "Pan|1-8"
	TrackNavigator
	Rotary| 	TrackPan "0"
	RotaryPush| 	GoZone PanWidth|
ZoneEnd

Zone "PanWidth|1-8"
	TrackNavigator
	Rotary| 	TrackPanWidth "1"
	RotaryPush| 	GoZone Pan|
ZoneEnd