Old 06-18-2017, 09:41 AM   #1
Alsion
Human being with feelings
 
Alsion's Avatar
 
Join Date: Dec 2006
Location: Germany
Posts: 137
Default Shortcut to select specific input

Hi there,
is there any way to select a specific input of my given interface for recording?

I have an interface with 16 inputs and like to select the input for recording via a simple keystroke or a button on a custom toolbar.

So far I didn't see anything that would fit in the Action List. Or did I miss something?
Alsion is offline   Reply With Quote
Old 06-18-2017, 08:00 PM   #2
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 551
Default

Hi

Use these

Attached Files
File Type: rar EXT - Set Input Channel (pack).rar (12.0 KB, 17 views)
__________________
Hope Sacred Passion Life Night Ache Soft Light
Outboarder is offline   Reply With Quote
Old 06-19-2017, 06:20 AM   #3
Alsion
Human being with feelings
 
Alsion's Avatar
 
Join Date: Dec 2006
Location: Germany
Posts: 137
Default

Awesome, thanks! That is exactly what I was looking for!
Alsion is offline   Reply With Quote
Old 06-19-2017, 06:59 AM   #4
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 3,953
Default

@Outboarder
Hi !
Is that your scripts ?

Do you have a GitHub repo ?

I don't see what is the original source of these scripts (not on GitHub or on Stash) :/
X-Raym is offline   Reply With Quote
Old 06-19-2017, 07:42 AM   #5
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 551
Default

Hi XRaym

Actually these are my scripts with EXT prefix.
I have near 200 tiny scripts , Have to gather them all and put them in the GitHub , first I have to figure how to make them compatible with Reapack , I'll contact you for instruction if I couldn't find out.

Thanks a lot
__________________
Hope Sacred Passion Life Night Ache Soft Light
Outboarder is offline   Reply With Quote
Old 06-19-2017, 12:05 PM   #6
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 3,953
Default

@Outboarder
200 ! Oh yes, please, it will be nice !
Dont hesitate to contact me or cfillion for that,
You can also check reapack-index wiki
http://github.com/cfillion/reapack-i...-Documentation

Side question : what EXT means ?
X-Raym is offline   Reply With Quote
Old 06-19-2017, 01:29 PM   #7
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 551
Default

Great
EXT comes from external but I will change it to OTB for Github.
I learned a lot from you , I started scripting after I watched your Reascript tutorial ,very useful.

currently I'm moving to new home, the moving process takes time(10 days), after that I'll create the repository.

best regards
__________________
Hope Sacred Passion Life Night Ache Soft Light
Outboarder is offline   Reply With Quote
Old 06-19-2017, 04:38 PM   #8
X-Raym
Human being with feelings
 
X-Raym's Avatar
 
Join Date: Apr 2013
Location: France
Posts: 3,953
Default

@Outboarder
Thanks, glad it has been useful to you ! Cant wait to see what you did hehe
Good luck with moving all your stuffs ! Cheers !
X-Raym is offline   Reply With Quote
Old 06-19-2017, 05:00 PM   #9
cfillion
Human being with feelings
 
Join Date: May 2015
Location: Québec, Canada
Posts: 1,142
Default

Quote:
Originally Posted by Outboarder View Post
I have near 200 tiny scripts , Have to gather them all and put them in the GitHub , first I have to figure how to make them compatible with Reapack
reapack-index can help you reduce the amount nearly-identical tiny files. For example in your .rar above where you have 16 mono input scripts: these can be reduced to only one actual file in git.

This is done by setting the metadata to tell ReaPack to make multiples copies of the file when it's being installed:
Code:
-----------------------------------------------------------
-------------    Set Input Channel (Mono)     -------------
-----------------------------------------------------------
-------  Outboarder        @2017       Reaper 5.50  -------
-----------------------------------------------------------
-- @version 1.0
-- @description Set Input Channel (Mono)
-- @author Outboarder
-- @metapackage
-- @provides
--   [main] . > EXT - Set Input Channel (Mono)(1).lua
--   [main] . > EXT - Set Input Channel (Mono)(2).lua
--   [main] . > EXT - Set Input Channel (Mono)(3).lua
--   [main] . > EXT - Set Input Channel (Mono)(4).lua
--   [main] . > EXT - Set Input Channel (Mono)(5).lua
--   ...and so on to 16...

-- extract input number from action filename
local filename = ({reaper.get_action_context()})[2]
Input_Mono = tonumber(filename:match("%((%d+)%).lua$"))

-- script code
Count_Tracks = reaper.CountSelectedTracks(0)
for i = 0 ,Count_Tracks-1 do
  
    Media_Track = reaper.GetSelectedTrack(0,i) 
    if Media_Track ~= nil then
    
    reaper.SetMediaTrackInfo_Value( Media_Track, 'I_RECINPUT' , Input_Mono-1 )    
  end
end
reapack-index/wiki/Examples#multiple-slots

Last edited by cfillion; 06-19-2017 at 05:11 PM.
cfillion is online now   Reply With Quote
Old 06-19-2017, 06:10 PM   #10
Outboarder
Human being with feelings
 
Outboarder's Avatar
 
Join Date: Feb 2014
Posts: 551
Default

Quote:
Originally Posted by cfillion View Post
reapack-index can help you reduce the amount nearly-identical tiny files. For example in your .rar above where you have 16 mono input scripts: these can be reduced to only one actual file in git.
Clever solution.
Thanks cfillion for awesome info. I'll follow the wiki link.
__________________
Hope Sacred Passion Life Night Ache Soft Light
Outboarder is offline   Reply With Quote
Reply

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 03:18 PM.


Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.