Closed microbit-carlos closed 3 months ago
@carlosperate would you be able to make a PR for this? Change looks good to me.
Unsure what's the preferred method to expose C++ define values to files in typescript. If could you let me know how you'd prefer to do that I am happy to send a PR, but the change is small enough that it might be quicker for somebody from the makecode team to create the PR themselves.
@microbit-carlos we actually have a script to surface all of the defines in CODAL in an enum in libs/core/dal.d.ts!
No need to run it though, see the PRs I just opened for a fix for this issue
Perfect, thanks @riknoll!
Currently the Sound Effect
fxnSteps
andfxParam
are values selected by the MakeCode team in https://github.com/microsoft/pxt/blob/5e2ff19c7d44bc659b997530c96b7ac9ad6a6551/webapp/src/components/soundEffectEditor/soundUtil.ts#L24-L42:These values work quite well and to ensure consistency across micro:bit implementations of SoundEffect it'd be good to have them as defaults in CODAL.
We've added them as defines, so it'd be great if the MakeCode team could adopt their usage: https://github.com/lancaster-university/codal-microbit-v2/commit/9a03c691c12474852819843f21e32908ab405a2f