Mankeysocks / bikinect

Automatically exported from code.google.com/p/bikinect
0 stars 0 forks source link

Inconsistency between loaded set, action triggered, info shown #10

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Run mappinect with this setting:

    <mappingset id="parlaalmicrofono">  
        <mapping label="manodestra_sopra_spalladestra"> 
            <processor type="boolean" filter="greater_than" label="Parla">
                <element type="joint" target="right_hand" property="position" axis="y" />
                <element type="joint" target="right_shoulder" property="position" axis="y" />
            </processor>        
            <output>
                <midi type="note" device="0" channel="1" channelMap="1" velocityMap="0" minChannel="4" maxChannel="5" minVelocity="0" maxVelocity="127" distinctNotes="true" />
            </output>
        </mapping>
    </mappingset>

    <mappingset id="inchini1" shortcut="2">
        <mapping label="manodestra_a destra_dell_anca1a">   
            <processor type="boolean" filter="less_than" label="proc_inchini1a">
                <element type="joint" target="right_hand" property="position" axis="x" />
                <element type="joint" target="right_hip" property="position" axis="x" />
            </processor>        
            <output>
                <midi type="note" device="0" channel="1" channelMap="1" velocityMap="0" minChannel="0" maxChannel="1" minVelocity="0" maxVelocity="127" distinctNotes="true" />
            </output>
        </mapping>  

    </mappingset>

What is the expected output? What do you see instead?

The first mapping works. Midi values 4 and 5 are sent.

When i type "2" the second is also loaded. The window in fact says "Active 
Mappings: 2", and feedback yellow strip near  right hand becomes yellow when i 
do the first gesture, and when i do the second.

BUT: now midi values sent are always 1 and 0 - both when i do the gesture 
described in mappingset "inchini1" - and that's the expected behaviour - AND 
when i do the gesture described in mappingset "parlaalmicrofono" - and this 
isn't!

I think that 2 different midi values should be sent, after typing "2", 
depending on which gesture is activated.

What version of the product are you using? On what operating system?

macosx 10.6

Please provide any additional information below.

Original issue reported on code.google.com by michele....@gmail.com on 10 Nov 2011 at 11:00

GoogleCodeExporter commented 8 years ago
I don't understand what you do when you say "typing 2"

Another thing is : you shouldn't define channel if channelMap is set to 1, 
because 
channelMap will override the channel. Maybe it's conflicting (i don't think 
it's the problem but still, it would be clearer in the mapping).
As for velocityMap=0, it's not necessary.

Original comment by bkuperb...@gmail.com on 10 Nov 2011 at 11:49

GoogleCodeExporter commented 8 years ago
By "typing 2" i mean hitting "2" key on the keyboard, to activate mapping that 
has "shortcut=2" setting.
I'll check the other suggestion.

Original comment by michele....@gmail.com on 10 Nov 2011 at 2:02

GoogleCodeExporter commented 8 years ago
Ah ok, i actually had forgotten i added this feature...
I think i have read wrong your mappings the first time.

As for the issue #11, when you type "2", you don't "activate" the second 
mapping, you switch your active mapping to the second one. That means, the 
first one won't be active anymore.
If you want to keep your first mapping active, you have to set your mappingset 
to permanent="true", or duplicate your mapping into the new mappingset.

Original comment by bkuperb...@gmail.com on 10 Nov 2011 at 2:08