View Single Post
Old 11-08-2019, 04:00 AM   #5265
Geoff Waddington
Human being with feelings
 
Geoff Waddington's Avatar
 
Join Date: Mar 2009
Location: Dartmouth, Nova Scotia
Posts: 3,997
Default

Quote:
Originally Posted by woodslanding View Post
An mst file from the stock csi install modified to have some primitive layout syntax (which csi would ignore, but the screen display could use.) The thought is that a user could put data into their mst file to match the physical positions of their controls, and the scribble strip toolbar would use that to place the controls onscreen.

It wouldn't have to integrate into the mst file, it's just an idea.... a proof of concept to see if I could parse such a file to extract layout data and place controls in the gui... I'm not a programming whiz, so that's encouraging

I'm still wondering if the list of control destinations in the currently active zone(s) is stored somewhere, or how else I might access it....
Ahh, Ok, it's usually not a good idea to alter file formats, but there is an easy solution, using the CSI naming convention.

Code:
Widget LayerA_RotaryPushA1
	Press 9a 00 7f
WidgetEnd
	
Widget LayerA_RotaryPushA2
	Press 9a 01 7f
WidgetEnd

...

Widget LayerA_RotaryA1
	Fader7Bit ba 01 7f
	FB_Fader7Bit ba 01 7e 0.5
WidgetEnd

Widget LayerA_RotaryA2
	Fader7Bit ba 02 7f
	FB_Fader7Bit ba 02 7f 0.5
WidgetEnd

...

Widget LayerA_ButtonB1
	Press 9a 08 7f
	FB_TwoState 9a 08 7f 8a 08 00 0.5
WidgetEnd

Widget LayerA_ButtonB2
	Press 9a 09 7f
	FB_TwoState 9a 09 7f 8a 09 00 0.5
WidgetEnd

...

Widget LayerA_ButtonC7
	Press 9a 16 7f
	FB_TwoState 9a 16 7f 8a 16 00 0.5
WidgetEnd

Widget LayerA_ButtonC8
	Press 9a 17 7f
	FB_TwoState 9a 17 7f 8a 17 00 0.5
WidgetEnd

Widget LayerA_Fader1
	Fader7Bit ba 09 7f
WidgetEnd
Where the letter A,B,C means row and the number 1-8, means column.
__________________
CSI - You can donate here: geoffwaddington.ca
Alpha software: https://stash.reaper.fm/v/36903/CSI%20alpha.zip
EuCon software: https://stash.reaper.fm/v/37947/reaper_csurf_EuCon.zip

Last edited by Geoff Waddington; 11-08-2019 at 04:29 AM.
Geoff Waddington is online now   Reply With Quote