Old 11-21-2017, 01:17 AM   #1
Human being with feelings
Join Date: Nov 2017
Posts: 1
Default Track Selection OSC

Hi all
I have the following situation:
I have an osc based controller (Lemur). It features a channel strip, which reflects the currently selected track. I have buttons to jump backward and forward. - All perfect.
Now, I would like to have 6 "shortcut" buttons, which can be assigned to the currently selected track (number).
Ex: I am currently at track 14, press shortcut 1 and track 14 is assigned to shortcut 1 button.
I jump to track 21, press shortcut 2 and track 21 is assigned to shortcut 2 button. - All perfect also.
The tracknumber is derived of TRACK_NUMBER s/track/number/str s/track/@/number/str
Meaning: Track number is a string.

But, if I press then such an assigned shortcut button, it should select the assigned track number:
oscout(0, '/device/track/select', sc0); (Lemur notation:
The variable "sc0" holds the assigned track number as string)
The problem here is, that reaper expects an interger value (DEVICE_TRACK_SELECT i/device/track/select t/device/track/select/@).

Lemur is currently not able to typecast from string to integer (as far as i know).

I tried to change TRACK_NUMBER s/track/number/str s/track/@/number/str to TRACK_NUMBER i/track/number/str i/track/@/number/str. But then, jumping back and forward does not work anymore ...

Any help is higly appreciated! :-)

My Setup:
Reaper: v5.62/64 with SWS: 2.9.7
OSX: 10.11.6

Last edited by arbitdec; 11-21-2017 at 01:33 AM. Reason: Version numbers
arbitdec is offline   Reply With Quote
Old 11-21-2017, 11:29 AM   #2
Human being with feelings
nolman's Avatar
Join Date: Feb 2008
Location: ghent, Belgium
Posts: 311

A=string + I should work in lemur
nolman is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -7. The time now is 10:58 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.