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

gulp-bitwig-rewrite-meta

v0.2.1

Published

rewrite metadata of Bitwig Studio's document file

Downloads

8

Readme

gulp-bitwig-rewrite-meta

Gulp plugin for rewriting metadata of Bitwig Studio's files

Build

  npm install
  gulp

Installation

  npm install gulp-bitwig-rewrite-meta --save-dev

Usage

rewriting tag.

rewrite = require 'gulp-bitwig-rewrite-meta'

gulp.task 'tagging', ->
  gulp.src ["src/Like/**/*.bwpreset"], read: true
    .pipe rewrite
      tags: [
        'Like'
        'いいね!'
        ]
    .pipe gulp.dest "dist"

adding tag and renaming.

rewrite = require 'gulp-bitwig-rewrite-meta'

gulp.task 'tagging', ->
  gulp.src ["src/Like/**/*.bwpreset"], read: true
    .pipe rewrite (file, metadata) ->
      name: "#{metadata.name}_new"
      tags: metadata.tags.concat [
        'Like'
        'いいね!'
        ]
    .pipe gulp.dest "dist"

non-blocking data provider.

rewrite = require 'gulp-bitwig-rewrite-meta'

gulp.task 'rewrite_meta', ->
  gulp.src ["src/**/*.bwpreset"], read: true
    .pipe rewrite (file, metadata, done) ->
      nonblockingfunction metadata, (err, data) ->
        done err, data
    .pipe gulp.dest $.distDir

API

rewrite(data)

data

Type: Object or function(file, metadata)

The data or data provider to rewrite for.

data.name

Type: String

Preset or Clip name to rewrite for. It also means filename in Bitwig Studio.

data.creator [optional]

Type: String

data.preset_category [optional]

Type: String

data.tags [optional]

Type: Array of String

data.comment [optional]

Type: String

function (file, metadata [,callbak])

functoin to provide data.

file

Type: instance of vinyl file

metadata

Type: Object

The metadata of source file.

callback

Type: function(err, data)

callback function to support non-blocking data provider.

example metadata of .bwpreset

{
  "file": "/.../Wood Pop Melody ARP SURR.bwpreset",
  "name": "Wood Pop Melody ARP SURR",
  "application_version_name": "1.0.11",
  "branch": "1.0-fixes",
  "comment": "",
  "creator": "Evolve R2",
  "device_category": "Synth",
  "device_creator": "Native Instruments GmbH",
  "device_id": "vst:1315524405:84082944",
  "device_name": "Kontakt 5",
  "device_type": "note_to_audio",
  "preset_category": "FX",
  "referenced_device_ids": [],
  "referenced_packaged_file_ids": [],
  "revision_id": "20140715114044-v9t60rw9c97duf4w",
  "revision_no": 4430,
  "tags": [],
  "type": "application/bitwig-preset"
}

example metadata of .bwpclip

{
  "file": "/.../installed-packages/1.0/clips/Cristian Vogel/Cristian Vogel Bitwig Lab/Techne Sigh.bwclip",
  "name": "Techne Sigh",
  "application_version_name": "1.1.3",
  "beat_length": 4,
  "branch": "release/1.1",
  "creator": "Cristian Vogel",
  "orig_file_checksum": "aa7163e9523fed2b95ebc177d28c3cca",
  "packaged_file_id": "Cristian Vogel/Cristian Vogel Bitwig Lab/clips/Techne Sigh.bwclip",
  "referenced_packaged_file_ids": ["Cristian Vogel/Cristian Vogel Bitwig Lab/samples/Custom Waves 4096/lo pulse ems.wav"],
  "revision_id": "d68e2e1d21660ebd6781db8d2a408fa7dba2cccb",
  "revision_no": 25290,
  "tags": ["digital", "metallic", "quirky", "wonky"],
  "type": "application/bitwig-note-clip"
}

Notes

  • Currentlly supported files.
    • .bwpreset
    • .bwclip