You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! So I'm not an expert on JS, and I'm trying to figure out how to get a visualization in pattern, just like the trackers, if possible.
(Preferentially with a code snippet, I usually understand those better D: )
The text was updated successfully, but these errors were encountered:
Sorry for the late response. The library behind chiptunejs libopenmpt can do everything you'd expect from a tracker. It's the same code that OpenMPT is built upon. Exposing the functionality to JS is not always straight forward unfortunately. The first step is always to check libopenmpt C-API which we can call from JS.
You can find functions like openmpt_module_get_current_pattern and openmpt_module_format_pattern_row_channel that sound like they're be related to what you're trying to do.
It should return the index of the currently playing pattern. You can use that to go further.
By default only a limited number of functions are exposed via Emscripten to JS. So you might have to look into building a custom version of libopenmpt.js from the libopenmpt source. Make sure to use the Makefile based build system.
Hello! So I'm not an expert on JS, and I'm trying to figure out how to get a visualization in pattern, just like the trackers, if possible.
(Preferentially with a code snippet, I usually understand those better D: )
The text was updated successfully, but these errors were encountered: