) - returns a fx-address from a list of 1-based IDs Would it be possible to add these functions to official API of Reaper?Įven if it's only working with a csv of the container-index-numbers?Ĭode: function get_take_fx_id_from_container_path(tr, idx1. (this is more work than it should be - we should make GetFXEnvelope() support container addreses, and probably add an API to auto-map parameters, but for now this will work for 7.0x at least.) Id = get_fx_id_from_container_path(track, 2, 1, 2, 1) - test hierarchyįxidx,fxparm = fx_map_parameter(track,id,5)Įnv = reaper.GetFXEnvelope(track,fxidx,fxparm,true) Reaper.TrackFX_SetNamedConfigParm(tr,cidx,string.format("param.%d.container_map.fx_parm",r),tostring(parmidx)) Reaper.TrackFX_SetNamedConfigParm(tr,cidx,string.format("param.%d.container_map.fx_index",r),tostring(fxidx - 1)) Local rok, r = reaper.TrackFX_GetNamedConfigParm(tr,cidx,"container_map.add") If tonumber(r) = parmidx then found = true parmidx = i break end Rok, r = reaper.TrackFX_GetNamedConfigParm(tr,cidx,string.format("param.%d.container_map.fx_parm",i)) Local rok, r = reaper.TrackFX_GetNamedConfigParm(tr,cidx,string.format("param.%d.container_map.fx_index",i)) Local cidx = get_fx_id_from_container_path(tr,table.unpack(path)) If curidx 0 then ret = remain end return ret end Local ccok, cc = reaper.TrackFX_GetNamedConfigParm(tr, rv, 'container_count')įunction get_container_path_from_fx_id(tr, fxidx) - returns a list of 1-based IDs from a fx-address Local sc,rv = reaper.TrackFX_GetCount(tr)+1, 0x2000000 + idx1 Function get_fx_id_from_container_path(tr, idx1.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |