Kontakt intensity script

Discussion in 'Kontakt' started by Doctor Doubledrop, Jul 23, 2014.

  1. Doctor Doubledrop

    Doctor Doubledrop Noisemaker

    Joined:
    Dec 22, 2013
    Messages:
    51
    Likes Received:
    3
    Hi there.. if I have a filter in my instrument, and I add an envelope (1 mod) and a velocity (2 mod) in the cutoff.. what script I need to write to control the intesnity of the 2 modulation? I make the knob that control the intesity of the 1 mod but I'm not able to connect the other one mod..
     
  2.  
  3. Alraun

    Alraun Member

    Joined:
    Sep 17, 2012
    Messages:
    414
    Likes Received:
    13
    This tool could probably help you:

    Online Script Generator

    Drag and drop the needed controls and assign the parameters, effects a.s.o..

    Does your script include the "on note" callback for the event velocity ?

    If you would please let me/us take a look at your current script.....
     
  4. Alraun

    Alraun Member

    Joined:
    Sep 17, 2012
    Messages:
    414
    Likes Received:
    13
    [​IMG]

    In case you mean that you want to have an additional knob for the velocity parameter on
    the picture above, you can use a script like the following. Invert Velocity is included too.

    Ext. Mod. Intensity (Velocity) script:
    -------------------------------------------------------------------------------

    on init

    make_perfview
    set_ui_height (5)
    message ("")

    declare ui_slider $Velocity (0,1000000)
    set_control_par_str(get_ui_id($Velocity), $CONTROL_PAR_PICTURE, "pv_world_knob_small")
    move_control_px($Velocity,100,100)
    set_control_par(get_ui_id($Velocity), $CONTROL_PAR_MOUSE_BEHAVIOUR, -500)

    $Velocity := 500000

    declare ui_label $VelocityL(1,1)
    hide_part($VelocityL, $HIDE_PART_BG)
    set_text($VelocityL," Velocity")
    set_control_par(get_ui_id($VelocityL), $CONTROL_PAR_FONT_TYPE,16)
    move_control_px($VelocityL,90,140)
    end on

    on ui_control($Velocity)
    set_engine_par($ENGINE_PAR_EXTMOD_INTENSITY, $Velocity,0,0,0)
    end on

    ---------------------------------------------------------------------------
     
  5. Doctor Doubledrop

    Doctor Doubledrop Noisemaker

    Joined:
    Dec 22, 2013
    Messages:
    51
    Likes Received:
    3
    Thank u guys for your help :)

    Mattmckay.. what I need is what Alraun understand :) ..however I've upload a file (look at the end of the message) where u can see more accurately it..in the first tab there is my problem.. two knobs.. one for the cutoff ADSR intensity control and one for the cutoff velocity intensity control.. but in the way I wrote the script the velocity one don't control what I want but it control the intensity of the first mod of the second filter in the second group insert slot..
    then I watch your ADSR script and it's new for me.. I really like see other way for work so hoping is the same for u I've add my ADSR script in the second tab..

    Alraun.. u understand what I meant..thank u for the script, very nice knob that I'd never see.. however I think u write a wrong number on it because it doesn't work..

    http://www75.zippyshare.com/v/92039705/file.html
     
  6. Alraun

    Alraun Member

    Joined:
    Sep 17, 2012
    Messages:
    414
    Likes Received:
    13
    Here it works. :dunno:

    That knob is located in your kontakt factory pictures folder.....

    Later i will take a look at your script. Is it already repaired or still the broken one?
    Well, i will see...
     
  7. Doctor Doubledrop

    Doctor Doubledrop Noisemaker

    Joined:
    Dec 22, 2013
    Messages:
    51
    Likes Received:
    3
    Alraun! I'm silly! I understand why here don't work and for u yes..! u made a script that control the "Amp" velocity.. and I wasn't looking for the Amp one.. so yes.. here work too for the Amp! btw I need one that control the "Filter cutoff" velocity.. but with the modulation as 2 mod.. because the first "Filter cutoff" mod is assigned to the ADSR Envelope.. just look for the example I've uploaded for understand what I mean.. because my english is very shit and it's hard for u guys understand me I know.. :excl:

    Matt! thank u for your advice..! everytime u help me a lot! :)
    I've see your alternative script but seems to is different from the alraun one.. your knob work for the ADSR intensity and not for the velocity.. however as I've already said my english is shit and it's difficult to explain what I want.. :(

    The example is:
    2 filter in the group insert ,one in the first slot (0) and the other in the second slot (1)
    for each cutoff I've assigned a first mod for the ADSR and a second mod for the velocity
    but for each filter I managed to connect only the first mod intensity..
    I don't know if I need to change some number in the code or some word.. I think for a number.. I think the code is the same even if instead the velocity there be a ktr mod.. of course by changing all the decleared name.. but I'm a beginner so I can't be sure and at the end of the story I'm not able to connect what I need..

    Remix! hi there! u're welcome! is really from short time that I've started to deep into kontakt script.. but for sure I can say that is very glamorous!! :)
     
  8. Doctor Doubledrop

    Doctor Doubledrop Noisemaker

    Joined:
    Dec 22, 2013
    Messages:
    51
    Likes Received:
    3
    hey man.. really thanks.. :bow: tomorrow I'll check this! however finally after 2 hours I've found the right way to control the different intensity! :break: but for sure I'll look for your script tomorrow too! I was thinking about a thing.. is possible to move the position of the value of a knob? for example move it under the knob? I know how to move the text but not the value..
    p.s.: PM FOR U! :wink:
     
  9. Alraun

    Alraun Member

    Joined:
    Sep 17, 2012
    Messages:
    414
    Likes Received:
    13
    @Doctor Doubledrop, thanks for your feedback.
    I am glad too that the problem has been solved....and even more....thanks to mattmckay. :wink:
    Don't worry about language. It's quite good from my point of view. I am also not an Englishman.

    @mattmckay, Wow! Lots of impulses also for me. I am glad that you digged in. *yes*
    This topic should become renamed now into "Kontakt Scripting Intense" or something like that. :rofl:
    Btw. we still have no Kontakt Scripting section in the forum...

    When you guys talk about knob values...
    I want to throw my favorite mod module script - in action, lol - into the community ring.
    I am sure some members will find it useful. Customizable. Shows values. Fonts List included.
    The knob is made with....fanfare.....: JKnobman. Lol.

    Mod Module (ACHDSR) Script

    :mates:
     
  10. Doctor Doubledrop

    Doctor Doubledrop Noisemaker

    Joined:
    Dec 22, 2013
    Messages:
    51
    Likes Received:
    3
    ok.. I've finally move text and value too!! what a work!! when I'll finish my instrument I think I'll need to have some years of holidays..!!!!! :grooves:
    but... when I see the Alraun script i wanted to kill me..!! :wow:
    what a script!and nice knob too! :break:

    it's just what I was looking for.. but I don't know if I'll can useit because for me is not simply to understand.. but this evening I'll try!

    U guys are really sweet people.. difficult to find..! :thumbsup:
    maybe it could be really hot a script section in the forum!

    btw I show u my basic insignificant script.. :bleh:

    on init

    make_perfview
    set_ui_height (5)
    message ("")

    declare ui_slider $Velocity (0,1000000)
    make_persistent($Velocity)
    read_persistent_var($Velocity)

    set_control_par_str(get_ui_id($Velocity), $CONTROL_PAR_PICTURE, "pv_world_knob_small")
    set_control_par(get_ui_id($Velocity), $CONTROL_PAR_MOUSE_BEHAVIOUR, -500)
    set_control_par(get_ui_id($Velocity),$CONTROL_PAR_HEIGHT,32)
    set_control_par(get_ui_id($Velocity),$CONTROL_PAR_WIDTH,32)

    declare ui_label $Velocity_name(1, 1)
    hide_part ($Velocity_name, $HIDE_PART_BG)
    set_control_par_str(get_ui_id($Velocity_name),$CONTROL_PAR_PICTURE,"null")
    set_control_par(get_ui_id($Velocity_name),$CONTROL_PAR_FONT_TYPE,22)
    set_control_par_str(get_ui_id($Velocity_name),$CONTROL_PAR_TEXT,"Velocity")

    declare ui_label $Velocity_value(1, 1)
    hide_part ($Velocity_value, $HIDE_PART_BG)
    set_control_par_str(get_ui_id($Velocity_value),$CONTROL_PAR_PICTURE,"null")
    set_control_par(get_ui_id($Velocity_value),$CONTROL_PAR_FONT_TYPE,22)
    set_control_par_str(get_ui_id($Velocity_value),$CONTROL_PAR_TEXT,get_control_par(get_ui_id($Velocity),$CONTROL_PAR_VALUE))

    move_control_px($Velocity, 140, 76)
    move_control_px($Velocity_name, 133, 60)
    move_control_px($Velocity_value, 133, 115)

    end on


    on ui_control($Velocity)
    set_engine_par($ENGINE_PAR_EXTMOD_INTENSITY, $Velocity,0,0,0)
    set_control_par_str(get_ui_id($Velocity_value),$CONTROL_PAR_TEXT,get_control_par(get_ui_id($Velocity),$CONTROL_PAR_VALUE))
    end on


    THANK U AGAIN FOR YOUR HELP GUYS! HOPE THIS COULD BE ONLY A STARTER POINT FOR A NICE FRIENDSHIP! :mates:
     
  11. Doctor Doubledrop

    Doctor Doubledrop Noisemaker

    Joined:
    Dec 22, 2013
    Messages:
    51
    Likes Received:
    3
    Hey matt.. sorry for the delay.. it's from yesterday evening that I'm not well.. I don't want u think that I don't want to use your method.. the fact is that I don't understand it.. :snuffy:
    declare $grp_idx
    declare $env_idx
    $env_idx :=find_mod ($grp_idx,"VEL_VOLUME"))
    and I don't want to take advantage of your availability..tomorrow I'll try to understand your method by comparing the different scripts u sent me in these days.. I think I can.. I hope! :grooves:
    btw the last script u sent me don't give me the right value for the knob (even if it's better then my first one.. :bleh: ).. range from 0 to 100.. but looking your script I obtain the right code that show me the value from negative (-100) to positive (100).. tomorrow I'll show u it! have anice evening! :)
     
  12. Introninja

    Introninja Audiosexual

    Joined:
    Dec 10, 2013
    Messages:
    1,525
    Likes Received:
    883
    Location:
    Location Location
    woo,

    This is my type of thread, we would create a Kontakt scripting sub-forum but we need people who interested to participate and share ideas... beside the ones who just want to leech off the great members we have here for their own selfish needs *yes*

    Great job guys!!!Keep it up
     
  13. Doctor Doubledrop

    Doctor Doubledrop Noisemaker

    Joined:
    Dec 22, 2013
    Messages:
    51
    Likes Received:
    3
    yes.. there are lot of guys that want everything for free without taking part to the "everything" by adding something personal original contribute.. is for this reason that when I met matt and alraun I didn't think it could be true! as I already sayid to them I'll be really happy to reward them for their help! *yes*

    I know man.. and I must say u that I really have no hurry! :)

    Thank u.. I know the right click option.. is only for this that I can do the scripts.. :p but I don't understand why write the script in your way can be more quickly.. then.. read well what I've just sayied.. I don't understand.. and not I think that your method can't save time! :bleh:

    I'll check better my script this evening and I'll look for it.. however I post it here because I've already copy it my usb key!
    so..

    on init

    make_perfview
    set_ui_height (5)
    message ("")

    declare ui_slider $Velocity (0,1000000)
    make_persistent($Velocity)
    read_persistent_var($Velocity)

    set_control_par_str(get_ui_id($Velocity), $CONTROL_PAR_PICTURE, "pv_world_knob_small")
    set_control_par(get_ui_id($Velocity), $CONTROL_PAR_MOUSE_BEHAVIOUR, -500)
    set_control_par(get_ui_id($Velocity),$CONTROL_PAR_HEIGHT,32)
    set_control_par(get_ui_id($Velocity),$CONTROL_PAR_WIDTH,32)

    declare ui_label $Velocity_name(1, 1)
    hide_part ($Velocity_name, $HIDE_PART_BG)
    set_control_par_str(get_ui_id($Velocity_name),$CONTROL_PAR_PICTURE,"null")
    set_control_par(get_ui_id($Velocity_name),$CONTROL_PAR_FONT_TYPE,22)
    set_control_par_str(get_ui_id($Velocity_name),$CONTROL_PAR_TEXT,"Velocity")

    declare ui_label $Velocity_value(1, 1)
    hide_part ($Velocity_value, $HIDE_PART_BG)
    set_control_par_str(get_ui_id($Velocity_value),$CONTROL_PAR_PICTURE,"null")
    set_control_par(get_ui_id($Velocity_value),$CONTROL_PAR_FONT_TYPE,22)
    set_control_par_str(get_ui_id($Velocity_value),$CONTROL_PAR_TEXT,get_control_par(get_ui_id($Velocity),$CONTROL_PAR_VALUE))

    move_control_px($Velocity, 140, 76)
    move_control_px($Velocity_name, 133, 60)
    move_control_px($Velocity_value, 133, 115)

    end on


    on ui_control($Velocity)
    set_engine_par($ENGINE_PAR_EXTMOD_INTENSITY, $Velocity,0,0,0)
    set_control_par_str(get_ui_id($Velocity_value),$CONTROL_PAR_TEXT,get_engine_par_disp ($ENGINE_PAR_EXTMOD_INTENSITY, 0, 0,0))

    end on
     
  14. Doctor Doubledrop

    Doctor Doubledrop Noisemaker

    Joined:
    Dec 22, 2013
    Messages:
    51
    Likes Received:
    3
    ah! I was forgettingto share with u some nice links that I've recently found! :)

    make knob in photoshop(youtube):
    http://www.youtube.com/watch?v=xvuIq-6i-R0

    make knob in photoshop(vimeo):
    http://vimeo.com/3992865

    Free sharing space for ".knob" files created with KnobMan or WebKnobMan:
    http://www.g200kg.com/en/webknobman/gallery.php

    :wink:
     
  15. Doctor Doubledrop

    Doctor Doubledrop Noisemaker

    Joined:
    Dec 22, 2013
    Messages:
    51
    Likes Received:
    3
    I'm not sure I've understand well this.. this because with your script I see negative value for the intenity of the velocity.. however matt.. I really don't want take advantage from your availability! and I preffer u'll can help me if I'll need in a future! don't worry for me if make an instrument take me 1 day indeed one hour! for me is still a success! and I'm happy that this new adventure with script give me your friendship! :mates: :break: :thumbsup:
     
  16. Alraun

    Alraun Member

    Joined:
    Sep 17, 2012
    Messages:
    414
    Likes Received:
    13
    I see. Must confess, i don't know other members with scripting skills apart from mattmckay....
    I realize this was a rash and not thought-out idea by me.

    @Dr. Doubledrop, you're welcome. btw.....have you already checked out the amazing Bureu Organ? I love it. Really nice and comprehensive scripts (by mattmckay) to study and learn from. *yes* Linked to Bureu Organ *yes*

    P.S.
    I can really recommend the following book: KSP Scripting Vol.1 by Mike Novy. Well....it's overpriced (39,90€) but unrivaled....lol....as it is the only textbook
    about KSP anyway on the market yet. It explains the subject matter in an understandable way.
    [​IMG]
    Sublime Text 3 (Win/OSX) is currently the most recommended external text editor for KSP. Crab it somewhere. Install it together with
    Sublime KSP Extension, a free KSP syntax plugin developed by Nils Liberg. DOWNLOAD SublimeKSP.
    It gives you a coloured UI and other functions for a better overview and workflow.
     
Loading...
Similar Threads - Kontakt intensity script Forum Date
PROBLEM with Native Instruments Session Guitarist Acoustic Sunburst Deluxe v1.0.2 KONTAKT Kontakt Tuesday at 8:54 PM
Leisure Class Audio Releases TS-30X Analog Drum Synthesizer for Kontakt Software News Monday at 8:45 PM
Selling Kontakt 7 and All of my Libraries Selling / Buying Jul 21, 2024
Can anyone recommend good Kontakt "Sub Bass Drops'Library Kontakt Jul 20, 2024
kontakt 7 bob dule patch Kontakt Jul 18, 2024
Loading...