Search the Community
Showing results for tags 'LPC17force function'.
-
hello can give me someone a littel C instruction... i dont write my code here, because its 2000 lines long.... it is more a generell newbe question then something specific --- i think its a standart knowhow that i just have to know, to do more complex progamms... anyway: my APP has following Midibox -standart-functions: void APP_Init(void){} void APP_Tick(void){}//counts DECAY Timings, and do with that NOTE-OFF Handling void APP_Background(Void){} void APP_MIDI_NotifyPackage(mios32void APP_MIDI_NotifyPackage(mios32_midi_port_t port, mios32_midi_package_t midi_package){}//do Note-ON-Handling, MidiInCC void APP_SRIO_ServicePrepare(void){}//filling the 8x8 LED-Matrix void APP_SRIO_ServiceFinish(void)}//nothing void APP_DIN_NotifyToggle(u32 pin, u32 pin_value)}//All Buttons, and Virtual Matrix Buttons void APP_ENC_NotifyChange(u32 encoder, s32 incrementer)}//Menue Encoders void APP_AIN_NotifyChange(u32 pin, u32 pin_value)}//4 Potis void BUTTON_NotifyToggle(u8 row, u8 column, u8 pin_value, u32 timestamp){}//nothing.... with the MidiBox Buttons that are connectet to the DIN-Modules --- I am in the "DIN_Notifiy" Lo and HIs: I do there most things that happens only one time: when i hit a button - something happens - up to an end, where nothing happens... everthing runs perfect in this closed box, I am happy like a childe with a blinking led speaking robot, and aslong i dont need a time counter like and DECAY-Time it is serial and very logical (for me)... I run into problems when I want to Remote this APP extra via "Midi_Notify" -like an footboard (MB Buttons and Midi Note On/OFFs controll the some Code): - problems? > many code strings are locatet in the DIN_Notify, from Midi-Notify I dont have access to the DIN --- in Din there must be Triggerd something... else nothing is happening there.... So my idea was: Is there a way to force, fake, call from MidiNotify to DinNotify? >>> MidiNoteOn comes in >>> fake Din Pin HI, >>> MidiNoteOff Comes in >>> fake Din Pin LO Event??? like "force pin = 32, pin_value =1" away of that serial processing of triggers (without program loop) i found also loops here "App_Tick" and "App_Background" --- so i run into a world that is not mine... not mine in the past... so tried a workaround, by puting my CODE-Strings (Calculations) under the "APP_Tick" Function, and manage-ing the DIN and Midi HI and LOs --- by working with "Done 0" "Done 1" Flags...to avoid endless triggers on code blocks (each ms) but with that i get so much flags, unbelieveable... @the end off the program there is something and in top this and 2000 lines between others.... mindfuck... and @ the end of day the machine does anything but not that what i want off... (maybe because there is so much code...) Bevore this workaround, i used this TICK only for LCD-Menue & for the Decay-Time for the NoteOFF Events (Note On I do in the Midi-Notify Tread) I come from max msp, and all there is TRIGGER, that triggers this and that, and after a serial way of happenings the code ends... --- so I like that "Midi or DIN trigger a event" very much... for me its logical... that Din and Midi Events in differnt Treads/Functions cracks my head --- help please. michi
- 3 replies
-
- LPC17force function
- triggering events
-
(and 2 more)
Tagged with: