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

Multiple groups to one volume control

Discussion in 'Scripting Workshop' started by iamaskeleton, Feb 4, 2014.

  1. iamaskeleton

    iamaskeleton New Member

    Messages:
    9
    Hi guys :)

    I'm looking to building my own basic sampler with volume controls for varying mic distances. I'm also recording multiple snare samples to be used at varying velocities. At the moment I have 3 snare samples with 2 recordings of each, one close and one distant. The samples are all in individual groups so that i can use the round robin function. I've made it so that when, for example, close 1 plays, so does far 1, and when close 2 plays so does far 2 etc. They are all mapped to the same key. I was just wondering if there was a simple script i could use to send the close samples to one volume knob, and the far ones to another. I've tried searching the web but the closest thing i could find only showed how to send one group to a volume control and another group to another.

    If anyone could help me i would be greatly appreciated :D

    Thanks!
     
  2. loraxman

    loraxman NI Product Owner

    Messages:
    8
    I am trying to find out how to do "how to send one group to a volume control and another group to another." Where did you find this?
     
  3. Big Bob

    Big Bob Forum Member

    Messages:
    606
    You can use the group volume control engine parameter, something like this:

    on init
    ``message("")
    ``declare ui_knob $Vol_0(0, 1000000, 1)
    ``declare ui_knob $Vol_1(0, 1000000, 1)
    end on

    on ui_control($Vol_0)
    ``set_engine_par($ENGINE_PAR_VOLUME,$Vol_0,0,-1,-1)
    ``set_knob_label($Vol_0,get_engine_par_disp($ENGINE_PAR_VOLUME,0,-1,-1))
    end on

    on ui_control($Vol_1)
    ``set_engine_par($ENGINE_PAR_VOLUME,$Vol_1,1,-1,-1)
    ``set_knob_label($Vol_1,get_engine_par_disp($ENGINE_PAR_VOLUME,1,-1,-1))
    end on



    Vol_0 will control the volume of group 0 and Vol_1 will control the volume group 1.

    Rejoice,

    Bob