question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enumerating exported songs

See original GitHub issue

When exporting to either single-file music code or SFX code, I can’t find a clear way to understand what number is assigned to each exported song. Within FamiStudio I don’t see any way to look at a song and know what number it has, other than just counting down the list? If you have a hundred sound effects, this is not easy to manage.

Aside from displaying a track number within FamiStudio, what I would suggest is for FamiStudio to generate an enumerations file, something we can include to provide named constants instead of having to figure out the numbering. Perhaps an .inc file containing something like the following:

MUSIC_field = 0
MUSIC_shop = 1
MUSIC_lair = 2
MUSIC_COUNT = 3

SFX_jump = 0
SFX_fire = 1
SFX_hit = 2
SFX_COUNT = 3

That way if you need to add a new track, or remove one in the middle, we don’t have to figure out a whole new set of numbers, we can just use the named constants without worry that their changing values will invalidate the code.

In my own project, I am just separately creating an enumeration like this that I have to keep in sync with the FamiStudio file and verify by hand.

Bonus option: you might also provide a string table wrapped in a conditional guard so that, if the user has space for this data, the songs could be named at run-time for a sound test. (This is another thing I am keeping track of separately.)

.if MUSIC_STRINGS
music_strings:
.asciiz "field"
.asciiz "shop"
.asciiz "lair"
.endif

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bbbradsmithcommented, Feb 18, 2021

One more note: it would be helpful if the SFX export log could display not just warnings but the size of each song SFX exported, that way we could copy and paste it to have stats about the generated data.

0reactions
BleuBleucommented, Jun 1, 2021

Version 3.0.0 was just release. We can now reorder songs! Closing!.

Btw, this version also features 15-30% sound engine compression improvements. Im sure its too little too late for you project, but i tought id let you know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request: The ability to export song list.
The SongPicker lists song in a specific folder and was recently enhanced to easily move between folders. It would be wonderful for an...
Read more >
Export All Tracks Audio Files Appended with _1
I'm having issues with “Export All Tracks as Audio Files”, because Logic is appending file names in unexpectedly.
Read more >
How to export tracks as a new session in Pro Tools 11
LIVE HELP FOR PRO TOOLS: http://www.obedia.com/avid-pro-tools or call 323.319.4051 - seven days a week! Learn how to export tracks as AAF ...
Read more >
Uses for the Song Export Function
Uses for the Song Export Function. ... HTML is only used for formatting of lyrics, chords and notes within those fields, not for...
Read more >
Best Song Export Settings EXPLAINED (2021)
This article discusses the best song export settings for streaming and CDs. Furthermore, we also dive dep and explain WHY there are so...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found