What is KVR Audio? | Submit News | Advertise | Developer Account

Options (Affects News & Product results only):

OS:
Format:
Include:
Quick Search KVR

"Quick Search" KVR Audio's Product Database, News Items, Developer Listings, Forum Topics and videos here. For advanced Product Database searching please use the full product search. For the forum you can use the phpBB forum search.

To utilize the power of Google you can use the integrated Google Site Search.

Products 0

Developers 0

News 0

Forum 0

Videos 0

Search  

Kontakt and keyboard colours

VST, AU, etc. plug-in Virtual Instruments discussion

Moderator: Moderators (Main)

bazspaz
KVRist
 
33 posts since 8 Nov, 2010, from UK

Postby bazspaz; Thu Nov 17, 2011 7:36 am Kontakt and keyboard colours

Hi,

Just wandering how it's possible to get Kontakt to show the colours on the keyboard at the bottom of the player like in this example:

http://www.youtube.com/watch?v=dEAOZU4s ... r_embedded

Mine is all blue and when in playback all the midi that has been drawn in the particular instance of kontakt i'm viewing plays simultaneously. I presume that you assign the keyboard to each instrument which gives you the colouring and shows only that instrument playing during playback?

Any help much appreciated.

Thanks.
[ u r l ]http://soundcloud.com/josephbell[ / u r l ]
User avatar
EvilDragon
KVRAF
 
10041 posts since 6 Jan, 2009, from Croatia

Postby EvilDragon; Thu Nov 17, 2011 8:05 am

You have to enter the script editor a bit.

Code: Select all
on init
    declare $i := 60
    while ($i <= 72)
        set_key_color($i,$KEY_COLOR_CYAN)
        inc($i)
    end while
end on


This will color the middle C octave to cyan. Available colors, as of Kontakt 4.2, are:

$KEY_COLOR_NONE (restores default keycoloring)
$KEY_COLOR_WHITE
$KEY_COLOR_YELLOW
$KEY_COLOR_RED
$KEY_COLOR_BLUE
$KEY_COLOR_CYAN
$KEY_COLOR_GREEN
$KEY_COLOR_BLACK (inverts key color - white goes to black, black goes to white)
bazspaz
KVRist
 
33 posts since 8 Nov, 2010, from UK

Postby bazspaz; Thu Dec 01, 2011 6:59 am

Thanks for your response, I have been following your instructions and found that's one way of doing it.

However, when you click the spanner on an instrument the keyboard role comes up with all the correct colours which is great except you can't view the interface of the instrument when you are in that view, well I can't anyway :).
[ u r l ]http://soundcloud.com/josephbell[ / u r l ]
User avatar
EvilDragon
KVRAF
 
10041 posts since 6 Jan, 2009, from Croatia

Postby EvilDragon; Thu Dec 01, 2011 7:09 am

I'm not sure if I follow?

You can see the keyboard colors AND the interface (performance view) of the selected instrument at the same time. Does your script have make_perfview command in "on init" callback?
bazspaz
KVRist
 
33 posts since 8 Nov, 2010, from UK

Postby bazspaz; Thu Dec 01, 2011 7:19 am

Apologies for not being clear. For example, have 8 instruments loaded into kontakt. In the performance view the keyboard roll is showing the colours that associate with the instrument loaded into st. 1 midi ch. 1. If I want to see the colours that associate with the instrument loaded to st. 7 midi ch. 7 then I have to click on the spanner icon and then it's revealed within that view but if I go back to performance view the keyboard role resumes showing st. 1 midi ch. 1.

I am not sure how I would implement the script you have mentioned just now, if you could elaborate slightly it'd much appreciated. I was also thinking have I missed the trick in regards selecting an instrument within Kontakt as the manual says that the piano role shows the currently selected instrument. I know how to select, or arm the instrument within the DAW but not in Kontakt.

Thanks for your help.
[ u r l ]http://soundcloud.com/josephbell[ / u r l ]
User avatar
EvilDragon
KVRAF
 
10041 posts since 6 Jan, 2009, from Croatia

Postby EvilDragon; Thu Dec 01, 2011 7:24 am

Yes - that's how Kontakt works (it only shows the keyboard colors for the currently selected instrument). Nothing you can do about it.

You select the instrument by clicking on the background of it (NOT on any buttons, or sliders, or spanner icons!) - it shows an orange frame around the instrument then
Last edited by EvilDragon on Thu Dec 01, 2011 7:27 am, edited 1 time in total.
bazspaz
KVRist
 
33 posts since 8 Nov, 2010, from UK

Postby bazspaz; Thu Dec 01, 2011 7:26 am

How do you select an instrument within Kontakt?
[ u r l ]http://soundcloud.com/josephbell[ / u r l ]
User avatar
EvilDragon
KVRAF
 
10041 posts since 6 Jan, 2009, from Croatia

