1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

Convolution Reverb IR location

Discussion in 'Scripting Workshop' started by Andrew Finch, Mar 8, 2021.

  1. Andrew Finch

    Andrew Finch NI Product Owner

    Messages:
    44
    Hey,

    I am currently having a play with the GUI scripts from the Kontakt Factory Library and was wondering how I can change this:

    _load_ir_sample(...
    !ir_path[%offset_reverb[$category_reverb]+get_control_par...
    (%subcat_menu_id[$category_reverb],$CONTROL_PAR_VALUE)]
    ,$reverb_slot,1)

    so instead of the IRs being loaded from the ir_samples folder in the resource container they can be loaded from any specified location on a windows pc, for example the normal documents folder. I can see in the manual that the area I have reded out is the thing that needs changing but I am not entirely sure what to! Essentially, I want to make sure the same effect is achieved but just pulling the samples from a different folder.
     
  2. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    You should just put the IRs you want to use in the Resources/ir_samples folder, then you can just refer to them by name (without extension).

    Of course, you cannot redistribute Kontakt factory library IRs.
     
  3. Andrew Finch

    Andrew Finch NI Product Owner

    Messages:
    44
    I am currently working on a sort of GUI template that I can use for all the samples I have made, I have integrated the IR samples of the Simplicity Bricasti collection but the total file size is something like 400mb which if I have duplicated for every one of my kontakt instruments will take up quite a lot of storage. I was thinking I could just have one version of the IRs that all my instruments can access rather than having a version for each one to save storage. My intention is to use it only on my personal computer and laptop. So is it worth setting up a master location because I haven't got a lot of space particularly on my laptop.
     
    Last edited: Mar 8, 2021
  4. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    In that case, place your IRs at %DOCUMENTS%\Native Instruments\Kontakt 5, or just \Kontakt in case of Kontakt 6. Then load IRs simply by using get_folder($GET_FOLDER_LIBRARY_DIR) & "ir_samples/" & filename.extension.
     
  5. Andrew Finch

    Andrew Finch NI Product Owner

    Messages:
    44
    so replace all of this: (!ir_path[%offset_reverb[$category_reverb]+get_control_par...
    (%subcat_menu_id[$category_reverb],$CONTROL_PAR_VALUE)]

    with get_folder($GET_FOLDER_LIBRARY_DIR) & "ir_samples/" & filename.extension? Then if I have done declare !ir_path[134] in my script for all the IRs do I just do get_folder($GET_FOLDER_LIBRARY_DIR) & "ir_samples/" & !ir_path[134]
     
    Last edited: Mar 8, 2021
  6. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    Depends how things are declared in !ir_path, but roughly yes.
     
  7. Andrew Finch

    Andrew Finch NI Product Owner

    Messages:
    44
    That's great, i'll try that out. Thanks for your help!