Tuesday, September 30, 2014

Scape-O-Matic

Scape-O-Matic is sound amusement, gambling device, for Native Instruments Kontakt sampler. It generates random weird and spooky sounds and soundscapes from a button press. If you like to just spin the wheel and see what happens, you may enjoy playing with it.

Here's a preview:

This machine has no user manual, so one needs to figure it out by herself/himself. I can offer few tips though.
  • Press the red button, then play the keyboard.
  • The equalizer works on dry signal only.
  • There are hidden buttons.
  • The machine will build sound out of a number of voices. Each voice is likely to have different settings for volume envelope and glide, although you only see setting for the first voice.
  • If it sounds really out of tune and you don't like it that way, try setting glide amount to zero. Even, if it seems be be set to zero already.
  • There are ways to edit single voices.
  • There is a 'data box' labeled 'lucky number', if you feel lucky, you can type in a number there. It will be used as a token for creating next sound (or for performing any randomizing procedure). Same token always creates the same sound.
Here it is. Free of change, but full of little critters. Use it at your own risk. You will need full version of Kontakt 4.2 or newer to make it work.

Thursday, September 18, 2014

Key shuffler script for Kontakt

Another little Kontakt script today. This one will reorganize key-note assignments within an instrument. It can turn a pop ballad into modern atonal composition, or it can be lots of fun on drum kits. It looks like this:


Quick manual. 'Shuffle range' - here you set the range of keys to shuffle, set the lowest and highest key. To set it up quickly, use 'learn range' button, then press two keys one after another (in any order), the script will set the knob values accordingly. 'Shuffle intensity' - set how much shuffled you want keyboard to be. In one round the script takes two keys and exchange their note assignments. 'Shuffle method' - here you set the starting number for calculating key numbers to shuffle. When it's all set press 'shuffle keys' to perform the operation, or press 'restore keys' to return to 'un-shuffled' keyboard state. The shuffle is not random. It's calculated from range, intensity and method, so you can easily get back to a result you like, or you can automate shuffling in DAW. There are 1000000 possible combinations for each note range.

Here's how it works applied to one of Kontakt's factory drum machines. This machine is using 'drum computer' to create rhythms, so the notes can be shuffled. In this video I keep one rhythm pattern going while trying out different shuffle parameters.


If you like the idea, you can get the script here. It should work in Kontakt 4.2 or newer. Have fun.

Update: Revision A.

After a while of playing with drum kits, I though I would explore this idea a little further. I attempted to expand this script functionality.


First, I wanted to leave some keys out of the randomizing process. So I could e.g. have a bass drum and a snare going on, while randomizing sounds for the rest of drum pattern. I introduced two new buttons to script. 'Learn exceptions' - turn it on, now press the keys you don't want to be affected by the script, turn it off when finished. This procedure won't change the way keys are shuffled, it will just disable note properties modifications for keys in exception list. Exceptions list can be cleared any time with 'clear exceptions' button.

Another new feature is randomizing sound pitch, which can be quite fun with drums. Now every time 'shuffle keys' button is pressed, the script will create a pitch map for all keys, which will be derived from 'shuffle method' number (this is not depending on number of rounds). You can then control how much of the pitch modification to apply with 'shuffle pitch - range' knob. Also you can change pitch map polarity with the switch, mysteriously named 'pitch md. polarity'. Note that once pitch map is written, it will affect sounds also after you un-shuffle keys with 'restore' button. Pitch will be drawn from range of -24/+24 semitones. You can change maximum pitch range in the script, by editing $DETUNE_RANGE constant.

Get the expanded version of the script here.


Update 2: Small changes.

I make two small changes to the script... I have been testing its usability as a de-tuner. You can put a little life into some instruments (particularly synthetic) by de-tuning notes a little. Try this procedure: select a method number, shuffle keys, restore keys and move 'pitch range' knob just a little bit.
Some Kontakt instruments, like pianos, generate several notes, on one key stroke. It was quite disabling 'learn note range' function. As a workaround I added a condition to not to accept the same note as the second note of the range in learn function.
Another change is note range functionality, thus far it was only used when shuffle button was pressed. I added a condition, so the range is checked each time a note is played. Now you can manipulate range button while playing a shuffled keyboard, so you can automate restoring some keys original assignments and tuning.
The download link has been updated.

Update 3: Revision B.

