|
|
|
06-18-2017, 09:41 AM
|
#1
|
Human being with feelings
Join Date: Dec 2006
Location: Germany
Posts: 212
|
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?
|
|
|
06-18-2017, 08:00 PM
|
#2
|
Human being with feelings
Join Date: Feb 2014
Posts: 834
|
Hi
Use these
|
|
|
06-19-2017, 06:20 AM
|
#3
|
Human being with feelings
Join Date: Dec 2006
Location: Germany
Posts: 212
|
Awesome, thanks! That is exactly what I was looking for!
|
|
|
06-19-2017, 06:59 AM
|
#4
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,874
|
@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) :/
|
|
|
06-19-2017, 07:42 AM
|
#5
|
Human being with feelings
Join Date: Feb 2014
Posts: 834
|
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
|
|
|
06-19-2017, 12:05 PM
|
#6
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,874
|
@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 ?
|
|
|
06-19-2017, 01:29 PM
|
#7
|
Human being with feelings
Join Date: Feb 2014
Posts: 834
|
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
|
|
|
06-19-2017, 04:38 PM
|
#8
|
Human being with feelings
Join Date: Apr 2013
Location: France
Posts: 9,874
|
@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 !
|
|
|
06-19-2017, 05:00 PM
|
#9
|
Human being with feelings
Join Date: May 2015
Location: Québec, Canada
Posts: 4,937
|
Quote:
Originally Posted by Outboarder
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.
|
|
|
06-19-2017, 06:10 PM
|
#10
|
Human being with feelings
Join Date: Feb 2014
Posts: 834
|
Quote:
Originally Posted by cfillion
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.
|
|
|
01-28-2022, 01:02 AM
|
#11
|
Human being with feelings
Join Date: Feb 2014
Posts: 13
|
is there any script to change audio input to midi? because everytime i dragged a midi file, the track always an audio track
thanks in advance
|
|
|
01-28-2022, 05:17 AM
|
#12
|
Human being with feelings
Join Date: Dec 2012
Location: Germany
Posts: 3,012
|
Quote:
Originally Posted by odod
is there any script to change audio input to midi? because everytime i dragged a midi file, the track always an audio track
thanks in advance
|
save this code as a LUA file and import the script into Reaper:
Code:
-- Set the selected track(s) to MIDI input
local midi_channel = 0
-- Get the number of selected tracks
local num_tracks = reaper.CountSelectedTracks()
-- If we don't have any selected tracks, abort the script
if num_tracks == 0 then
return
end
-- Keeps Reaper's undo history tidy
reaper.Undo_BeginBlock()
-- The selected tracks are numbered from 0
for i = 0, num_tracks - 1 do
-- Get the track's info
local track = reaper.GetSelectedTrack(0, i)
--[[
reaper.SetMediaTrackInfo_Value( tr, parmname, newvalue )
I_RECINPUT : int * : record input.
<0 = no input,
0..n = mono hardware input,
512+n = rearoute input,
1024 set for stereo input pair.
4096 set for MIDI input,
if set then low 5 bits represent channel (0=all, 1-16=only chan),
then next 5 bits represent physical input (63=all, 62=VKB)
]]--
reaper.SetMediaTrackInfo_Value(track, "I_RECINPUT", 4096 | 0 | (20 << 5))
end
reaper.Undo_EndBlock("Set selected track(s) to input Vmidi1", 1)
You'll have to replace the "20" in "reaper.SetMediaTrackInfo_Value(track, "I_RECINPUT", 4096 | 0 | (20 << 5))" by the ID of your MIDI device and change "Vmidi1" in the last line to the name of your device.
.
|
|
|
01-28-2022, 11:21 AM
|
#13
|
Human being with feelings
Join Date: May 2017
Posts: 3,201
|
Another option - create a 'default project' template with the input routing (and lots of other stuff) already set up. Saves tons of time. (Assuming time has mass )
|
|
|
Thread Tools |
|
Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 02:49 AM.
|