npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

meadowbrook

v1.0.0

Published

Alternative meyda cli

Downloads

2

Readme

Meadowbrook

Alternative meyda cli

Allows extracting features from a segment of audio and store this information in a json document with large data blocks encoded as base64 strings

Example

meadowbrook horse.mp3 all --o=out.json

Usage

title: meadowbrook
example: meadowbrook [options] <INPUT_PATH> <...FEATURES> [options]
type: object
properties:
  INPUT_PATH:
    title: Audio file to read
    type: string
  FEATURES:
    title: Features to extract
    type: array
    description: >
      List of features to extract seperated by space,
      If 'all' is in the list extract all
    items:
      enum:
        -  all
        -  rms
        -  energy
        -  zcr
        -  amplitudeSpectrum
        -  powerSpectrum
        -  spectralCentroid
        -  spectralFlatness
        -  spectralSlope
        -  spectralRolloff
        -  spectralSpread
        -  spectralSkewness
        -  spectralKurtosis
        -  loudness
        -  perceptualSpread
        -  perceptualSharpness
        -  mfcc
  "--o":
    title: Output path
    description: >
      File to write data too,
      if not specified prints to stdout
    type: string
    example: --o=<outputPath>
  "--bs":
    title: Buffer size
    example: --bs=<bufferSize>
    defaut: 512
    type: number
  "--w":
    title: Windowing function
    example: --w=<windowingFunction>
    defaut: hanning
    enum:
      -  blackman
      -  sine
      -  hanning
      -  hamming
  "--f":
    title: Frames per second
    example: --f=<fps>
    type: number
    description: >
      How many frames of feature data should
      be captured per second of audio
    defaut: 60
  "--format":
    title: Output format
    example: --format=<format>
    description: Structure of output json
    default: array
    enum:
      -  array
      -  object
  "-h":
    title: Print help
    type: boolean

Structure

Json schema for output json file

description: Extracted data output
type: object
properties:
  extracted:
    type: object
    description: Name:data pairs for extracted features
    patternProperties:
      "/^[a-zA-Z]+$/":
        oneOf:
          - type: array
            description: >
              Data separated by channel,
              starting with channel 0 in audio source
            items:
              type: array
              description: >
                frames of extracted audio feature data,
                representation varies
                by feature, check meyda docs
          - type: object
            description: >
              Data separated by channel,
              starting with channel 0 in audio source
            patternProperties:
              "/^[0-9]+$/":
                type: object
                description: >
                  frames of extracted audio feature data,
                  representation varies
                  by feature, check meyda docs
  fps:
    type: number
    description: >
      Number of frames of data extracted for each second of audio
    default: 60
  sampleRate:
    type: number
    description: Sample rate of audio source
    default: 44100
  duration:
    type: number
    description: Length in seconds of audio source
  numberOfChannels:
    type: number
    description: Channels extracted from audio source
    default: 2
  bufferSize:
    type: number
    description: Size of buffer used when extracting
    default: 512
  windowingFunction:
    type: string
    description: Windowing function used when extracting
    default: hanning
  outputFormat:
    description: How collections are organized in this file
    default: array
    enum:
      -  array
      -  object
{
  "description": "Extracted data output",
  "type": "object",
  "properties": {
    "extracted": {
      "type": "object",
      "description": "Name:data pairs for extracted features",
      "patternProperties": {
        "/^[a-zA-Z]+$/": {
          "oneOf": [
            {
              "type": "array",
              "description": "Data separated by channel, starting with channel 0 in audio source\n",
              "items": {
                "type": "array",
                "description": "frames of extracted audio feature data, representation varies by feature, check meyda docs\n"
              }
            },
            {
              "type": "object",
              "description": "Data separated by channel, starting with channel 0 in audio source\n",
              "patternProperties": {
                "/^[0-9]+$/": {
                  "type": "object",
                  "description": "frames of extracted audio feature data, representation varies by feature, check meyda docs\n"
                }
              }
            }
          ]
        }
      }
    },
    "fps": {
      "type": "number",
      "description": "Number of frames of data extracted for each second of audio\n",
      "default": 60
    },
    "sampleRate": {
      "type": "number",
      "description": "Sample rate of audio source",
      "default": 44100
    },
    "duration": {
      "type": "number",
      "description": "Length in seconds of audio source"
    },
    "numberOfChannels": {
      "type": "number",
      "description": "Channels extracted from audio source",
      "default": 2
    },
    "bufferSize": {
      "type": "number",
      "description": "Size of buffer used when extracting",
      "default": 512
    },
    "windowingFunction": {
      "type": "string",
      "description": "Windowing function used when extracting",
      "default": "hanning"
    },
    "outputFormat": {
      "description": "How collections are organized in this file",
      "default": "array",
      "enum": [
        "array",
        "object"
      ]
    }
  }
}