Wouldn't it be handy, to trigger some of those buttons by a key? My controller has only knobs and sliders. Automating buttons with CC is not quite comfortable, so... Excuse me for yet another incarnation of this script. This one has 'key-learn' function for shuffle, reset and polarity buttons. They are color coded on virtual keyboard, red for shuffle, green for reset and yellow for polarity. Note that key assignments may interfere with instrument's key switches handled by other scripts, so it's best to make sure the key of choice has no other function.

Key shuffler script, revision b, download link.

Wednesday, September 17, 2014

Fake random round robin script for Kontakt

This little tool spawned from Terrible piano instrument. It's a script for NI Kontakt which simulates round robin functionality. What is does is: take incoming note, trigger random different note from defined range and tune it to match the pitch of the incoming note. So it is using 'neighbor' notes, to introduce sound variations.
Obviously, it will only work on instruments which have different samples assigned to each note (or most of notes to some degree). If the instrument is based on a single sample, stretched all over the note range,  it will produce no audible results.
Besides 'faking round robin', it can also fake classic stereo effect, where you record two takes of the same phrase and then pan them in stereo. There are two controls. Round robin range is, how far from the original note can the machine look for substitutions. When range is set to zero, the effect if off. Stereo spread activates stereo effect. It only works when round robin is active. It simply triggers another random note and then positions both notes in stereo field according to spread value. In some cases it can produce a flanging effect.
I don't know, how to automatically detect instrument's note range in Kontakt, so it has to be set manually, by editing values in the script. Else some notes may wander off instrument range and produce no sound in effect.
Here's how it works, applied to one of Kontakt's factory e-pianos.


The effect can be subtle or weird, depending on instrument and settings. If you'd like to go weird way, try it on a choir library and push it to the limit.

The script is using classic algorithm to generate random numbers. It will restart the generator on transport start (whenever you press play in DAW), so if  you use it in a project, it will always render the same result.

You can download the script here. It will work Kontakt 4.2 or newer. Have fun with it.

Monday, September 15, 2014

Terrible piano

There are countless beautiful sampled pianos, but what if you're not in the mood for a nice, quality piano sound? If this is one of these days and you want some bad, broken, out of tune, lo-fi piano with eerie sound, I may just have something for you.

Yes, this is actual photo of the piano.
This set has been recorded by accident. I happened to need to wait some hours alone in a room with this old upright piano, which has been quite obviously kept there purely for decorative reasons. I started to play around with it, recording notes to portable recorder. To make it somewhat interesting I picked rater unusual microphone position, I placed it under the piano. It barely fit the space between the floor and the instrument, and so the recording has a sort of claustrophobic, creepy vibe. If you have ever wondered, how would piano sound from a cockroach perspective, this is it.

It has been cut to samples and patched into an instrument in Kontakt. The piano was way out of tune, surely it hasn't been serviced for decades, if ever. I made a rough attempt at fixing the tuning in Kontakt, it still sounds broken, just not as much as before. Kontakt patch offers both tuning versions, it also has an EQ, convolution reverb and mono/stereo switch. Here's how it sounds, once again murdering a classic for demonstration purpose.

http://www.fairlyconfusing.net/docs/terrible_piano.mp3
First part is re-tuned version, then there's part with original (de-) tuning, then there's part in mono and finally mono + some reverb.

There are no velocity layers or round robins in this set. Not even all notes are sampled and the noise floor is noticeable. There are however release triggers. There are 41 samples for the range of 83 notes, totaling 87 samples with release triggers and some pedal noise samples. To save disk space and bandwidth, the original 96/24 stereo recording captured with Zoom H2n, has been down-sampled to 41,1/16 in SOX.


The download - 71MB zipped, is free to grab and use, contains 87 samples in wav format and patch for Kontakt sampler. You will need full version of Kontakt 4.2 or newer to open the patch. It will only work in demo mode in 'Kontakt Player'.

Update: Following a suggestion, I added 'fake random round robin' mechanism to Kontakt patch. It is using random different note samples to mimic round robin functionality. It can create some crazy sound variations at the cost of sound realism (as samples are being re-tuned in sampler). There is extra knob labeled 'fake RRR', when it's set to zero, the effect is off. If you already downloaded the whole pack, you can get new resource file here, as only the instrument script has changed.

Update 2: here are mappings for sfz, place them in root folder, along with Kontakt patches.