Postby EvilDragon; Thu Dec 01, 2011 7:27 am

I've just edited the above post to explain that.
bazspaz
KVRist
 
33 posts since 8 Nov, 2010, from UK

Postby bazspaz; Thu Dec 01, 2011 7:28 am

So simple!

Many thanks for aiding my stupidity!
[ u r l ]http://soundcloud.com/josephbell[ / u r l ]
User avatar
EvilDragon
KVRAF
 
10041 posts since 6 Jan, 2009, from Croatia

Postby EvilDragon; Thu Dec 01, 2011 7:50 am

Haha, that's a bit weird statement! I don't think I aided your stupidity really - if that were true, then you would be more stupid than you were, but instead now you know something you didn't! :P
raulcubina
KVRer
 
2 posts since 16 Jan, 2010, from miami

Postby raulcubina; Wed Feb 13, 2013 4:24 pm

Thanks so much for this. Really helped with some Roland TR-808 and 909 instruments I'm creating. I'm wondering if you could possibly show me how to use multiple colors for different keys. For example Yellow for C1-C2 and then Red for D2-D3? I'm not familiar with KSP so my attempts were futile.

Thanks.

RC

EvilDragon wrote:You have to enter the script editor a bit.

Code: Select all
on init
    declare $i := 60
    while ($i <= 72)
        set_key_color($i,$KEY_COLOR_CYAN)
        inc($i)
    end while
end on


This will color the middle C octave to cyan. Available colors, as of Kontakt 4.2, are:

$KEY_COLOR_NONE (restores default keycoloring)
$KEY_COLOR_WHITE
$KEY_COLOR_YELLOW
$KEY_COLOR_RED
$KEY_COLOR_BLUE
$KEY_COLOR_CYAN
$KEY_COLOR_GREEN
$KEY_COLOR_BLACK (inverts key color - white goes to black, black goes to white)
Signature blocked until 5 posts made
User avatar
EvilDragon
KVRAF
 
10041 posts since 6 Jan, 2009, from Croatia

Postby EvilDragon; Thu Feb 14, 2013 1:18 am

Well that's as easy as running a loop and then using if statements within, for example:

Code: Select all
on init
    declare $i := 36
    while ($i <= 62)
        if (in_range($i,36,48))
            set_key_color($i,$KEY_COLOR_YELLOW)
        end if
        if (in_range($i,49,62))
            set_key_color($i,$KEY_COLOR_RED)
        end if
        inc($i)
    end while
end on
raulcubina
KVRer
 
2 posts since 16 Jan, 2010, from miami

Postby raulcubina; Thu Feb 14, 2013 3:15 pm

Thank you so much. Will try this right now. I'm wondering if you'd also know how to have an instrument load with a specific CC #1 value. For example, on my 808 instruments the snares have a "Snappy" parameter which I set to be the mod wheel, I would like for it to load halfway (64). Any chance you could show me what that'd look like and can i throw it in alongside the key-color code? THANKS.

EvilDragon wrote:Well that's as easy as running a loop and then using if statements within, for example:

Code: Select all
on init
    declare $i := 36
    while ($i <= 62)
        if (in_range($i,36,48))
            set_key_color($i,$KEY_COLOR_YELLOW)
        end if
        if (in_range($i,49,62))
            set_key_color($i,$KEY_COLOR_RED)
        end if
        inc($i)
    end while
end on
Signature blocked until 5 posts made
User avatar
EvilDragon
KVRAF
 
10041 posts since 6 Jan, 2009, from Croatia

Postby EvilDragon; Thu Feb 14, 2013 3:23 pm

Code: Select all
on init
   set_controller(1,<value>)
end on



This is basic stuff, please have a run through the KSP Reference manual that comes with Kontakt. :)
User avatar
cosmosis
KVRian
 
763 posts since 12 Jun, 2009

Postby cosmosis; Wed Jul 03, 2013 5:13 pm

May bump and hijack?

Im making this instrument with 5 groups of samples and a menu on the interface to switch between them. I need the key colors to change with the groups and everything Ive tried has failed. ATM I have this, but it just paints the keys green no matter what.
Code: Select all
declare $i := 60
declare $j := 80

~O~O~O~

if ($select=1)
 while ($i <= 72)
   set_key_color($i,$KEY_COLOR_GREEN)
   inc($i)
 end while
end if

if ($select=2)
 while ($j <= 92)
   set_key_color($j,$KEY_COLOR_RED)
   inc($j)
 end while
end if



I also tried resetting the color, but it's the same nonetheless:
Code: Select all
if ($select=1)
 while ($i <= 72)
   set_key_color($i,$KEY_COLOR_NONE)
   set_key_color($i,$KEY_COLOR_GREEN)
   inc($i)
 end while
end if

HALP!!1
It's
Next

Moderator: Moderators (Main)

Return to Instruments