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

new instrument script

Discussion in 'Scripting Workshop' started by plugaudio, Mar 17, 2011.

Thread Status:
Not open for further replies.
  1. plugaudio

    plugaudio Forum Member

    Messages:
    21
    I started to work on my first bass instrument for kontakt.

    sound is sampled from Moog Rouge thru Chandler LTD-1 with Amtec Phanzen compressor in chain.

    I wanted to make bass to move a bit in bass range so here is the srcipt :


    on init
    declare $freq1
    declare ui_button $onof
    end on

    on ui_control($onof)
    set_engine_par($ENGINE_PAR_EFFECT_BYPASS,1 - $onof,0,0,-1)
    end on

    on note
    $freq1 := 2000 * (( $EVENT_VELOCITY * 100 ) / 127 )
    set_engine_par($ENGINE_PAR_FREQ1,$Freq1,0,0,-1)
    end on


    so few newbie questions:


    1. is there a way to better code this line :
    $freq1 := 2000 * (( $EVENT_VELOCITY * 100 ) / 127 )


    2. can Kontakt instruments saved in 64 bit version be read in 32 bits kontakt ?
    unknown patch error here


    sound demo here (drums battery) :

    http://www.mediafire.com/?xwtaqgf0g5juq4k
     
  2. soulviasound

    soulviasound Forum Member

    Messages:
    32
    Why you just don't add a velocity modulator to the filter freq ?
     
  3. plugaudio

    plugaudio Forum Member

    Messages:
    21
    because its my second script ever , and I'm not familiar with modulators yet :)
    and in fact I'm kontakt begginer ...


    ... I'v got it ... can I have modulators as knobs on front pannel ?
     
    Last edited: Mar 17, 2011
  4. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    You first have to add a modulator to a destination, to be able to add their modulation amounts in the script. There's an example of that in the KSP reference.
     
  5. plugaudio

    plugaudio Forum Member

    Messages:
    21
    http://www.mediafire.com/?5ib6uj6d4i641a4

    could you please correct my first Kontakt instrument ever ?


    I can not make switches to work right way . is there any tutorial on it ?

    how it is possible to make visible custom GUI to users that download it ? - is placing in picture directory of kontakt the only way to do it ?
    do i have to make windows / mac installer to place graphic in right directory ?

    ( I used Komplete 7 knob and switch for graphic )


    thank you for support .
     
    Last edited: Mar 18, 2011
  6. kb123

    kb123 NI Product Owner

    Messages:
    1,255
    For getting started, try out my GUI Generator. This will give you some basics that you can then add to
     
  7. plugaudio

    plugaudio Forum Member

    Messages:
    21
    kb123 - thank you for link.

    I already did graphic GUI .

    but I dont know the way how users should install my instrument to see background picture. do they need to place it manually in picture folder of kontakt. ?

    instrument download : http://www.mediafire.com/?5ib6uj6d4i641a4
     
    Last edited: Mar 18, 2011
  8. EvilDragon

    EvilDragon Well-Known Member

    Messages:
    19,938
    The background image can be saved within your library's folder, and when you select that background in Instrument Options, the relative path to the image will be saved. So, if the user has the NKI and the image in the same relation on his own hard drive, the image will show.

    For example, you have this folder structure:

    My Library\Instruments\My Instrument.nki
    My Library\Wallpaper\wallpaper.png

    If you now open My Instrument.nki, and go to Instrument Options, then browse to the Wallpaper folder and choose wallpaper.png, then save that NKI, this is all you have to do for the path to be saved. Now the user will have to have both folders inside My Library folder to see the image.
     
Thread Status:
Not open for further replies.