First off, let me say that at a basic level the WIDI foot pedal works. It will make the BK-7m switch between variations, do fills, start.stop etc using the WIDI wireless MIDI system.
There’s at least one thing I need to change in my code relating to how I handle fills when I switch variations. With the hardwired FC-7 type foot switch, when you change variation, it plays a fill then switches. I assumed that when I told the BK-7m to change variation using midi, it would do the same thing.
Apparently not.
But it does sort of answer why there are three UP fills and three DOWN fills, something I wondered about.
It seems to me that when switching from a lower variation number to a higher one, I need to first send the appropriate fill and THEN switch variations. Four variations means three steps between them, which explains why there are three UP fill patterns and three DOWN fill patterns.
When going to a lower variation, I need to send the corresponding DOWN fill before switching to the new variation.
Assuming that’s how it’s supposed to work, it should not be a hard code change.
So, that’s the easy stuff!
On to the ‘real’ problems…
The first problem does not even involve the wireless foot pedal. I have a WIDI Bud Pro (the USB dongle) plugged into the USB port of my accordion and a WIDI Jack plugged into the BK-7m’s midi input (the midi out is not connected currently).At home this setup works great, no problems.
Yesterday I was playing for some seniors at a facility and had the same setup. I was using my homemade ‘real’ hard wired FC-7 pedal to control the BK-7m, not the wireless one so the accordion to BK-7m connection was the only midi connection involved.
For some reason, the setup would just not work properly. One one occasion the BK-7m just hung with a note playing. Other times it just stopped following the accordion. I was lucky to make it through a song without problems.
And of course, I had not taken a midi cable as backup!
I can only assume there was some sort of wireless interference that was affecting the blue tooth but it was totally unusable. I was only there to play a few pieces so it did not matter too much and what I played, they enjoyed but it really pissed me off!
I’ve also been having problems with the foot pedal I am building.
It will work just fine for a while and then it stops responding to the switches which means it is not sending MIDI to the BK-7m. The accordion is still connected and sending midi so the BK-7m is following the accordion and the volume pedal plugged into my foot pedal still works and sends MIDI just fine.
If I leave it for a while, a minute or so, it will start working again. WTF comes to mind.
The only theory I have is that something in the libraries I am using is trying to use more storage than I have available. I only have around 500 bytes (of 2k) of storage left for dynamic variables and stacks and the stuff that C creates so it’s possible that is the problem.
If I compile the code with the debugging stuff omitted it’s all a lot smaller ao more free space, which I might try and see how it works but I really need some code to monitor the storage usage to see if this is my problem or if it’s something else, although god only know what if it’s not this.
Update.
I found a memory usage library so I plugged that into my code. From what it is telling me, I am hardly using anything above the initial allocation.
I was only looking while in the main loop so it’s possible lower level functions consume some storage but I certainly don’t see any sort of ‘leak’ that would slowly consume memory.
So, it’s back to square one!