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

synaesthetic

v0.0.13

Published

Glitch images with sound effects

Downloads

2

Readme

Syna.esth.etic

Process images with the SoX, the Swiss Army knife of audio manipulation.

Installation

npm install -g synaesthetic

Requirements

You need to have both SoX (sox) and ImageMagick (convert) installed, it should look like this

$ sox --version
sox:      SoX v14.4.1

$ convert --version
Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-03-14 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules OpenMP
Delegates: bzlib cairo djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png rsvg tiff wmf x xml zlib

Basic use

Pass synaesthetic an input file and an output file, followed by any arguments to SoX. Make sure the output file has a .png extension.

synaesthetic infile.jpg outfile.png treble +20

The Effects section of the SoX man page (man 1 sox) is your friend! You can chain as many transformations as you like!

synaesthetic infile.jpg outfile.png treble +20 echoes 0.7 0.8 10s 1 11s 1 dcshift 0.4

Scripted use

You can write scripts in ClojureScript for more advanced uses, see the examples/ directory for some examples.

;; your_script.cljs
(sox {:channels 2 :depth 8}
     (treble 21)
     (bass -1)
     (echos 0.7 0.8 "1s" 0.4 "1s" 1)
     (dcshift 0.2))

The syna.esth.sox namespace contains a bunch of functions you can use. Pass your script in with the -s flag.

synaesthetic -s your_script.cljs infile.jpg outfile.png

You can have syna.esth.etic watch your script with the -w flag. This will automatically re-run the script automatically re-run the it whenever it changes. If your image viewer also auto-updates then this provides a really nice workflow.

Command line switches

  • -h --help Show the help screen
  • -s --script SCRIPT_FILE The name of a ClojureScript script to run
  • -w --watch Don't exit but watch the script for changes and re-run. Use with -s.
  • -H --header SIZE Set the amount of bytes to preserve to not mess up the image header. Defaults to 512

You can use - as a file name to either read from stdout, or write to stdout.

Hashtag

Make sure to use the #synaesthetic hashtag when sharing your creations on social media!

Author

Plexus Mastodon / Patreon