marcel-licence / ml_synth_organ_example Goto Github PK
View Code? Open in Web Editor NEWESP32, ESP8266 based MIDI Organ using the ML_SynthTools library (little example arduino project)
License: GNU General Public License v3.0
ESP32, ESP8266 based MIDI Organ using the ML_SynthTools library (little example arduino project)
License: GNU General Public License v3.0
Hello,
my board just arrived and I wanted to try the organ out.
But I'm little lost with all the configurations and platforms. Do you have any tutorial on how to get this working on this specific board?
Thanks :)
While building the organ sample, I needed a test file and so I used this midi file.
I drive the RPiPICO via USB from a midi player running on Windows.
The RPiPICO will crash/lockup once the midi data becomes heavy and relentless. Power cycling is the only option.
TBH: I’m not surprised. I’m more curious if the ML_SynthTools (and/or example code) should fail gracefully by dropping notes or some other behavior vs crashing completely and requiring a reboot.
Hello.
I'm playing with ml_synth_organ_example
using EPS32-S3 based ESP32-S3-DEV-KIT-N8R8 board from waveshare.
I've successfuly managed to use MIDI-IN using 6N138
and PCM5102A
DAC and I have much fun plaing with it.
However, I have a problem with scope. When I define OLED_OSC_DISP_ENABLED, compilation fails with the following message:
undefined reference to `ScopeOled_Process()'
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp32-s3-devkitc-1\firmware.elf] Error 1
I'm using vscode + platformio. My platfomio.ini
file is:
[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
upload_port = com11
monitor_port = com11
monitor_speed = 115200
lib_deps =
adafruit/Adafruit SSD1306@^2.5.7
adafruit/Adafruit GFX Library@^1.11.7
https://github.com/marcel-licence/ML_SynthTools.git
adafruit/Adafruit BusIO@^1.14.1
build_flags =
-L"${platformio.lib_dir}"
-lML_SynthTools
I'm comiling code using esp32s3 variant of precompiled SynthTools
library by
placing ML SynthTools\src\esp32s3\ML_SynthTools.a
file in "${platformio.lib_dir}"
folder and renaming it to libML_SynthTools.a
.
Am I doing something wrong or is it possible, that ESP32-S3 version has no scope support compiled in?
Best regards,
Piotr Poznański
In ml_synth_organ_example.ino
There is a compile error if you don't have MIDI_TX2_PIN defined (i have the RX pin defined) because in the midi module this Midi_SendShortMessage ... is reliant on the #ifdef MIDI_TX2_PIN so I added that to remove the compile issue as I am just adding the USB_Midi_host hardware and testing
#ifdef MIDI_VIA_USB_ENABLED
void App_UsbMidiShortMsgReceived(uint8_t *msg)
{
#ifdef MIDI_TX2_PIN
Midi_SendShortMessage(msg);
#endif
Midi_HandleShortMsg(msg, 8);
}
#endif
Hi,
the organ sound great!
Do you know why i have this issue? I added the board as described here:
/home/schef/git/ml_synth_organ_example/audio_module.ino: In function 'void Audio_Setup()':
audio_module:118:13: error: expected primary-expression before '.' token
118 | if (!I2S.begin(SAMPLE_RATE))
| ^
/home/schef/git/ml_synth_organ_example/audio_module.ino: In function 'void Audio_OutputMono(const int32_t*)':
audio_module:339:12: error: expected unqualified-id before '.' token
339 | I2S.write(u16int[i]);
| ^
exit status 1
expected primary-expression before '.' token
Thanks
Hello! Just tried compiling this for a generic ESP8266 board but received the following error:
`In file included from /Users/rich/Downloads/ml_synth_organ_example/ml_synth_organ_example.ino:46:
/Users/rich/Downloads/ml_synth_organ_example/ml_synth_organ_example.ino: In function 'void setup()':
/Users/rich/Downloads/ml_synth_organ_example/config.h:90:21: error: invalid conversion from 'int' to 'Stream*' [-fpermissive]
90 | #define SAMPLE_RATE 44100
| ^~~~~
| |
| int
/Users/rich/Downloads/ml_synth_organ_example/ml_synth_organ_example.ino:152:17: note: in expansion of macro 'SAMPLE_RATE'
152 | Organ_Setup(SAMPLE_RATE);
| ^~~~~~~~~~~
/Users/rich/Downloads/ml_synth_organ_example/ml_synth_organ_example.ino:152:28: error: too few arguments to function 'void Organ_Setup(Stream*, float)'
152 | Organ_Setup(SAMPLE_RATE);
| ^
In file included from /Users/rich/Downloads/ml_synth_organ_example/ml_synth_organ_example.ino:57:
/Users/rich/Documents/Arduino/libraries/ML_SynthTools/src/ml_organ.h:86:6: note: declared here
86 | void Organ_Setup(Stream *ser, float sample_rate);
| ^~~~~~~~~~~
exit status 1
Compilation error: invalid conversion from 'int' to 'Stream*' [-fpermissive]`
I'm new to Arduino so any advice is appreciated. Thanks!
edit: Closed - I downloaded ML_SynthTools from master instead of v1.1.0 release.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.