Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

frame-hop

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frame-hop

Frame slicing for windowed signal processing

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
decreased by-74.07%
Maintainers
1
Weekly downloads
 
Created
Source

frame-hop

Cuts a stream of floating point frames into a stream of partially overlapping frames.

Example

//Create frame slicer
var slicer = require("frame-hop")(256, 64, function(frame) {
  console.log("Got a frame!", frame)
})

//Add frames to slices by calling slicer:
slicer(data)

Install

npm install frame-hop
require("frame-hop")(frame_size, hop_size, ondata[, max_data_size])

Creates a windowed frame slicer

  • frame_size is the size of an output frame
  • hop_size is the amount of hopping between frames
  • ondata(frame) is a callback that executed once per each frame that is sliced
  • max_data_size is the maximum amount of data per input frame (default frame_size)

Returns A function slicer(data) which adds some amount of data to the rolling frame buffer.

Credits

(c) 2013 Mikola Lysenko. MIT License

Keywords

FAQs

Package last updated on 04 Jun 2015

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc