Skip to main content

Setup Project

First we will set the stage for our new component. For simplicity we will put all our code into one index.html. We also will be using the Content Delivery Network (CDN) to consume alphaTab into our project so there will not be a need for any webserver, opening this index.html in your browser of choice will work for all steps in this tutorial.

If you prefer, you can also organize the project already into individual JavaScript and CSS files. For the sake of simplicity in this tutorial we put everything together.

As a step 1 create an index.html in any folder and open it the editor of your choice and your browser.

Once done we will add the basic wireframe of our page and include alphaTab. For this put the following code into your index.html

<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<title>AlphaTab Tutorial</title>
<script src=""></script>
<style type="text/css">
/* Our Styles will go here */
<div class="at-wrap">
<!-- Our whole component will go into this wrapper -->
<script type="text/javascript">
// Our JavaScript code will go here

But now the page is still empty. In the next step we will setup alphaTab and show some music notation.