GithubHelp home page GithubHelp logo

audio-tags's Introduction

Audio Tags

Custom audio... with less boilerplate

An experimental thingie bridging Web Components with Web Audio.

First presented at Cascadia JS 2013. Grab the slides for the talk here.

The main idea is to be able to express modular audio setups in a declarative way, using web components.

Why? For prototyping, learning, whatever, and also... because why not?

To check it out

Open the examples folder and go through them.

How to use

A dist folder is provided with AudioTags.bundle.css and AudioTags.bundle.js. To use Audio Tags in your project you need to load them first, then register them, and wait for the DOMComponentsLoaded. Or in other words this is the minimum code you'd need:

<!doctype html>
<html>
	<head>
		<meta charset="utf8">
		<title>Registering AudioTags example</title>
		<link href="../../dist/AudioTags.bundle.css" rel="stylesheet" media="all" />
	</head>
	<body>
		<!--Audio Tags here-->
		<script src="../../dist/AudioTags.bundle.js" type="text/javascript"></script>
		<script>
			window.addEventListener('DOMComponentsLoaded', function() {
				require('AudioTags').register();
			}, false);
		</script>
	</body>
</html>

How to build

  • clone the repo
  • you need node installed in your system and browserify as global (npm install -g browserify)
  • cd to the folder where you cloned the project, then just run build.sh

Hopefully magic will happen.

As long as you're using something like Bash. I don't think it'll work in Windows but I'm happy to be proved wrong.

What is missing

  • When nodes are inserted or removed after initial page load.
  • The examples are kinda ugly.
  • The build system is pretty raw (build.sh).
  • Since we're depending on x-tags and including it on the bundle, what do we do to play nice with other libraries that use x-tag such as Brick?
  • Some other oddities.
  • Waveshaper is pretty unfinished and many other things are not quite done.
  • This is a prototype and I'm officially inviting you to fork this repository and play with the code. Maybe even send a PR. Let's discuss!

Used libraries

I'm using

audio-tags's People

Contributors

sole avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.