out led KeySemitones

   Discuss technical issues with the community. Mixvibes staff provides no support on this board.
Forum rules
Click here to join MIxvibes on DISCORD https://discord.gg/gMdQJ2cJqa

out led KeySemitones

Postby tonip on 10 Feb 2015, 01:01

sorry for the translation from Italian,
how do I turn the key LED KeySemitones , the out KeyLockOutput not work, thanks
User avatar
tonip
 
Posts: 46
Joined: 28 Dec 2012, 23:33


Re: out led KeySemitones

Postby FigDJ on 10 Feb 2015, 03:56

The key semitones output is for an integer condition

If key semitones value= 0
then turn LED X

it look somewhat like this


<mapping>
<control alias="fam(Player)[0x1].KeySemitones" value="1"/>
<MIDI type="Note" parameter="0xc" channel="0x1" value="127"/>
</mapping>

In this example you are saying that if keysemitones =1, then turn on LED c on channel 1
Image
FigDJ
 
Posts: 1355
Joined: 22 Apr 2012, 17:03
Location: Odenton, MD


Re: out led KeySemitones

Postby tonip on 11 Feb 2015, 16:18

not work, my configuration is:

<mapping>
<events>
<MIDI type="Note" parameter="0x21" channel="0x2"/>
</events>
<controls>
<control alias="fam(Player)[0x2].KeySemitones"/>
</controls>
<preset name="Direct Integer Button">
<parameters>
<parameter object="action-0" key="integer" value="1"/>
<parameter object="dispatch" key="interpretCCasNote" value="off"/>
</parameters>
</preset>
</mapping>


<mapping>
<control alias="fam(Player)[0x2].KeySemitones" value="1"/>
<MIDI type="Note" parameter="0x21" channel="0x2" value="127"/>
</mapping>
<mapping>
<control alias="fam(Player)[0x2].KeySemitones" value="0"/>
<MIDI type="Note" parameter="0x21" channel="0x2" value="0"/>
</mapping>
User avatar
tonip
 
Posts: 46
Joined: 28 Dec 2012, 23:33


Re: out led KeySemitones

Postby FigDJ on 11 Feb 2015, 17:46

Your coding is incorrect. Integer means that each value of a key semitone is asigned a key.

Keys are from 1 to 12. A for minor and B for major. Total of 24 values.

key semitones in a piano follow a format of key+7= next key.

If you are assigning a control to change keys you can do it with a fader or a button that when pressed it will increment or decrement your key.

If your playing track key is 4A step to the next key.

Then following the formula: key +7= next key.

Starting key 4A
4A+7=11A
11A= Next key

if decreasing then starting key - 7= previous key
11A-7=4A

Please look up the "Camelot Wheel" for details

My asumption (because it requires sometrial an error since I have not mapped keysemitones to individual buttons)) is that assigned values are as
follow:

0=12A
1=07A
2=02A
3=09A
4=04A
5=11A
6=06A
7=01A
8=08A
9=03A
10=10A
11=05A

I have assigned afader or a rotary to change keys

Below is an example of using a fader to change key semitones

<mapping name="S+TEMPO">
<events>
<MIDI type="CC" parameter="0x5" channel="0x1"/>
</events>
<controls>
<control alias="fam(Player)[0x1].KeySemitones"/>
</controls>
<preset name="Integer Map Fader/Knob">
<parameters>
<parameter object="map" key="backwardIntegerRange" value="0 0"/>
<parameter object="map" key="backwardNormalRange" value="0 0"/>
<parameter object="map" key="forwardIntegerRange" value="-12 12"/>
<parameter object="map" key="forwardNormalRange" value="0 1"/>
</parameters>
</preset>
</mapping>


In this case I am using the shift key and my tempo fader to change keysemitones.

In the input section

Your code is using one button to change the key to whatever value is integer 1. This will change the y to the key assigned integer 1 every time. (Not useful in my oppinion)

<mapping>
<events>
<MIDI type="Note" parameter="0x21" channel="0x2"/>
</events>
<controls>
<control alias="fam(Player)[0x2].KeySemitones"/>
</controls>
<preset name="Direct Integer Button">
<parameters>
<parameter object="action-0" key="integer" value="1"/>
<parameter object="dispatch" key="interpretCCasNote" value="off"/>
</parameters>
</preset>
</mapping>

In the LED section
Your code is lighting up the LED only when the integer value is one and turning it of only when integer value is zero.

<mapping>
<control alias="fam(Player)[0x2].KeySemitones" value="1"/>
<MIDI type="Note" parameter="0x21" channel="0x2" value="127"/>
</mapping>
<mapping>
<control alias="fam(Player)[0x2].KeySemitones" value="0"/>
<MIDI type="Note" parameter="0x21" channel="0x2" value="0"/>
</mapping>

A good example of using integer with LEDs is as follow:

Assuming that you have 12 LEDs . 1 for each keysemitone.

LED 10 to 17 and 50 to 53

<mapping>
<control alias="fam(Player)[0x1].KeySemitones" value="1"/>
<MIDI type="Note" parameter="0x10" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x11" channel="0x1" value="127"/>
<MIDI type="Note" parameter="0x12" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x13" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x14" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x15" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x16" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x17" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x50" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x51" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x52" channel="0x1" value="0"/>
<MIDI type="Note" parameter="0x53" channel="0x1" value="0"/>
</mapping>

This will light up LED 11, when keysemitone value=1 corresponding to key 07A and turn of the rest of the LEDs

The proper application off this command for the input and output sections is totally different to what you coded. perhaps if you provide a description of what are you trying to accomplish I can guide you to the best application of the command.
Image
FigDJ
 
Posts: 1355
Joined: 22 Apr 2012, 17:03
Location: Odenton, MD


Re: out led KeySemitones

Postby tonip on 11 Feb 2015, 19:31

Thanks for the explanation , I activated by pressing key_lock_ox21 the modifier ML4 and use the + and - to change the pitch bend value semitones . I would like to turn the led_0x21 when the feature key-semitones is active
User avatar
tonip
 
Posts: 46
Joined: 28 Dec 2012, 23:33


Re: out led KeySemitones

Postby FigDJ on 11 Feb 2015, 19:54

tonip wrote:Thanks for the explanation , I activated by pressing key_lock_ox21 the modifier ML4 and use the + and - to change the pitch bend value semitones . I would like to turn the led_0x21 when the feature key-semitones is active


Do you want light the LED when you are pressing the button (momentarily) or on while the key is other than the original?
Image
FigDJ
 
Posts: 1355
Joined: 22 Apr 2012, 17:03
Location: Odenton, MD


Re: out led KeySemitones

Postby FigDJ on 11 Feb 2015, 20:51

I forgot to tell you I did map keysemitones using buttons. It was a long time ago when I was making a custom map for Mixvibes Vfx controller. Anyway you already got it but just for reference this is how I did it.

For decrease

<mapping>
<events>
<MIDI type="Note" parameter="0x3b" channel="0x4"/>
</events>
<controls>
<control alias="fam(Player)[0x1].KeySemitones"/>
</controls>
<preset name="Inc.-Dec. Button">
<parameters>
<parameter object="action-0" key="integer" value="-1"/>
<parameter object="dispatch" key="interpretCCasNote" value="off"/>
<parameter object="metronom" key="Repeat Acceleration" value="0.1"/>
<parameter object="metronom" key="Repeat Time" value="0"/>
<parameter object="metronom" key="Start Time" value="500"/>
</parameters>
</preset>
</mapping>

For increase

<mapping>
<events>
<MIDI type="Note" parameter="0x3c" channel="0x4"/>
</events>
<controls>
<control alias="fam(Player)[0x1].KeySemitones"/>
</controls>
<preset name="Inc.-Dec. Button">
<parameters>
<parameter object="action-0" key="integer" value="1"/>
<parameter object="dispatch" key="interpretCCasNote" value="off"/>
<parameter object="metronom" key="Repeat Acceleration" value="0.1"/>
<parameter object="metronom" key="Repeat Time" value="0"/>
<parameter object="metronom" key="Start Time" value="500"/>
</parameters>
</preset>
</mapping>


On the LED questions i am looking at the control aliases for 3.X.

if you want the LED to light up just when you press the button for keysemitone then use

In&Out reg(RegisterLogic1) (Logic) == "Register Logic 1"
The way to use this command is to add it as a second command to the same buttons that you are using for keysemitones (one button more than one fuction) and to add and LED light up in the output section when the register logic is true.


If you want the LED to stay on while the track key is different than the original, there is an indication in the GUI that makes the key change color when is not the original key. i don't think there is an equivalent output for this but perhaps experimenting a little with

Out fam(Player)[0x1].RelevantKeyOutput (Logic) == "Relevant Key"

will get you the results you want.
Image
FigDJ
 
Posts: 1355
Joined: 22 Apr 2012, 17:03
Location: Odenton, MD


Re: out led KeySemitones

Postby tonip on 12 Feb 2015, 22:29

FigDJ wrote:
tonip wrote:Thanks for the explanation , I activated by pressing key_lock_ox21 the modifier ML4 and use the + and - to change the pitch bend value semitones . I would like to turn the led_0x21 when the feature key-semitones is active


Do you want light the LED when you are pressing the button (momentarily) or on while the key is other than the original?

I did not understand , I want to turn on the LED button ox21 type toggler , I tried to associate the modifier to the LED , but having 2 player , I turn on the lights on the first player in the list
User avatar
tonip
 
Posts: 46
Joined: 28 Dec 2012, 23:33


Re: out led KeySemitones

Postby tonip on 12 Feb 2015, 23:05

other question, if I have 2 player uSolo - fx , I can use the same modifiers or not?
User avatar
tonip
 
Posts: 46
Joined: 28 Dec 2012, 23:33


Re: out led KeySemitones

Postby tonip on 17 Feb 2015, 00:03

not respond?
User avatar
tonip
 
Posts: 46
Joined: 28 Dec 2012, 23:33



Return to Community Support




Who is online

Users browsing this forum: No registered users and 25 guests

Board index

 
 
   
 
© 2014 Mixvibes