Hi,
I’m starting a new project with midibox. The goal is to filter incoming midi messages. some mesages i want to convert, some other to block.
I have a Boss midi pedal controller sending only “program change” messages.
I want to play a sample when pressing a pedal, but my sampler need “note on/off” messages.
So the midibox is placed between pedalboard and sampler and needs to convert/filter the messages following a precise table.
The Core V3 pcb is now built, PIC18f452 burnt with bootloader v1.2, then succesfully updated with MIOS v1.9.
I also uploaded the “change_id_v1_9c.zip” troubleshooting app to confirm MIOS is up and running, and application upload also.
In midiox, i receive a correct CC message “0427” saying All is good !
Now i’m writing code in MPLAB, compilation goes well, but my code is ineficient due to my lack of knowledge in programming. I’d prefer to use assembler because my pc is ready to go with it. I haven’t installed the necessary softwares to program in C.
So i’m asking for your help here with those questions :
- Where do i need to put my code for filtering ?
(in main.asm in “Notify_Received event” section ?)
-
do i need to do “addlw 0x07” before reading or writing any byte ?
-
is it necessary to use “MIOS_begin_stream” ?
-
How to send a complete midi event ?
-
Here is the table of conversion i want to apply
IN : incoming messages to midibox (from pedalboard) in hexa
OUT : message to be transmited (or not) when corresponding message is received
IN hex OUT hex ACTION
-----------------------------------
PC00 NoteOn24 CONVERT
PC01 NoteOn25 CONVERT
PC02 NoteOn26 CONVERT
PC03 NoteOn27 CONVERT
PC04 X ALL NOTE OFF
PC05 NoteOn29 CONVERT
PC06 NoteOn2A CONVERT
PC07 NoteOn2B CONVERT
PC08 NoteOn2C CONVERT
PC09 X ALL NOTE OFF
PC0A X BLOCK
PC0B X BLOCK
PC0C X BLOCK
PC0D XX BLOCK
PC0E X BLOCK
PC0F X BLOCK
PC10 PC11 PASS
PC11 PC12 PASS
PC12 PC13 PASS
PC13 X BLOCK
PC14 PC15 PASS
PC15 PC16 PASS
PC16 PC17 PASS
PC17 PC18 PASS
PC18 X BLOCK
PC19 PC1A PASS
PC1A X BLOCK
PC1B X BLOCK
PC1C X BLOCK
... X BLOCK
... X BLOCK
... ... ...
I’m looking forward to your help, so it could help me make a first step into MIOS programming for next applications.
thank you, RAPHAEL.


