electro-smith / DaisyExamples

Examples for the Daisy Platform
https://github.com/electro-smith/DaisyWiki/wiki
MIT License
372 stars 193 forks source link

Helper script overwrites function definitions inside source files #253

Open sedurCode opened 2 years ago

sedurCode commented 2 years ago

If I use the helper script to copy the pod midi example into a new project all the function and object definitions that included midi in the symbol are overwritten with the name of the new project. Example:

python helper.py copy myProjects/monosynth --source pod/Midi

Causes:

void HandlemonosynthMessage(monosynthEvent m)

in monosynth.cpp

Expected:

void HandleMidiMessage(MidiEvent m)

in monosynth.cpp

stephenhensley commented 2 years ago

Oh no!

Thanks for the bug report! We'll try to get this fixed up ASAP.

Can't recall why the script would be going into the cpp for the filename change anyway, should only have to change the file name for that one.