Jump to content

Marxon

Programmer
  • Posts

    474
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by Marxon

  1. Hi all!

    I want to make a button which sends a NRPN event.
    The value of this event should, however be set with another encoder.
    Because using ngr scripts was a good choice in the past, i tried this:
     

     

    EVENT_ENC    id=116 hw_id= 14 type=Meta meta=runsection:206 range=map1 no_dump=1 enc_mode=Absolute  label="^std_enc"
    EVENT_BUTTON id=123 hw_id=123 type=NRPN nrpn= 45 nrpn_format=MsbOnly   no_dump=1 button_mode=OnOnly label="^std_btn"
    if ^section == 206
        set Button:123 ^value
    endif


    But somehow it does not work like suspected.

     

    1) Turning the encoder also triggers the button event but
    it was intended that it set the button's value only.
    Maybe i misunderstood the SET and TRIGGER commands?
     
    2) Although MiosStudio reports ("show id button:123") a correct value after turning the encoder,

    the button always sends value 127 and not the value of the encoder.
     

    Thanks for any advice!

    Best reragds
    Marxon

  2. Ich glaube ohne ein Oszilloskop kann man die nicht testen.

    Mir ist mal einer mehrmals runtergefallen, danach war er hinüber....

    Ich leg dir einen neuen zum PIC dazu...

     

     

    Edit:

    Du solltest unbedingt deine komplette Platine nachbessern.

    Teilweise sind nur halbe pads verlötet. :(

    post-4098-0-70435100-1392456794_thumb.jp

     

  3. die wurde weiter oben schon gepostet, die bin ich schon durchgegangen...

     

    Also ich lese nur von dem Loopback Test... 

    Mit dem stellst du aber nur sicher dass dein MiDi Interface funktioniert und mit MiosStudio kommuniziert.

    Hast du auch die folgenden Tests gemacht?

    Sorry, der Nachfrage aber sicher ist sicher ;)

     

    mfg

    Marxon

  4. Hi Mot96

     

    bist du sicher, dass der Bank change nicht doch ausgeführt wird aber evtl die Bankabfrage nicht funktioniert?

    Deaktiviere versuchsweise deine Abfrage im .ngr script "#"

    und füge in die .ngc Datei folgenden Code ein:

     

    # This is a dummy LED without assigned hardware (hw_id=2000 not used anywhere else) and without MIDI event.
    # the purpose of this EVENT item is to print the bank whenever the LCD is refreshed (e.g. after startup or bank change)
    EVENT_LED id=2000 fwd_to_lcd=1 lcd_pos=1:1:1 label="Bnk%q"

     

    Vieleicht hast du damit Erfolg.

     

     

    Gruß

    Marxon

     

     

    EDIT

    Nur um sicher zugehen:

    Hat es einen bestimmten Grund, warum den Bankwechsel

    nicht per .ngc Event machst?

  5. Damn! Kick me in my ass!

    I checked everything... Really everything? 

    No, i left out the resistor array which turns out to be a 10k ohm array.

    :angry: :angry: :angry:

    This might be the problem!

    I am going to change it and post result in some minutes...

  6. [79878.592] Initialize LCD #1

    [79878.649]

    [79878.649] ====================

    [79878.649] Bootloader 1.015

    [79878.660] ====================

    [79878.662]

    [79878.674] Checking Bootloader...

    [79878.751] No mismatches found.

    [79878.754] The bootloader is up-to-date!

    [79878.769] You can upload another application now!

    [79878.791] Or type 'help' in MIOS Terminal for additional options!

  7. Entering "system" into the terminal gives this:

     

     

    [78917.869] Application: MIDIbox NG V1.029
    [78917.870] MIDI Monitor: disabled
    [78917.870] MIDI Monitor Filters: enabled
    [78917.870] MIDI Monitor Tempo Display: disabled
    [78917.870] Print AOUT Config: TODO
    [78917.870] lcd_type: 0x00 - CLCD
    [78917.870] lcd_num_x: 1
    [78917.870] lcd_num_y: 1
    [78917.870] lcd_width: 16
    [78917.870] lcd_height: 2
    [78917.870] Event Pool Number of Items: 734
    [78917.871] Event Pool Allocation: 24480 of 24576 bytes (99%)
  8. After uploading your .hex MIOS gives this output:

     

     

    [78833.839] Init DHCP
    [78834.846] SD Card connected:
    [78835.015] [MBNG_FILE_C:317] WARNING: no CC number expected for EVENT_ENC due to type: Disabled
    [78835.443] [MBNG_FILE_C] Event Pool Number of Items: 734
    [78835.443] [MBNG_FILE_C] Event Pool Allocation: 24480 of 24576 bytes (99%)
    [78835.450] [MBNG_FILE_L] DEFAULT.NGL hasn't been changed; reading labels from existing DEFAULT.BIN file.
    [78835.451] [MBNG_FILE_L] 7 labels found in /DEFAULT.BIN file
    [78835.456] [MBNG_FILE_S] loading snapshot #13 from /DEFAULT.NGS
×
×
  • Create New...