I made a free and opensource sample slicer plugin : Ninjas2 [win/linux/mac][vst2/lv2]

VST, AU, AAX, CLAP, etc. Plugin Virtual Instruments Discussion
RELATED
PRODUCTS

Post

Updates
  1. new builds for Windows 32/64 bit, mp3 loading fixed]
  2. automated builds on https://github.com/rghvdberg/ninjas2/releases now includes Mac
  3. Mac vst are borked, there's a bug in DPF, will probably be fixed soon
    no Linux in automated builds (yet)
  4. Mac vst fixed, automated linux builds added

Hi everyone,

I've made a sample slicer plugin. Consider this to be a pre-release/beta. I'm not really a programmer, I'm self-taught, so be gentle :hihi:

Ninjas2 "Ninjas Is Not Just Another Slicer"
A Clearly broken™ Sample Slicer
Rewrite of Ninjas, a sample slicer audio plugin. This plugin uses the DPF framework for the creation of audio plugins in lv2 and vst2 formats.

Image

Goal:
Easy to use sample slicer, quick slicing of sample and mapping slices to midi note numbers.

Intended usage:
Primarily targeted at chopping up loops or short ( ≈ 10 - 20 seconds) samples. Think drum loops, vocal chops etc. Currently there's no limit on imported sample length. User can play the slices using midi notes and change the pitch with midi pitchbend.
Features:

Implemented features:
  • load samples in audio formats as provided by libsndfile
  • load mp3
  • highlight slice when midi note is received
  • maximum of 128 slices
  • slices 0 to 67 are mapped to midi note 60 to 127
  • slices 68 to 127 are mapped to midi note 0 to 58
  • slices can me snapped to onsets
  • each slice has ADSR
  • each slice has 4 playmodes :
    • single shot forward
    • single shot reverse
    • loop forward
    • loop reverse
  • pitching of samples (+/- 12 semitones) via midi pitchbend
  • zoom in/out of waveform with mousewheel
  • user editable slice start and end points
    note: slices can not overlap
  • dragging the top marker edits both start and end point, keeping the slices continuous
  • dragging the bottom markers edits the the start or end point of a slice.
  • programs : store and retrieve up to 16 configurations of slices
  • normal click restores state
  • shift click copies current state to new program location
  • play marker in waveform display
  • add/remove slices in waveform display : double click within 10 px of slice start/end to add or remove slice
Downloads:
Windows / Mac / Linux:
https://github.com/rghvdberg/ninjas2/releases

Note for Linux:
If the binaries don't work:
Arch users : https://aur.archlinux.org/packages/ninjas2-git/
For other distros :
Build instructions
Dependencies

Code: Select all

    libgl1-mesa-dev
    libx11-dev
    libsndfile1-dev
    libsamplerate0-dev
If you want a standalone jack binary install either libjack-dev or libjack-jackd2-dev

Code: Select all

git clone --recursive https://github.com/rghvdberg/ninjas2.git
cd ninjas2
make
There is no make install, binaries will appear in /path/to/ninjas2/bin/, just copy the binaries to a appropiate location.

I hope some of you might find this a useful tool.

Rob
Last edited by rghvdberg on Wed Aug 07, 2019 5:45 am, edited 5 times in total.

Post

:love: :love: :love: so good!!! :love: :love: :love:

Post

thank you, will give the Windows version a try!

Post

rghvdberg wrote: Tue Jul 30, 2019 6:09 pm Linux:
https://github.com/rghvdberg/ninjas2/releases/tag/v0.1
Binaries for Debian 10 and Ubuntu 18.04 are provided.
For running this plugin you'll need libsamplerate and libsndfile installed.
You might want to note the versions of these libraries that are required, as Linux can be finicky about which version sometimes.

Have you thought about writing an installation shell script that checks for dependencies and installs them if they're not present?

Post

Forgotten wrote: Tue Jul 30, 2019 11:43 pm
You might want to note the versions of these libraries that are required, as Linux can be finicky about which version sometimes.

Have you thought about writing an installation shell script that checks for dependencies and installs them if they're not present?
Well ok, for completeness.

