GswaBuffer

Size
2,544 Kb
Views
8,096

How do I make an gswabuffer?

What is a gswabuffer? How do you make a gswabuffer? This script and codes were developed by Thomas Tortorini on 01 January 2023, Sunday.

GswaBuffer Previews

GswaBuffer - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>gswaBuffer</title> <link rel='stylesheet prefetch' href='css/gwjoje.css'>
</head>
<body> <div id="main">	<div id="desc">	<div id="title">gswaBuffer</div>	<a id="main-link" href="https://github.com/gridsound/gs-webaudio-library/tree/master/gswaBuffer">gs-webaudio-library / <b>gswaBuffer</b></a>	</div>
<pre id="cmp-wrapper">
var ctx = new AudioContext(), waBuf = new gswaBuffer();
waBuf.setContext( ctx );
waBuf.connect( ctx.destination );
waBuf.load( "<a href="https://gridsound.github.io/assets/demo-files/a.wav">a.wav</a>" ).then( function( audioBuffer ) { <a href="#">waBuf.start();</a> <a href="#">waBuf.start( 0, 0.2, 1 );</a> <a href="#">waBuf.stop();</a> <a href="#">waBuf.simpleStart().then( console.log.bind( console, "waBuf end" ) );</a>
} );
<span>waBuf.ABSNsLength; // </span><b id="len">0</b>
</pre>
</div> <script src='https://gridsound.github.io/gs-webaudio-library/gswaBuffer/gswaBuffer.js'></script> <script src="js/index.js"></script>
</body>
</html>

GswaBuffer - Script Codes JS Codes

var ctx = new AudioContext(),	waBuf = new gswaBuffer(),	urlBuf = "https://gridsound.github.io/assets/demo-files/a.wav",	elLen = document.querySelector( "#len" );
waBuf.setContext( ctx );
waBuf.connect( ctx.destination );
waBuf.load( urlBuf ).then( function( audioBuffer ) {	console.log( "waBuf.load().then( ... )" );
} );
Array.from( document.querySelectorAll( "#cmp-wrapper a[href='#']" ) )	.forEach( function( a ) {	a.onclick = function() {	eval( a.textContent );	return false;	};	} );
requestAnimationFrame( function frame() {	elLen.textContent = waBuf.ABSNsLength;	requestAnimationFrame( frame );
} );
GswaBuffer - Script Codes
GswaBuffer - Script Codes
Home Page Home
Developer Thomas Tortorini
Username mr21
Uploaded January 01, 2023
Rating 3
Size 2,544 Kb
Views 8,096
Do you need developer help for GswaBuffer?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Thomas Tortorini (mr21) Script Codes
Create amazing sales emails with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!