maxint-rd / MmlMusic

Arduino library to play multi-track MML music using different sound devices.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TODO: optimize memory for ATtiny85

maxint-rd opened this issue · comments

Currently the frequency table is 12 notes by 7 octaves of 4-byte floats, stored in PROGMEM.
On resource limited MCUs such as ATtiny the amount of memory used can be reduced quite a bit by storing a uint16_t table for only the highest octave and then use shift >>1 to divide by two to get the values of a lower octave.