spessasus / SpessaSynth

MIDI SoundFont/DLS synthesizer library written in JavaScript.
https://spessasus.github.io/SpessaSynth/
Other
98 stars 12 forks source link

[FEATURE REQUEST] Subtitle rendering support #69

Open TS53 opened 4 weeks ago

TS53 commented 4 weeks ago

Is your feature request related to a problem? Please describe. I saw that loading lyrics is already supported, would it be possible to also support subtitle rendering maybe even ASS subtitles, by uploading a subtitle file?

Is your feature related to the sound library or the app/website? The issue is only related to the app/website.

Describe the solution you'd like

Describe alternatives you've considered

Additional context

spessasus commented 4 weeks ago

Subtitles? What for? What would be the use case for this?

Also, Spessasynth does not load any lyrics externally, they come from the MIDI file.

TS53 commented 4 weeks ago

Karaoke support. Since the midi rendering works really good with Spessasynth, subtitle rendering would make it a perfect karaoke tool.

Yeah, I know that it's possible to embed the lyrics into the midi file, but it is less simple to read the lyrics at the expected time. Thus, my request for the subtitle rendering.

spessasus commented 4 weeks ago

Aren't .kar files used for this? According to my research, .ass is mostly used in videos.

TS53 commented 4 weeks ago

As far as I know, ASS subtitles are the way to go. They have specific Karaoke tags, to easily allow making subtitles a perfect fit for karaoke.

It will also include all settings like color, font and position of the subtitle rendering. So, no new GUI settings are required for this.

Other formats like SRT do not have karaoke support.

ASS subtitles would even make rendering of lyrics for choir music (multiple singer voices) possible.

spessasus commented 4 weeks ago

So, no new GUI settings are required for this.

But a completely new system for displaying them is. If I'll ever implement this feature, it will simply allow importing these into the decoded text window.

spessasus commented 4 weeks ago

And by the way, can you provide some example .ass files to test with?

TS53 commented 4 weeks ago

I will add some subtitles.

If I understand correctly, you mean that they would be rendered in the lyrics window? This would probably be a bit small, because I think currently there is no resize possibility of this window.

TS53 commented 3 weeks ago

I have now created the files:

Es geht eine dunkle Wolk herein.zip