1.15.1 • Published 5 years ago

cancelandholdattime-polyfill v1.15.1

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

cancelandholdattime-polyfill

Polyfill for AudioParam.prototype.cancelAndHoldAtTime()

Donate Build Status semantic-release Commitizen friendly JavaScript Style Guide

What is this project

AudioParam.prototype.cancelAndHoldAtTime() is an experimental function in the Web Audio API and only supported by Chrome based browsers.

Installation

Method 1 - add the built version to your code

Download and add https://github.com/the-monochord/cancelandholdattime-polyfill/blob/master/dist/cancelandholdattime-polyfill.min.js to your js files, then add it to your html page before other webaudio scripts with a script tag.

Method 2 - ES6 import in a nodejs project

Add the polyfill to your nodejs project by running npm i cancelandholdattime-polyfill.

Then import it in your main script:

import 'cancelandholdattime-polyfill'

// ... other imports

Method 3 - add it to your project in build time with webpack

Add the polyfill to your nodejs project by running npm i cancelandholdattime-polyfill.

Then add it to the webpack config before other files in the entry point:

// webpack.config.js
const config = {
  entry: {
    'youroutput': [
      'cancelandholdattime-polyfill/dist/cancelandholdattime-polyfill.min.js',
      './src/index.js'
    ]
  },
  // ...
}

Resources

1.15.1

5 years ago

1.15.0

5 years ago

1.14.0

5 years ago

1.13.0

5 years ago

1.12.0

5 years ago

1.11.1

5 years ago

1.11.0

5 years ago

1.10.0

5 years ago

1.9.0

5 years ago

1.8.1

5 years ago

1.8.0

5 years ago

1.7.0

5 years ago

1.6.0

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago