diff --git a/.codeclimate.yml b/.codeclimate.yml new file mode 100644 index 0000000..db9adc2 --- /dev/null +++ b/.codeclimate.yml @@ -0,0 +1,18 @@ +--- +engines: + duplication: + enabled: true + config: + languages: + - javascript + eslint: + enabled: false + fixme: + enabled: true +ratings: + paths: + - "**.js" +exclude_paths: +- dist/ +- test/ +- example/ diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..92b2c45 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules/ +tmp/ diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..1072ee8 --- /dev/null +++ b/.npmignore @@ -0,0 +1,3 @@ +node_modules/ +example/ +tmp/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..c8d0663 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,5 @@ +sudo: false +language: node_js +node_js: + - stable + - "0.12" diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..8f0f98f --- /dev/null +++ b/CHANGELOG @@ -0,0 +1 @@ +CHANGELOG diff --git a/LICENSE b/LICENSE index 311e063..77ac35a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ -The MIT License +The MIT License (MIT) -Copyright (c) 2015 Daniel Gómez Blasco +Copyright (c) 2015 danigb Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -9,13 +9,14 @@ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + diff --git a/README.md b/README.md new file mode 100644 index 0000000..229bd6d --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# timestretch [![npm](https://img.shields.io/npm/v/timestretch.svg)](https://www.npmjs.com/package/timestretch) + +[![Build Status](https://travis-ci.org/danigb/timestretch.svg?branch=master)](https://travis-ci.org/danigb/timestretch) [![Code Climate](https://codeclimate.com/github/danigb/timestretch/badges/gpa.svg)](https://codeclimate.com/github/danigb/timestretch) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) [![license](https://img.shields.io/npm/l/timestretch.svg)](https://www.npmjs.com/package/timestretch) + +Yet another library to timestretch audio on the browser. + +## (FA)Q + +__Are other implementations available?__ + +Yes, a lot: +- https://github.com/sebpiq/paulstretch.js +- https://github.com/echo66/OLA-TS.js +- https://github.com/echo66/PhaseVocoderJS +- https://github.com/Infinity/Kali + +And pitch shifting: +- https://github.com/mikolalysenko/pitch-shift +- https://github.com/GTCMT/pitchshiftjs + +And probably more... + +__Which one should I use?__ + +I don't know by experiencie, but @echo66 repositories looks promising. + +__Then, why?__ + +Because I want to learn. + +## License + +MIT License diff --git a/dist/timestretch.min.js b/dist/timestretch.min.js new file mode 100644 index 0000000..4342e66 --- /dev/null +++ b/dist/timestretch.min.js @@ -0,0 +1 @@ +(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o dist/timestretch.min.js && ls -hall dist/", + "prepublish": "npm test && npm run dist" + }, + "repository": { + "type": "git", + "url": "https://github.com/danigb/timestretch" + }, + "keywords": [ + "audio", + "timestretch", + "webaudio" + ], + "author": "danigb ", + "license": "MIT", + "bugs": { + "url": "https://github.com/danigb/timestretch/issues" + }, + "dependencies": {}, + "devDependencies": { + "browserify": "^13.0.1", + "mocha": "2", + "uglifyjs": "^2.4.10" + } +} diff --git a/test/timestretch-test.js b/test/timestretch-test.js new file mode 100644 index 0000000..e69de29