• acryl

    Hi,

    I 'm currently working on a subpatch to get hacked-keybord input into an other patch. Everything works really fine, except one toggle related thing that i don't really understand.

    The problem occurs when i send the result of a select (a bang that is) to a toggle via a send object, the toggle doesn't change state, but the receives object works fine (if i put a bang on the receive it bangs).

    The thing that disturbs me a lot, is that when i send the bang of a bang object through the same objects, it works, but only if i press manually the bang object.

    I 'm not sure it's very understable but it looks like that:

    select
    |
    send foo

    * this one doesn't toggle
    receive foo
    |
    toggle


    bang
    |
    send foo

    * this one does toggle if i press the bang
    receive foo
    |
    toggle


    select
    |
    bang
    |
    send foo

    * this one doesn't toggle
    receive foo
    |
    toggle

    I find this choking, isn't it? :)

    Anyone have an idea of something i did wrong, or is this a know issue?

    thanks

    EDIT: forgot to say i'm on a linux ubuntu 10.10 asus eeepc

    posted in technical issues read more
  • acryl

    thanks guido, you are a genius.

    to correct the problem, i uploaded to a newer version of pd, still doesn't work.

    But as you said, hid was sending two times the key pressed message each time you press a key, even if it as the same value (i don't understand why but anyway...), a simple change object, between the route key and the select correct the probleme.

    Thanks a lot, i spend a lot of times on this thing, without thinking of such simple things...

    [hid]
    |
    |[route key]
    |
    [route key_a]
    |
    |change]
    |
    [select 1]
    |
    [X]

    posted in technical issues read more
  • acryl

    Hi all, and thanks for your answer.

    I still don't think it's a select problem.
    Indeed with the key object it does work, but i'm using hid object to get input even if i'm not on the pd window.

    i made a quick and dirty debug patch to show you my problem, could someone try to run it?

    the problem is still the same, when i press the a key, select outputs well the bang, toggle even sends the change value (if it was 0 it sends 1), but the toggle doesn't "change state" (there is no cross into the toggle)

    to run the patch you will have to select an hid device.

    thanks a lot.

    Edit: trying to correct any english and typing mistakes in this message, but... :)

    http://www.pdpatchrepo.info/hurleur/testtoggle.pd

    posted in technical issues read more
  • acryl

    i knew i had to be a bit more precise, my select objects are select 1 (a key pressed).

    i don't think the select is the problem because the select object in my patch does output the bang (that was the first thing i checked by putting a print object after the receive foo)

    thanks anyway for your answer sinewave,

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!