Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile integration with ft2pently #36

Closed
pinobatch opened this issue Jan 14, 2019 · 0 comments
Closed

Makefile integration with ft2pently #36

pinobatch opened this issue Jan 14, 2019 · 0 comments

Comments

@pinobatch
Copy link
Owner

It'd be convenient to have an example that converts FamiTracker modules using @NovaSquirrel's ft2pently. This way whenever the FTM file changes, Make will re-convert it. I made the following recipes for the makefile of @adrian0901's port of sylviefluff's Mega Mountain. (#3 and #4 are already part of the present makefile.)

# 1. Convert FamiTracker binary module to text form
$(objdir)/%.txt: audio/%.ftm
	/path/to/famitracker.exe $< -export $@
# 2. Convert FamiTracker text module to Pently score
$(srcdir)/%.pently: $(objdir)/%.txt audio/sfx.pently
	/path/to/ft2p -i $< -o $@
# 3. Convert Pently score to assembler-ready bytecode
$(objdir)/%.s: tools/pentlyas.py audio/%.pently
	$(PY) $^ -o $@ --periods 76
# 4. Generate optimized RAM map based on enabled driver features
$(objdir)/pentlybss.inc: tools/pentlybss.py $(srcdir)/pentlyconfig.inc
	$(PY) $^ pentlymusicbase -o $@
pinobatch added a commit that referenced this issue Mar 11, 2019
Next after this is to plan which issues will and won't make the
cut for wip11.  These are my tentative top three:

- #1: Transpose of fallthrough (reported by #jroatch)
  It's always nice to try addressing the oldest issue on record.
- #36: ft2pently example (requested by @adrian0901)
  More people appear to prefer the tracker route. Make that easy.
- #2: Document reentrancy
  Many devs swear by calling the sound driver from the NMI handler
  in order to keep music from lagging even when the game lags.
  I'm not in that habit because of data races and stateful mappers
  (MMC1, MMC3, FME-7).  So I'll show my catch-up workaround.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant