View Single Post
Old 09-27-2017, 06:00 AM   #143
Geoff Waddington
Human being with feelings
 
Geoff Waddington's Avatar
 
Join Date: Mar 2009
Location: Dartmouth, Nova Scotia
Posts: 11,184
Default

It woiks !

Well, OK, hardwired and primitive, but here's where we are...

The engine works and is a bit under 300k in size, this is good.

I'll describe my hardwired setup, I think perhaps an example is the best way to describe the software.

Below is a line entry in
a proposed map file
describing a MIDI surface called
Avid Mix 1 which has
8 faders and uses
MIDI channel 0 for input and
MIDI channel 0 for output

Other surfaces follow

"Avid Mix1" 8, 0, 0
"Avid Mix2" 8, 1, 1
"Softube Console 1" 0, 7, 6
"Avid Control" 4, 2, 2

Order matters, the tracks will be laid out consecutively on Avid Mix1, Avid Mix2, and Avid Control.

We can name actions for banking tracks and set a page size, here it is 20 since there are 8 + 8 + 4 faders:

Track_IncDecAction "Dec1" -1
Track_IncDecAction "Inc1" 1
Track_IncDecAction "DecPage" -20
Track_IncDecAction "IncPage" 20

Now let's hook some surface widgets up to trigger the actions:

PushButton_ControlSurfaceWidget "DecPage" 0x90 0x2e 0x7f
PushButton_ControlSurfaceWidget "IncPage" 0x90 0x2f 0x7f
PushButton_ControlSurfaceWidget "Dec1" 0x90 0x30 0x7f
PushButton_ControlSurfaceWidget "Inc1" 0x90 0x31 0x7f

The name Dec1 ties the midi message sent by the surface widget to a corresponding action.

When the button is pushed the action is invoked.

I preferred a different setup for the Mute, Solo, RecArm, and Select switches on my Avid Artist devices, and so i just switched the appropriate midi message numbers in the file to make it so.

On my setup, this is how it maps
Solo -> RecArm
Mute -> Select
RecArm -> Mute
Select -> Mute

All of this stuff taken together is called a map.

That is
Control Surfaces
--Widgets
--Channels
----Widgets

Reaper
--Actions
--Tracks
----Actions

All that is one map.

You can have many maps open and cycle between them.

Since there is no dedicated Master Track in my setup, I anchored the Master to the rightmost position (Channel 4 on the Avid Control), and yes folks, anchoring uses GUIDS

I setup the RecArm button on Channel 4 to cycle maps and built 2 (silly example) maps , one with RecArm enabled and one without.

I can now press RecArm on the Master to disable RecArm on the other channels.

I'm using a 215 track project (15 tracks with audio and 200 empty tracks ) as test case and switching maps is instantaneous.

Now we have to carefully select a file format for these maps that is easy for us to read and edit.

That won't happen today, but file format suggestions always welcomed, we want to get this right, so that older stuff isn't rendered useless down the road.

Once we have that, alpha testing can begin !
__________________
To install you need the CSI Software and Support Files
For installation instructions and documentation see the Wiki
Donate -- via PayPal to waddingtongeoff@gmail.com
Geoff Waddington is offline   Reply With Quote