paulhamsh / SparkMIDI

Midi control capability for the Spark 40 Amp
Apache License 2.0
10 stars 4 forks source link

using midiflow for bridge wifi ble midi #2

Open Yui-Huang opened 2 years ago

Yui-Huang commented 2 years ago

Hi I'd like to use the midiflow app to bridge the wifi and ble midi

https://www.midiflow.com/

but I could not find the ESP32's ble which named as "Spark 40 BLE"

the midiflow only search the MIDI uuid and Characteristic

MIDI UUID "03B80E5A-EDE8-4B33-A751-6CE34EC4C700" MIDI Characteristic "7772E5DB-3868-4112-A1A9-F2669D106BF3"

could you add the MIDI uuid and characteristic to SparkMIDI?

Thanks you

paulhamsh commented 2 years ago

Hi The esp app and the spark don’t accept midi inputs that way. The app connects to a midi ble keyboard so it is the keyboard that advertises uuids - like the Blueboard or LPD8 Wireless. Perhaps that app can look like a midi device and the SparkMIDI app can connect to it? The website doesn’t imply it does anything like that. What is your goal, though? The SparkMIDI app could advertise as though it was a ble midi device, but probably not at the same time as allowing the Spark app to connect. You mention wifi but there is no wifi for Spark. Paul

On 6 Jan 2022, at 17:07, 惟 @.***> wrote:

 Hi I'd like to use the midiflow app to bridge the wifi and ble midi

https://www.midiflow.com/

but I could not find the ESP32's ble which named as "Spark 40 BLE"

the midiflow only search the MIDI uuid and Characteristic

MIDI UUID "03B80E5A-EDE8-4B33-A751-6CE34EC4C700" MIDI Characteristic "7772E5DB-3868-4112-A1A9-F2669D106BF3"

could you add the MIDI uuid and characteristic to SparkMIDI?

Thanks you

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

Yui-Huang commented 2 years ago

https://www.facebook.com/groups/241616417119881/permalink/447462786535242/

I use midiflow to bridge the pg bt4 padel

https://help.positivegrid.com/hc/en-us/articles/207044463-BT-4-Pedal-User-Guide

the flow control as below PG BT4 —secure BLE--> BT Padel editor APP -> midiflow APP -> ESP32 BLE as Spark 40 BLE -> Spark APP

I wish to use SparkMIDI replace the ESP32 part

paulhamsh commented 2 years ago

I remember that post - I was really intrigued how it worked! Can you share how your esp32 code worked for it? It looks like you had the Spark app connected and also, from below, were converting the ble midi to Spark commands using the esp32? So you had the esp32 advertising as a ble midi device? And had the app connected to the esp32 as well?

On 6 Jan 2022, at 18:06, 惟 @.***> wrote:

 https://www.facebook.com/groups/241616417119881/permalink/447462786535242/

I use midiflow to bridge the pg bt4 padel

https://help.positivegrid.com/hc/en-us/articles/207044463-BT-4-Pedal-User-Guide

the flow control as below PG BT4 —secure BLE--> BT Padel editor APP -> midiflow APP -> ESP32 BLE as Spark 40 BLE -> Spark APP

I wish to use SparkMIDI replace the ESP32 part

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

paulhamsh commented 2 years ago

Actually just re-read this - you are controlling the Spark app from the esp32?

On 6 Jan 2022, at 18:30, Paul Hamshere @.***> wrote:

 I remember that post - I was really intrigued how it worked! Can you share how your esp32 code worked for it? It looks like you had the Spark app connected and also, from below, were converting the ble midi to Spark commands using the esp32? So you had the esp32 advertising as a ble midi device? And had the app connected to the esp32 as well?

On 6 Jan 2022, at 18:06, 惟 @.***> wrote:

 https://www.facebook.com/groups/241616417119881/permalink/447462786535242/

I use midiflow to bridge the pg bt4 padel

https://help.positivegrid.com/hc/en-us/articles/207044463-BT-4-Pedal-User-Guide

the flow control as below PG BT4 —secure BLE--> BT Padel editor APP -> midiflow APP -> ESP32 BLE as Spark 40 BLE -> Spark APP

I wish to use SparkMIDI replace the ESP32 part

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Yui-Huang commented 2 years ago

it only control the spark app, no spark amp, I try to connect to them together, but it is not stable, always crash. so I wish to use two ESP32 and serial by uart. but iI’m become very busy, so just pendding it.

I need to check old computer for the code

Yui-Huang commented 2 years ago

sorry, my old pc’s ssd is broken, i have no code

paulhamsh commented 2 years ago

I think I can get an esp to advertise like it is a midi device and turn the midi commands into Spark commands - perhaps I will try it with preset changes. That would allow any ble midi capable thing like an ipad to control the amp through midi.

On 7 Jan 2022, at 03:22, 惟 @.***> wrote:

 it only control the spark app, no spark amp, I try to connect to them together, but it is not stable, always crash. so I wish to use two ESP32 and serial by uart. but iI’m become very busy, so just pendding it.

I need to check old computer for the code

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Yui-Huang commented 2 years ago

thanks for your help :)

paulhamsh commented 2 years ago

Try the latest version (v7) - I've made it advertise as a MIDI BLE device and it currently processes the MIDI received - CC50 -53 change the hardware preset. Tested with MIDI Wrench on IOS.

Please try it and let me know if it works for you.

Yui-Huang commented 2 years ago

Hi, I test it the cc50-53 work fine, I could use the padel control the AMP and the APP. but the pedal BT-4 setting to cc will latch the LED, I wish to use pc to change preset. But it have no luck with pc. do you test the pc?

paulhamsh commented 2 years ago

Not tried it - what MIDI PC commands from the pedal do you want to map and I will try…

On 11 Jan 2022, at 14:06, 惟 @.***> wrote:

 Hi, I test it the cc50-53 work fine, I could use the padel control the AMP and the APP. but the pedal BT-4 setting to cc will latch the LED, I wish to use pc to change preset. But it have no luck with pc. do you test the pc?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

Yui-Huang commented 2 years ago

I test the

0xC0 0x00 0xC0 0x01 0xC0 0x02 0xC0 0x03

as the FCB1010 using in your code.

but with no luck

paulhamsh commented 2 years ago

The fcb is din midi - I thought you were testing ble midi? And you need a three-byte sequence so 0xC0 0 nn Do you get anything on the serial monitor?

On 12 Jan 2022, at 02:32, 惟 @.***> wrote:

 I test the

0xC0 0x00 0xC0 0x01 0xC0 0x02 0xC0 0x03

as the FCB1010 using in your code.

but with no luck

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

paulhamsh commented 2 years ago

I think I may know - my midi code expects 3 bytes per message in serial, 5 bytes in ble midi and I think 3 for usb midi - and a PC is two. I've read the ble midi spec and I need to code for that, it seems a bit complex, and I need to check how serial and usb midi really work - I had copied code and it makes the assumptions above. Interestingly the fcb worked for me but not sure if that was serial midi or usb - probably serial.

paulhamsh commented 2 years ago

Updated MIDI8 to check for the two-byte C0 and D0 messages (in Serial/DIN midi)- can you try that. USB Host and Serial/DIN should now cope with C0 and D0 - I will take some time to sort BLE midi - it seems a bit complex. Also this doesn't cope with running MIDI for Serial/DIN (or BLE).

paulhamsh commented 2 years ago

Updated again to sort BLE MIDI. Probably need to harmonise the code into a MIDI class.