Redefined modules for some files.
This commit is contained in:
@@ -10,11 +10,11 @@
|
||||
<script src="./assets/js/audioshowkit.js"></script>
|
||||
<div>
|
||||
<h1>Creating a Music Player</h1>
|
||||
<p>One of the most basic principles behind AudioShowKit is the {@link module:player/MusicPlayer}. The song player acts as an easy way for developers to set up a list of songs with simple generated controls while exposing more complex events if needed.</p>
|
||||
<p>One of the most basic principles behind AudioShowKit is the {@link MusicPlayer}. The song player acts as an easy way for developers to set up a list of songs with simple generated controls while exposing more complex events if needed.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h2>Instantiating a Music Player</h2>
|
||||
<p>Instantiating a music player requires a {@link module:player/MusicPlaylist}. See the [MusicPlaylist tutorial]{@tutorial MusicPlaylist} for information on how to get one of those! Once you have one, you can proceed with instantiating a Music Player.</p>
|
||||
<p>Instantiating a music player requires a {@link MusicPlaylist}. See the [MusicPlaylist tutorial]{@tutorial MusicPlaylist} for information on how to get one of those! Once you have one, you can proceed with instantiating a Music Player.</p>
|
||||
<pre><code class="language-js">
|
||||
const ask = window.audioshowkit; // Get a reference to the audioshowkit stuff.
|
||||
const playlist = previousPlaylist; // We are assuming you have a playlist ready.
|
||||
|
@@ -11,7 +11,7 @@
|
||||
<div>
|
||||
<h1>Creating a Music Playlist</h1>
|
||||
<p>
|
||||
A music playlist is a list of {@link module:player/Music} which maintains metadata about the playlist, such as the length, and the name of the playlist. It also keeps track of an index for a position in the playlist.
|
||||
A music playlist is a list of {@link Music} which maintains metadata about the playlist, such as the length, and the name of the playlist. It also keeps track of an index for a position in the playlist.
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
@@ -35,7 +35,7 @@
|
||||
playlist.add("/assets/audio/XXI.mp3", "XXI", "QR"); // Let's add another one.
|
||||
</code></pre>
|
||||
|
||||
<p>If for whatever reason, you decided to instantiate your own {@link module:player/Music}, that's okay too!</p>
|
||||
<p>If for whatever reason, you decided to instantiate your own {@link Music}, that's okay too!</p>
|
||||
<pre><code class="language-js">
|
||||
// Still using the same context from the instantiation example...
|
||||
|
||||
|
@@ -10,12 +10,12 @@
|
||||
<body>
|
||||
<div>
|
||||
<h1>Visualizing Music</h1>
|
||||
<p>This is the fun part. We can use a {@link module:player/VisualizedMusicPlayer} and a {@link module:player/MusicPlaylist} to create a music player that is like {@link module:player/MusicPlayer} but with the ability to automatically fetch the current {@link module:visualization/Visualizer}. On top of that, it then routes that visualizer data to {@link module:visualization/VisualizerUpdateManager} which can be to make much more refined mappings.</p>
|
||||
<p>This is the fun part. We can use a {@link VisualizedMusicPlayer} and a {@link MusicPlaylist} to create a music player that is like {@link MusicPlayer} but with the ability to automatically fetch the current {@link Visualizer}. On top of that, it then routes that visualizer data to {@link VisualizerUpdateManager} which can be to make much more refined mappings.</p>
|
||||
This library comes with a variety of mapping tools:
|
||||
<ul>
|
||||
<li>Want to map ranges of frequency bins to a plethora of element style properties? Take a look at {@link module:mapping/mappings}!</li>
|
||||
<li>Want to map ranges of frequency bins to a plethora of element style properties? Take a look at {@link module:mappings/numeric} and {@link module:mappings/dimensions}!</li>
|
||||
<li>Check out {@link module:patterns/canvas} for built in canvas patterns.</li>
|
||||
<li>We even do font size and color with the {@link module:mapping/text} module!</li>
|
||||
<li>We even do font size and color with the {@link module:mappings/text} module!</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div>
|
||||
|
Reference in New Issue
Block a user