Skip to content

Reduce ROM usage of music module#529

Merged
hexfet merged 2 commits intoDeviationTX:masterfrom
howard0su:music
Jan 3, 2019
Merged

Reduce ROM usage of music module#529
hexfet merged 2 commits intoDeviationTX:masterfrom
howard0su:music

Conversation

@howard0su
Copy link
Copy Markdown
Contributor

  1. Parse the name of tone instead of a table.
  2. Only store one scale of freq and caculate others.

1. Parse the name of tone instead of a table.
2. Only store one scale of freq and caculate others.
@howard0su
Copy link
Copy Markdown
Contributor Author

Don't know how to test this. The ROM size saving is noticable:

Before:
ROM: 0x08003000 - 0x0801fdb0 = 115.42kB
RAM: 0x20000000 - 0x200028a0 = 10.16kB

After:
ROM: 0x08003000 - 0x0801fc78 = 115.12kB
RAM: 0x20000000 - 0x200028a0 = 10.16kB

@howard0su howard0su changed the title Reduce ROM usage by music module Reduce ROM usage of music module Jan 2, 2019
Copy link
Copy Markdown
Contributor

@TheRealMoeder TheRealMoeder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reads good, will have to test on real TX to approve

@howard0su
Copy link
Copy Markdown
Contributor Author

verified on 7e, at least startup music works fine.

Copy link
Copy Markdown
Contributor

@TheRealMoeder TheRealMoeder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then it's fine.

@howard0su
Copy link
Copy Markdown
Contributor Author

maybe we should have a longer music for startup. it is fine to compose music like that.

@TheRealMoeder
Copy link
Copy Markdown
Contributor

maybe we should have a longer music for startup. it is fine to compose music like that.

Every user is open to do so. Feel free to compose a deviation theme if you wish ;-)

@hexfet hexfet merged commit be91761 into DeviationTX:master Jan 3, 2019
@howard0su howard0su deleted the music branch January 10, 2019 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants