Skip to content

Instantly share code, notes, and snippets.

View anderseklov's full-sized avatar

Anders Eklöv anderseklov

View GitHub Profile
@dhilowitz
dhilowitz / DS Import 1.1.0.lua
Last active November 26, 2022 03:35
Decent Sampler to Kontakt script
-- Decent Sampler to Kontakt script by David Hilowitz
-- This is a quick-and-dirty conversion script that has not been tested very much.
-- Also, there are a bunch of things that are not really configurable from within Creator Tools (alas),
-- which means that even though you may be able to get your samples imported correctly within Kontakt,
-- you will still have a bunch of work to do within Kontakt to get everything set up correctly.
-- Specifically, envelope modulation and round robin stuff can't be translated.
-- Round Robins can be especially complicated: Since Decent Sampler doesn't require you to have your
-- different round robins in separate groups, you may find yourself needed to move samples
@dhilowitz
dhilowitz / SFZ Export.lua
Last active April 20, 2024 18:02
Kontakt 6 Creator Tools LUA script for creating SFZ instruments. Outputs to console.
-- Check for valid instrument
if not instrument then
print("The following error message informs you that the Creator Tools are not "..
"focused on a Kontakt instrument. To solve this, load an instrument in "..
"Kontakt and select it from the instrument dropdown menu on top.")
return
end
print("// SFZ file for Kontakt 6 instrument " .. instrument.name)
print("")
@dhilowitz
dhilowitz / DS Export.lua
Last active October 25, 2023 16:12
Kontakt 6 Creator Tools Export to Decent Sampler format
-- Check for valid instrument
if not instrument then
print("The following error message informs you that the Creator Tools are not "..
"focused on a Kontakt instrument. To solve this, load an instrument in "..
"Kontakt and select it from the instrument dropdown menu on top.")
return
end
print('<?xml version="1.0" encoding="UTF-8"?>')
print("<!-- DS file for Kontakt 6 instrument " .. instrument.name .. " -->")
@dhilowitz
dhilowitz / How To Compile LoopAuditioneer on Mac.md
Last active February 12, 2024 18:07
Brief instructions on how to compile LoopAuditioneer on Mac

Install (compilation) instructions for LoopAuditioneer under Mac OS X

You'll need standard development tools for C++, wxWidgets 3.0 and ALSA, be sure to check the external libraries installation files for more details on what might be needed.

Install XCode and the XCode command-line development tools.

Install Homebrew.

Install wxWidgets using Homebrew:

@valeth
valeth / PKGBUILD
Created August 12, 2014 12:38
[archlinux] PKGBUILD template
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Your Name <youremail@domain.com>
pkgname=NAME
pkgver=VERSION
pkgrel=1
epoch=
@kethinov
kethinov / walksync.js
Created September 22, 2013 09:04
List all files in a directory in Node.js recursively in a synchronous fashion
// List all files in a directory in Node.js recursively in a synchronous fashion
var walkSync = function(dir, filelist) {
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(dir + file).isDirectory()) {
filelist = walkSync(dir + file + '/', filelist);
}
else {