Closed tfry-git closed 5 months ago
Memory usage change @ 2ec2126583202b5fe4bbe554ef58f6f6c3b3bb12
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 |
:small_red_triangle: +8 - +16 | +0.01 - +0.02 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:uno |
:small_red_triangle: +10 - +190 | +0.03 - +0.59 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_giga:giga |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:adafruit_circuitplayground_m0 |
:small_red_triangle: +8 - +20 | 0.0 - +0.01 | 0 - 0 | 0.0 - 0.0 |
esp8266:esp8266:huzzah |
N/A | N/A | N/A | N/A |
rp2040:rp2040:rpipico |
:small_red_triangle: +8 - +16 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
Memory usage change @ e7253c3eec16f2bfa5df7f75a464beb57b7a3743
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:uno |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_giga:giga |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:renesas_uno:minima |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:adafruit_circuitplayground_m0 |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
esp8266:esp8266:huzzah |
N/A | N/A | N/A | N/A |
rp2040:rp2040:rpipico |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
Memory usage change @ 30a03927f39bcc69f3b4e602fe23eb1de28999ba
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:uno |
:green_heart: -58 - 0 | -0.18 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_giga:giga |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:renesas_uno:minima |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:adafruit_circuitplayground_m0 |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
esp8266:esp8266:huzzah |
N/A | N/A | N/A | N/A |
rp2040:rp2040:rpipico |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
Memory usage change @ e21ddcf3adf326525412278796ca5c31bec3104b
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:uno |
:green_heart: -58 - 0 | -0.18 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_giga:giga |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:renesas_uno:minima |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:adafruit_circuitplayground_m0 |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
esp8266:esp8266:huzzah |
N/A | N/A | N/A | N/A |
rp2040:rp2040:rpipico |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
Memory usage change @ 8c230bab2465d7f40b3ca131625ba4ec899314b4
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:uno |
:green_heart: -58 - 0 | -0.18 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_giga:giga |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:renesas_uno:minima |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:adafruit_circuitplayground_m0 |
:small_red_triangle: 0 - +4 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
esp8266:esp8266:huzzah |
N/A | N/A | N/A | N/A |
rp2040:rp2040:rpipico |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
As mentioned, this is just a collection of small things, but some of these changes are quite "noisy", and so I don't think it make sense to stack up much more in this PR. Rather, I'd like to merge this bunch into devel/Mozzi2, then start fresh with other tidbits on the TODO list. Before I do, could you take a look?
I listed the changes in the summary.
Memory usage change @ a8571aac08f300f61e48ecf9a0bc1a01df95ca16
Board | flash | % | RAM for global variables | % |
---|---|---|---|---|
STMicroelectronics:stm32:GenF1:pnum=BLUEPILL_F103C8 |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:avr:uno |
:green_heart: -58 - 0 | -0.18 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:mbed_giga:giga |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:renesas_uno:minima |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
arduino:samd:adafruit_circuitplayground_m0 |
:small_red_triangle: 0 - +4 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
esp8266:esp8266:huzzah |
N/A | N/A | N/A | N/A |
rp2040:rp2040:rpipico |
0 - 0 | 0.0 - 0.0 | 0 - 0 | 0.0 - 0.0 |
This PR will be some time in the making too. It's intended to test-compile "small" changes for Mozzi 2.0 (see also #210).
Feel free to add your own stuff, too. The changes here are not logically related except for begin targetted at Mozzi 2.0.
What's in this PR:
STEREO_HACK
. With Mozzi 2.0, any changes to mozzi_config.h are obsolete, anyway.AudioOutput_t
that we had in addition toAudioOutput
(it can still be used, but will show a warning). Under the hood, the in mono config,updateAudio()
will now returnMonoOutput
, rather thanint
. (And still further under the hood, the compiler optimizes away everything. We're just removing a little weirdness in the code).AUDIO_RATE
andCONTROL_RATE
toMOZZI_AUDIO_RATE
andMOZZI_CONTROL_RATE
, everywhere. Since this could affect a larger number of sketches, the old names are still defined, and can still be set, but they simply aren't recommended, anymore, for consistency.MOZZI_CONTROL_RATE
up in all examples. This is for consistency with other config options, removes a compile-time warning, but may also avoid some subtle bugs: E.g. Phasor.h makes use of the define, and changing it after including that would have unexpected effects.startMozzi()
calls in examples. It used to be required, there, ifMOZZI_CONTROL_RATE
was customized, but it no longer is, when moving the define up in the sketch. So also in that respect,MOZZI_CONTROL_RATE
behave more consistent with other config defines, now. While the parameter still exists instartMozzi()
its usage is no longer encouraged.