Jump to content

FantomXR

Members
  • Posts

    1,035
  • Joined

  • Last visited

  • Days Won

    22

Posts posted by FantomXR

  1. Hey Thorsten,

     

    I tried the following NGR:

     

     

    ### Leslie Switch ###
    if ^section == 6
     if AINSER:67 == 127
     trigger BUTTON:17
    endif
    endif

     

    and NGC:

     

    EVENT_BUTTON id=17 button_mode=Toggle fwd_id=LED:17 type=cc cc=1

    EVENT_AINSER id=67 ain_mode=Switch type=meta meta=runsection:6

     

    If I now press the sustain switch, it just sends out CC 1 with value 0. But not 127.

    Where is my mistake?

  2. Hi Thorsten,

     

    I tried this:

     

    EVENT_AINSER   id=65     ain_mode=Switch fwd_id=BUTTON:1001

    EVENT_BUTTON id=1001 button_mode=Toggle    type=cc cc=1

     

    without success. MIOS doesn't monitor anything.

    You already wrote in this thread:

    that only a value is forwarded with fwd_id but it won't trigger a midi event. Maybe that's there is the problem?

  3. Hey,

     

    here is the situation:
    I've a keyboard which has a AINSER8 inside. I soldered a jack to it for a switch. The switch works flawlessly. I configured ain_mode=switch. So it sends 127 when pressed and 0 when depressed.

    What I want to achieve is, to send 127 when I press it the first time.... release it... press again and it should send 0. 

     

    I tried various things with NGR-commands... but I didn't get it to work.

     

    Any suggestions here?

     

    Thanks,

    Chris

  4. Hey,

     

    I ran into a little problem.

     

    I use an AINSER8-module. I want to scan four switches (f.e. sustain) and four expression pedals. So I have eight jacks. All of them are stereo even if I don't use the stereo-feature for switches. I wired all "tip"-pins and all "shield"-pins together. Tip is 5V, shield is GND. For the switches I first connect the analog input and than connect the switch via a 1k resistor to GND. This works flawlessly.

     

    For the expression pedals I thought I could use the "ring"-pins which is the wiper of a typical expression pedal. So I connected the analog inputs of the AINSER to the "ring"-pins. So for expression:

    T - 5V

    R - A0-A3

    S - GND

     

    As I'm using switched-jacks I set up the connection like if nothing is connected to the jack, the analog input goes to ground to not create random values.

     

    The problem is that I get a lot of jitter especially in the lower range. Not of the input I connected the potentiometer to, but from all the other jacks. Also of the sustain-jacks.

     

    I than tried to connect the potentiometer to one of the sustain-jacks. It's working here but it doesn't go down to 0 and it doesn't go up to 127. Also it seems that the scale does not go linear. I use a pot with a center-detent. In the first half nearly nothing happens. But I have to say, that I didn't try to set a pinrange for the jacks yet.

     

    Could you please tell me where my mistake is? I have no idea....

     

    Thank you very much,

    Chris

  5. Hi!

     

    Thanks for getting back to me.

    Hm, seems complicated.

     

    TK, is there maybe an easier solution on the softwareside? (Fire note-on with the break)

     

    If not... I didn't get exactly what you meant by using a 8PDT switch. Would you draw just a little schematic on how do you think it should work?

  6. So, sadly this project was canceled for several reasons. 

     

    But I have another question regarding RGB LEDs. As far as I know NG is able to drive LEDs with common cathode. How about common anode leds? Is it also possible in conjunction with ULN?

     

    Thanks,
    Chris

  7. Hey TK!

    Thanks for all that!
    I at first need to understand the code in the NGR. That takes a bit of time :) 

    The new features you added... could you do an example for what this could be useful?

     

    I don't know, what you meant by the SRIO. Where do I have to put this parameter into? It would be great to scan it faster :)

     

    I'm out of DIO-modules... so I can not test it at the moment...

  8. Hey Thorsten!

     

    Great! I figured out how to send a CC which contains the bank select and after that the program change. It works great!

     

     

    # EXEC button
    if ^section == 11
      # valid number?
      if LED:2001 == 1
        send CC USB1 1 32 0 // the last value shows the bank which is selected by this CC - in this case 0
        send ProgramChange USB1 1 LED:2000
     
        # next entry will reset the number
        set LED:2001 2
      endif

     

     

    So, what I could do is, adding two buttons. Those two buttons change between bank select 1 and 2. But I think this is a complicated solution. Here is an idea:
    Is it possible, that NG generates the correct program change (including bank select) automatically? So, for example: I enter number 128 and NG sends Program Change 1 on Channel 1 on Bank 2 because it's the first program change in the new bank. 

     

    What do you think?

     

    A friend of mine uses Mainstage and he has a very large setup running, which contains up to 200 songs. Mainstage (meanwhile) supports bank select. So this would be a great feature.

     

    This feature is already awesome anyways :)

×
×
  • Create New...