Jump to content

Marxon

Programmer
  • Posts

    474
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by Marxon

  1. It´s done: Event Pool Number of Items: 786 Event Pool Allocation: 24571 of 24576 bytes (99%) Hopefully the STM32F4 version of MidiBox NG will be released soon.
  2. Hi again, have you tried it Thorsten? EDIT: It works with an additional set_active (id)Enc:1371 1 in the first condition. Although it should not be necessary, right? if ^section == 101 LOG "Volume 1" set_active (id)Enc:1371 1 if (iD)BUTTON:1371 < 1 set_active (id)Enc:1371 0 set_active (id)LED:1217 0 LOG "VolumeENC 1 off" else set_active (id)Enc:1371 1 set_active (id)LED:1217 1 LOG "VolumeENC 1 on" endif endif Best regards Marxon
  3. A small suggestion: What about instead to exclude controllers from dumping with "no_dump=1" it would be nice to have the option to include controllers with "dump=1"?
  4. Thanks for your patience, Thorsten! :thumbsup: This is the new code: EVENT_BUTTON id=1371 hw_id=1024 range=0:127 Bank=2 type=meta meta=runsection:101 button_mode=toggle #Encoder 1 on/off EVENT_ENC id=1371 hw_id=1 range=0:127 chn=11 cc=71 type=cc enc_mode=Inc00Speed_Dec40Speed enc_speed_mode=fast:4 #Multi porpose encoder function 1 EVENT_BUTTON id= 26 hw_id= 26 range=1:2 type=Meta meta=SetBank lcd_pos=1:1:1 # Shift Button if ^section == 101 LOG "Volume 1" if (iD)BUTTON:1371 < 1 set_active (id)Enc:1371 0 set_active (id)LED:1217 0 LOG "VolumeENC 1 off" else set_active (id)Enc:1371 1 set_active (id)LED:1217 1 LOG "VolumeENC 1 on" endif endif New code, new problem: Disabling the encoder works but it does not get reactivated after pressing button id=1371 again. Although i receive "VolumeENC 1 on", nothing is sent when the encoder is moved. But why?
  5. Hi all, is it possible to trigger a RunSection meta event via an incomming midi event? I tried EVENT_receiver id=1 chn=1 cc=62 type=meta meta=runsection:1 and EVENT_receiver fwd_id=button:1 id=1 chn=1 cc=62 range=127:127 botton_mode=ononly EVENT_button button_mode=ononly id=1 type=meta meta=runsection:1 unfortunately both dont work. May someone can help me? Thanks a lot! Best regards Marxon
  6. Ok thank you again Thorsten! Its working without the CC too. I also managed the refresh problem. To sum up: I have -one "shift" button button id=26 -two "encoder on/off" buttons hw_id=1024, hw_id=1017 -one multi porpose encoder hw_id=1 Pressing the "shift" button together with one "encoder on/off" button de/activates a function of the multi porpose encoder. .ngc EVENT_BUTTON id=1371 hw_id=1024 button_mode=toggle range=0:127 Bank=2 type=meta meta=runsection:101 EVENT_BUTTON id=1381 hw_id=1024 bank=2 chn=3 label="^std_btn" fwd_id=LED:1217 #Encoder 1 on/off EVENT_BUTTON id=1372 hw_id=1017 button_mode=toggle range=0:127 Bank=2 type=meta meta=runsection:102 EVENT_BUTTON id=1382 hw_id=1017 bank=2 chn=3 label="^std_btn" fwd_id=LED:1218 #Encoder 2 on/off EVENT_ENC id=1371 hw_id=1 type=cc chn= 11 cc= 71 Bank=2 range= 0:127 enc_mode=Inc00Speed_Dec40Speed enc_speed_mode=fast:4 lcd_pos=1:1:1 label="^std_enc" #Multi porpose encoder function 1 EVENT_ENC id=1372 hw_id=1 type=cc chn= 11 cc= 72 Bank=2 range= 0:127 enc_mode=Inc00Speed_Dec40Speed enc_speed_mode=fast:4 lcd_pos=1:1:1 label="^std_enc" #Multi porpose encoder function 2 EVENT_BUTTON id= 26 hw_id= 26 type=Meta meta=SetBank range=1:2 lcd_pos=1:1:1 label="^std_btn" # Shift Button .ngr if ^section == 101 LOG "Volume 1" if (iD)BUTTON:1371 < 1 set_active (id)Enc:1371 0 LOG "VolumeENC 1 off" else set_active (id)Enc:1371 1 LOG "VolumeENC 1 on" endif endif if ^section == 102 LOG "Volume 2" if (iD)BUTTON:1372 < 1 set_active (id)Enc:1372 0 LOG "VolumeENC 2 off" else set_active (id)Enc:1372 1 LOG "VolumeENC 2 on" endif endif Everything is working except that after release the shift button and press it again, then all encoders are "activated" again, regardless their previous state. I hope my problem is understandable if not i can write it in german again :) Best regards Marxon
  7. Quant. | forum name ----------------------- 2 | taximan 2 | JohnnieBee 1 | monokinetic 1 | Acul 1 | rvlt 2 | smidirin 1 | =FFW=> 1 | verpeiler (1 | jbdiver) (2 | gtxdude) (1 | chriss) (1 | mokomo) 1 | Marxon
  8. Do i need the CC midi out event at all, because i want to use the button only for the "if" condition to /deactivate Enc1371?
  9. Ok i changed the .ngr if ^section == 2 log "Section is 2" if (iD)BUTTON:1371 < 1 set_active (id)Enc:1371 0 log "deactivated" else set_active (id)Enc:1371 1 log "activated" endif endif This the output: Hold button 70 pressed "Section is 2" "de/activated" (depending on actually status) Press button1371 "nothing" Release button 70 "de/activated" (status toggled) It seems Set_active is executed to late. It should be executed after pressing button 1371.
  10. Aha! I totally overlooked those"<" and ">", damn!
  11. No :) I just forgot to rename both "M3".*
  12. But if i want to save this dummey led/enc values to sd to load them again after restart there is no other way then using snapshots, right?
  13. Hi Thorsten, somehow i killed the code, yesterday. Now i allways get this error: [385453.834] [MBNG_FILE_C:143] ERROR: '(iD)BUTTON' not found in event pool by 'if' command! [385453.835] [MBNG_FILE_C:143] ERROR: invalid left value '(iD)BUTTON' in 'if' command! [385453.836] [MBNG_FILE_R:143] stopped script execution due to previous error! No matter what button i use in line 143. Strange... Would you please take a look at the code? It happens at .ngc line 10 Thank you very much! M³.zip
  14. Hi all, i use this script to change the function of enc=2 via button=1371 and button=1372. .ngc EVENT_BUTTON id= 70 hw_id= 70 type=Meta meta=SetBank range=1:2 meta=RunSection:2 EVENT_BUTTON id=1371 hw_id=1024 button_mode=toggle range=0:127 Bank=2 type=NoteOn chn=3 key=41 EVENT_BUTTON id=1372 hw_id=1017 button_mode=toggle range=0:127 Bank=2 type=NoteOn chn=3 key=42 EVENT_ENC id= 2 hw_id= 2 type=cc chn= 2 cc=111 range= 0:127 EVENT_ENC id=1371 hw_id= 2 type=cc chn=11 cc= 41 Bank=2 range= 0:127 EVENT_ENC id=1372 hw_id= 2 type=cc chn=11 cc= 42 Bank=2 range= 0:127 .ngr if ^section == 2 if (iD)BUTTON:1371 < 1 set_active (id)Enc:1371 0 else set_active (id)Enc:1371 1 endif if (iD)BUTTON:1372 < 1 set_active (id)Enc:1372 0 else set_active (id)Enc:1372 1 endif endif exit Now the problem: i have to push button=70 a second time before enc=1371 and enc=1372 get updated but i like them to update allready during hold down button=70 for the first time. How can i achieve this? Best regards Marxon
  15. 120 Buttons 13 Encoder 20 Potentiometer 7 Fader 40 RGB Leds 22 Duo Leds 22 Single Leds 16 8-Segment Led Bars 8 10-Segment Led Bars Number of Items: 457 Event Pool Allocation: 16299 of 24576 bytes (66%) And its still growing... Will there be a STM32F4 version of MidiboxNG in the near future?
  16. Hi undothis, If you are from Germany i would do the job.
  17. Hi again, Right! So that's the purpose of the set command. I did not really figure out how the multibnk.ngc example works... Thanks Best regards Marxon
  18. Thanks for your info Thorsten! Unfortunately i used mainly conditional events instead of banks. Therefore: back to the editor... Best regards Marxon
  19. Hi again, in my Midibox NG i use many controllers with multiple events (which are depending on other controller values) Now i wonder what is the better way in terms of performance: using banks or conditional events? Does it make a big difference? Thanks for your information Best regards Marxon
  20. Hi Midiboxers, Is it possible to save controller values somehow? My exact usecase would be this: Button 1 saves current value of encoder 1 and 2 Button 2 recalls values of encoder 1 and 2 Best regards Marxon
  21. Ok i will give it a try. Post results tomorrow. By the way: Happy Christmas to all!
  22. Thanks for your suggestion Pete! Using a hardware workaround is a good idea. Google will know it for sure. But some minutes ago i ad this idea: What if i use the BPM output to cycle between two banks? EVENT_LED id=1 type=Meta meta=CycleBank EVENT_LED id=2 hw_id=2 bank=1 type=NoteOn key=2 chn=1 Rgb=15:0:0 EVENT_LED id=3 hw_id=2 bank=2 type=NoteOn key=2 chn=1 Rgb=0:0:0
  23. Hi Thorsten, this is my situation: led id=5 is a blinking "beat" led to visualize bpm which gets triggered with a repeating midi note Key=5. Now, if i send midi note Key=1 then i want led id=1 to blink at the same speed like led id=5 and turn off if i release Key=1. If i send midi note Key=2 then i want led id=2 to blink at the same speed like led id=5 and turn off if i release Key=2... This should be no big "timing issue", right?
  24. Hi all, To be short: :happy: I have five leds. Each one controlled by a midi note. EVENT_LED id=1 type=NoteOn key=1 chn=1 EVENT_LED id=2 type=NoteOn key=2 chn=1 EVENT_LED id=3 type=NoteOn key=3 chn=1 EVENT_LED id=4 type=NoteOn key=4 chn=1 EVENT_LED id=5 type=NoteOn key=5 chn=1 Now i want that led 1 - 4 only turn on if the appropriate key and key 5 are received at the same time. I think the best way is to use Sender_ and Receiver_ instead of Led_events. But i dont get it working. May someone can help me out? Thanks a lot! Best regards Marxon
×
×
  • Create New...