Debian 10
  • libsamplerate0 (0.1.9-2)
    libsndfile1 (1.0.28-6)
Ubuntu 18.04
  • libsamplerate0 (0.1.9-1)
    libsndfile1 (1.0.28-4ubuntu0.18.04.1)
In practice, you will probably have these libraries already.
There are still a lot of things I want to add / change to this plugin and packaging isn't really high on my list now. Compiling on linux is very easy but on Windows I have no clue, so the windows version is cross compiled.
Ninjas2 has a good change to be packaged for Arch and Ubuntu Studio 19.10, so that's nice :-)

Post

Nice!! Thank you for supporting Linux!! 🙂
Vendor‑Dependent Copy Protection: Customers lose. Pirates win.:mad:
(Also: I'm Accused of lying about Linux—it boots, runs my pro audio workflow, stays stable, updates--though yearly dismissed as “niche”. Yet I'm the deluded one.)
:roll:

Post

audiojunkie wrote: Wed Jul 31, 2019 6:46 am Nice!! Thank you for supporting Linux!! 🙂
Actually I'm a linux user :-)
So maybe it should be "Thank you for supporting Windows" :-)

Little bit of explanation: the framework I use to make plugins recently got an update so that it could use the windows file dialog, so only now I can compile for Windows
Which was a challenge on it's own because I had no clue how cross compiling works. Thankfully I got a lot of support from several (linux) audio devs.

Also: mp3 loading for windows is fixed, gonna update 1st post.

Post

Good one Rob, if you need help for Windows VST2 let me know

Post

liqih wrote: Wed Jul 31, 2019 1:30 pm Good one Rob, if you need help for Windows VST2 let me know
Thanks!
The framework conveniently hides (abstracts) all the different plugin API.
Write one codebase, compile vst2,lv2,ladspa,dssi.
In de develop branch of DPF there's also Mac AU plugin support I believe, but I need DPF to support a Mac file dialog first.

Next up is to change the file load in the UI like this
Image
then I'm gonna re-arrange the bottom controls and make room for a pianokeyboard widget.

As you can see, it's all very much in flux, but the basic functionality is here.

There are some videos of people using Ninjas2




ok, back to some bit of coding :borg:

Post

I tried the VST2 in Ableton Live Windows 10 x64, but I can play only one note, and Pitch knob jumps from zero to 12, and anyway the pitch doesn't change.

Post

How do you build for Windows from https://github.com/rghvdberg/ninjas2 ?

edit: never mind, I will try to make VS project for it, cloning right now.

Post

rghvdberg wrote: Wed Jul 31, 2019 12:40 pm
audiojunkie wrote: Wed Jul 31, 2019 6:46 am Nice!! Thank you for supporting Linux!! 🙂
Actually I'm a linux user :-)
So maybe it should be "Thank you for supporting Windows" :-)

Little bit of explanation: the framework I use to make plugins recently got an update so that it could use the windows file dialog, so only now I can compile for Windows
Which was a challenge on it's own because I had no clue how cross compiling works. Thankfully I got a lot of support from several (linux) audio devs.

Also: mp3 loading for windows is fixed, gonna update 1st post.
Hehe!! Well, in that case, thank you also for supporting Windows! :-) But being a Linux user, I'm really grateful for the Linux support! :hihi:
Vendor‑Dependent Copy Protection: Customers lose. Pirates win.:mad:
(Also: I'm Accused of lying about Linux—it boots, runs my pro audio workflow, stays stable, updates--though yearly dismissed as “niche”. Yet I'm the deluded one.)
:roll:

Post

Thanks for supporting Mac!! Oh wait... :troll:

Post

z.prime wrote: Wed Jul 31, 2019 4:00 pm Thanks for supporting Mac!! Oh wait... :troll:
10/10 that will happen

and congratulations, you've just volunteered to be my own personal osx beta tester! :hyper: :troll:

Post

Just wanted to say: finally someone who gives a damn about Mac, but prioritizes Linux :D Will give it a try on both systems :)

Post Reply

Return to “Instruments”