Giter Club home page Giter Club logo

ml_synth_organ_example's People

Contributors

marcel-licence avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ml_synth_organ_example's Issues

How to install on ESP32-A1S

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 :)

Does RP2040 fail gracefully?

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.

Undefined reference to `ScopeOled_Process()' on ESP32-S3

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

suggestion to match #ifdef MIDI_TX2_PIN

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

Can't compile for RP2040

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

Compilation error when trying to compile for generic ESP8266 using Arduino IDE 2.2.1

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.