# troloop

> test audioBufferSource node for web audio API

Latest version **2.0.0** (published 2013-03-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install troloop
pnpm add troloop
yarn add troloop
bun add troloop
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2013-03-14 |
| First published | 2013-03-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | johnny |
| Maintainers | johnnyscript |

## Links

- npm: https://www.npmjs.com/package/troloop
- npm.io page: https://npm.io/package/troloop

## Recent versions

- 2.0.0 (latest) — 2013-03-14
- 1.4.0 — 2013-03-14
- 1.2.0 — 2013-03-14
- 1.0.0 — 2013-03-14

## README

# troloop

An html5 Web Audio bufferSource Node, for testing purposes. The node will play a 17 second track converted from a base64 encoded wav file (included). You can connect it to any other web audio node, including [webaudio nodes](http://github.com/NHQ/webaudio)

This module is for use with [Browserify](http://github.com/substack/browserify) 

## usage

```js
var audioContext = new webkitAudioContext();
var troloop = require('troloop');

audioSourceBuffer = troloop(context)

audioSourceBuffer.start(0)
```

or use it with [webaudio](http://github.com/NHQ/webaudio)

```js
var webaudio = require('webaudio');
var audioContext = new webkitAudioContext();
var troloop = require('./');
var amod = require('amod');
var audioSourceBuffer = troloop(audioContext)

function wubwub(time, i, sample){
	return sample * amod(.5, .4, time, .5)
}

var wubNode = webaudio(audioContext, wubwub);

audioSourceBuffer.connect(wubNode)

wubNode.connect(audioContext.destination)

audioSourceBuffer.start(0)
```

---
_Source: https://npm.io/package/troloop · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
