-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MIDI features / example #32
Comments
@knopserl I'm sorry I overlooked your question. On the other hand something similar could be done to handle the MIDI, but you would have to look on some forums or in VS0153 specification, to find what to call to ensure that the board is in the MIDI mode. Sometimes, for some hardware, it is required to configure jumpers properly. Please see this for example: https://learn.adafruit.com/adafruit-vs1053-mp3-aac-ogg-midi-wav-play-and-record-codec-tutorial/midi-connections . If you add proper jumpers, the board will boot up in MIDI mode. I don't know what if about your case, but maybe something similar. You can also see an interesting comment in the beginning of this code example. It says "Solder closed jumper on bottom!". So for sure there is something if about jumpers to handle the MIDI mode properly. But on the other hand maybe you already did some progress if about this topic? |
@baldram long time ago, bcause I was busy with another ESP32 project. Now I'm back on the MIDI toolbox. I'm still looking for a good VS1053 lib which supports or provide MIDI functionality. MP3 examples are shown everywhere (seem to be the only well documented use case), MIDI is still a bit of a secret. |
@knopserl Thanks for reply. Please see what I found in the "original" version of this library (it is mentioned in the README). Here is the source and you will find the RtMidi class what is missing in ESP_VS1053_Library. The MIDI part was not included in "Edzelf/Esp-radio" project when I was extracting the ESP compatible version of the library. Now it looks like the MIDI part could be extracted from the original maniacbug's project and added here (and ported to ESP if needed). What do you think? |
@knopserl looks like we are hunting for the same thing, i started down the track with https://github.com/MajicDesigns/MD_MIDIFile but haven't had any success on the ESP32 - https://forum.arduino.cc/index.php?topic=620916.0 ... Might see about soldering some connections on the vs1053 to get MIDI mode forced.... |
@flossandmeditate lets see, I don't give up yet. The MIDI mode should be possible to be enabled via a SPI code sequence not requiring real time MIDI. Real time MIDI mode required GPIO0 and 1 to be in certaion states when powering up/reseting. I want to switch the VS1053b via SW which is SPI not requiring the mentioned pins soldered and connected. |
The missing piece could be mentioned RtMidi class which can be ported to ESP (if needed) and added to the library. If about the hardware things (soldering or not) to enable the MIDI mode I keep fingers crosses. |
@baldram RT MIDI by loding a usercode to the VS1053B works, it does then play MIDI notes. |
@knopserl That's good news. Thank you for testing this. |
While trying to figure out, why I get MIDI on the VS1053 using the library, but not on the VS1003, I stumbled across a bug in the loadUserCode function, which results in no patches being loaded at all. Will continue to discuss this in #66 Support loading patches. |
That would be amazing @Dr-Dawg! 🤟 |
AFK dor 2 1/2 weeks. The MIDI example is ready, I will start a PR when I'm back, eventually including changes in the loadUserCode function, but I think it's fine with two parameters and the Bugfix-PR can be merged. I just checked the code of @maniacbug and he did the same, so it's "back to the roots" ;-) |
Thanks @Dr-Dawg for checking the solution in the "root" code! So let's merge it. |
Ok, there's a little time left, so here we go.. There seems to be an issue with VS1003 devices not reacting / running to an infinite loop after loading the MIDI patch, see http://www.vsdsp-forum.com/phpbb/viewtopic.php?t=1151 Have fun! I'm curious to hear whether anyone tested the example :-) |
Thank you! I will look into this more carefully after office hours.
I agree, and I have the same feeling. I would even think whether it is possible to extract the MIDI related stuff to separate
😏 |
This article ( i tested successfully running a VS1003 ) using RTMIDI ) on generic VS10xx boards ... https://diyelectromusic.wordpress.com/2021/01/31/arduino-midi-vs1003-or-vs1053-synth/ |
@stanleyseow Actually all work is done here in this MR: #83 PS: I need to re-setup my workshop and then test this stuff. Sorry @Dr-Dawg it takes so long. |
Thanks for this library, which I'm using with an ESP32. Seem to work fine, at least the MP3 demo with the peep tone.
I'm looking for the built in MIDI features and playing MIDI songs (via the SD card) or programatically.
I have tried other VS1053B libs with MIDI examples without success.
I'm using the VS1053B MP3 Shield from geeetech and don't know how to send MIDI notes to whoch RX Pin or via SPI an dhow to activate the MIDI GM mode.
Maybe you can help me out?
THis is the module I'm currently using (it claims to have MIDI support)
https://www.aliexpress.com/item/MP3-Music-VS1053B-shield-board-with-TF-card-slot-work-with-UNO-MEGA/32649280181.html?spm=2114.search0104.3.15.27304502ECvItk&ws_ab_test=searchweb0_0,searchweb201602_5_10065_10068_10547_319_317_10548_10696_10084_453_454_10083_10618_10304_10307_10820_10821_538_537_10302_536_10059_10884_10887_100031_321_322_10103,searchweb201603_52,ppcSwitch_0&algo_expid=b00970c1-1881-4860-99cd-1a7402eab081-2&algo_pvid=b00970c1-1881-4860-99cd-1a7402eab081
The text was updated successfully, but these errors were encountered: