New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

upsample

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

upsample

upsample your wav file!

npmnpm
Version
1.0.5
Version published
Weekly downloads
6
200%
Maintainers
1
Weekly downloads
 
Created
Source

What is this?

module to upsample your wav file.

Installation

npm i upsample --save

Usage

let upSampledData = upsample(orginalData, UPSAMPLE_RATIO)

Inputs

orginalData: the orginal data of wav file (more info for wav format )

UPSAMPLE_RATIO: The number to increase the sample size of your wav file

Then...

import { upsample } from 'upsample';

var codes = new Int16Array(<your_wav_arraybuffer>);

let wavheader = codes.slice(0, 22);
let orginalData = codes.slice(22)
let upSampledData = upsample(orginalData, 2)
let upSampled = new Int16Array([...wavheader, ...upSampledData])

Keywords

upsample

FAQs

Package last updated on 21 May 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts