chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.56k stars 470 forks source link

[Feature] Ability to preview Music in-engine as if emulated #172

Open timsamoff opened 5 years ago

timsamoff commented 5 years ago

Note: for support questions, please use one of the following channels.

Reddit: /r/gbstudio Discord: Join Chat

This repository's issues are reserved for feature requests and bug reports.

Feature.

Currently, music can be previewed from the Scene Script, but it plays all Mods as if they were compatible in the emulator (i.e., it's just a Mod player and doesn't care about format/instruments). It would be nice to be able to hear music as it will sound when emulated, without having to Build and test.

To preview music as it will actually sound in the game.

Editing efficiency.

RichardULZ commented 5 years ago

It is possible we could butcher the current script tracker to have less features, to more closely resemble in game music. https://github.com/chrismaltby/gb-studio/tree/develop/src/lib/vendor/scriptracker

The grand solution would be to compile a game with one song when play is clicked, but you would loose the immediacy of play, as it would still have to build the song and game.

timsamoff commented 5 years ago

This solution would need more consensus, I guess, but it would work for me -- much better than compiling and playing through many minutes just to finally get to the scene where that music is located.

RichardULZ commented 5 years ago

Which solution? 1 hacking up the JavaScript mod player for instant rough testing, or 2 A compiler that builds a project with 1 song and emulates it exactly.

I normally have a seperate project just for song tests, but all song get recompiled each build.

You can also press "P" in a scene to set your starting position, provided you're not setting up input scripts at start.

Or set up dummy scenes for each song on start, and press p in one to test, if you can handle compile times.

timsamoff commented 5 years ago

Good question. 👍🏼

I'd love for others to help make a decision for best overall UX.

(Btw, I didn't know about the "P" key trick.)