preenfm Forum
PreenFM => preenfm2 and preenfm3 => Topic started by: Davidttl on April 17, 2025, 10:23:26 PM
-
Hi,
I have a small problem that is bothering me.
CC 14 instead of working only on unison spread it also starts the sequencer. And it is slowly driving me crazy.
case CC_UNISON_DETUNE:
this->synth->setNewValueFromMidi(timbre, ROW_ENGINE2, ENCODER_ENGINE2_UNISON_DETUNE,
((float)midiEvent.value[1]) * INV64 - 1.0f);
break;
case CC_UNISON_SPREAD:
this->synth->setNewValueFromMidi(timbre, ROW_ENGINE2, ENCODER_ENGINE2_UNISON_SPREAD,
(float)midiEvent.value[1] * INV127);
case CC_SEQ_START_ALL:
this->synth->setNewSeqValueFromMidi(timbre, SEQ_VALUE_PLAY_ALL, midiEvent.value[1]);
break;
And it looks like there is no “break;” before the next case CC_SEQ_START_ALL:
All good, I'll be happy to test the changes for myself, but........
I have a problem to create a .bin file :)
There is no make in the folder, STM32CubeIDE is unknown to me but I tried. Lost files, folders - ok, SD card settings - not so good, problems with the clock - is it serious?!
So, what's the story with that firmware ?
I tried from the official repo and all I have left is a headache.
What is a trivial way to compile this firmware ?
Thanks
-
hi,
here is a fw built with that missing break, on top of my latest fw (with the paraphonic bandpass).
but if you want to compile yourself the fw :
- use stm32cubeide Version: 1.5.1
- compile the release firmware
- in /scripts, edit ./create_object.sh :
change the OBJCOPY_BIN path according to you configuration
(that file is from ARM Toolchain)
i personnaly put it in the script directory, so OBJCOPY_BIN="./arm-none-eabi-objcopy"
- in a terminal :
- cd ./scripts
- ./create_object.sh
the .bin should then be found in the /script folder
-
Hi,
thank you for your quick response.
I tried this method, but I still need the .elf file (because the bootloader's .bin is in the repo and you need both files).
In my case, the Problem Exists Between Keyboard And Chair and this is not a joke as I lack experience with C/C++.
Slowly, maybe on the third or sometime next time (two are already behind me), I'll manage to set up the master repo that I'll have the .bin files every time, without 2-70 errors and then I'll just start some fixes/downgrades.
Thanks again.
edit: small update: still nothing. A little closer, but I'm not giving up. It seems that I threw myself in the deep end thinking that it will be something as easy as AVR and Atmega :)
I'll try to upload a preset bank in the next few days, as I'm working on a template bank. FM synthesis has powerful capabilities, just setting it all up when you have really a lot of options (Preenfm3 is king here) takes a lot of time.