O
O
Orkhan Hasanli2019-09-20 19:27:04
JavaScript
Orkhan Hasanli, 2019-09-20 19:27:04

How to create a player for guitar tablature?

Good afternoon!
I wanted to create a site for playing tablature created in guitar pro (gp5, etc.).
Is there a ready-made library in Java or Javascript? I plan to create a site based on Spring Boot (Java), but as I understand it, I need a js library to implement such functionality... I have never encountered anything like this before... Interested in the opinions of experts)
Interested in sites like:
songsterr.com
ultimate-guitar .com

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
Orkhan, 2019-09-20
@azerphoenix

In general, I opted for this library.
https://www.alphatab.net/
https://github.com/CoderLine/alphaTab
It seems to me that this is the most adequate free solution at the moment)))

N
Nikolay Alekseev, 2019-09-20
@VariusRain

There are no 100% ready-made libraries, and if you can find something (which I personally doubt), then it will most likely be paid.
Here you need to solve several problems:
1) Figure out how to reproduce the sound.
Using pure JS and HTML5, this is done in one line of code. Another question is what sound should be played
. Here I see two options:
2) It is necessary to decide what exactly to reproduce. Since tablature can be written in different programs, and not only in guitarpro, then, most likely, it would be more correct to follow the path of universalization. One way or another, gtp is a proprietary format and it will be very expensive to read it on the JS side. It seems to me that it is necessary to parse the tab file uploaded there on the server side and convert it to midi or some kind of proprietary format and already give it for playback.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question