1. Hi everyone,

    Apple just released Logic Pro 10.5 for MacOS 10.15. We found out that Crush Pack, Mod Pack, Replika, and Replika XT will crash.

    Our teams are currently working on a fix, and we hope to have this out to you as soon as we can!

    Best wishes, 
    The NI Team

    Dismiss Notice

optimizing DRY/WET RR Patch

Discussion in 'Scripting Workshop' started by Shenk, Jul 22, 2014.

  1. Shenk

    Shenk New Member

    Messages:
    2
    Hello,
    I am trying to build a simple sample patch which should do the following:
    90 Samples "Wet"
    90 Samples "Dry"
    2-Knob Mixer
    3 Keys Trigger (30 Samples "Dry" & 30 Samples "Wet" in RR Round Robin Cycle)

    I would like to press a key, it should play the same sample "Wet" and "Dry" in RR and I like to have the ability to mix them together.
    Please see the following example. Basically it does what I want, but I can't find a better way for all samples and keys.
    It has just 8 groups, 1-4(Dry) and 5-8(Wet)


    on init
    declare ui_knob $Volume0(0, 1000000, 1)
    set_text($Volume0,"Dry")
    declare ui_knob $Volume1(0, 1000000, 1)
    set_text($Volume1,"Wet")
    make_perfview
    end on

    on ui_control ($Volume0)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume0,0,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume0,1,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume0,2,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume0,3,-1,-1)
    set_knob_label($Volume0,get_engine_par_disp($ENGINE_PAR_VOLUME,0,-1,-1))
    end on


    on ui_control ($Volume1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume1,4,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume1,5,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume1,6,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume1,7,-1,-1)
    set_knob_label($Volume1,get_engine_par_disp($ENGINE_PAR_VOLUME,0,-1,-1))
    end on


    These are the problems:
    - To many lines for all groups if I extend it.
    - Group 1(the first sample) is always to quiet/touch sensitive (do I need some sort of reset here?)
    - I'd like to have the knob "Dry" in 0,0 position and the knob "Wet": on -∞ after instrument start.
    (Here the knobs position are 0 and do not affect the volume until I rotate them.

    I guess I am blind and can't see the right direction. Any help will be appreciated and sorry for my bad english..
     
  2. Frank Smith

    Frank Smith New Member

    Messages:
    7
    Code:
    on init
    make_perfview
    
    declare ui_knob $Volume0(0, 1000000, 1)
    set_text($Volume0,"Dry")
    set_knob_defval($Volume0,630000)
    make_persistent($Volume0)
    _read_persistent_var($Volume0)
    set_knob_unit($Volume0,$KNOB_UNIT_DB)
    set_knob_label($Volume0,get_engine_par_disp($ENGINE_PAR_VOLUME,0,-1,-1))
    
    declare ui_knob $Volume1(0, 1000000, 1)
    set_text($Volume1,"Wet")
    set_knob_defval($Volume1,0)
    make_persistent($Volume1)
    _read_persistent_var($Volume1)
    set_knob_unit($Volume1,$KNOB_UNIT_DB)
    set_knob_label($Volume1,get_engine_par_disp($ENGINE_PAR_VOLUME,4,-1,-1))
    end on
    
    on ui_control ($Volume0)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume0,0,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume0,1,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume0,2,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume0,3,-1,-1)
    set_knob_label($Volume0,get_engine_par_disp($ENGINE_PAR_VOLUME,0,-1,-1))
    end on
    
    on ui_control ($Volume1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume1,4,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume1,5,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume1,6,-1,-1)
    set_engine_par($ENGINE_PAR_VOLUME,$Volume1,7,-1,-1)
    set_knob_label($Volume1,get_engine_par_disp($ENGINE_PAR_VOLUME,4,-1,-1))
    end on
    

    Type it out all the way to 90.

    For the touch sensitive group one.
    Highlight group 1
    In the "Amplifier" section click "Mod"
    Right click and delete the things that pop up like "Envelope" or "velocity"
     
  3. Shenk

    Shenk New Member

    Messages:
    2
    Yes, that's it! It works like a charm.
    Thank you very much Frank!

    Thanks a lot..