Skip to content

Instantly share code, notes, and snippets.

View dhilowitz's full-sized avatar

David Hilowitz dhilowitz

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 / format_php_array.php
Last active June 18, 2019 19:05
# Format a PHP array so that it looks nice. Almost like a pretty printed JSON string, but one that can be used directly in PHP without conversion.
<?php
function print_array($array) {
echo format_array($array);
}
function format_array($array, $initialTabDepth = 0) {
if(!is_array($array)) {
return "";
}
@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:

@dhilowitz
dhilowitz / README.md
Created February 1, 2017 16:40 — forked from dragonfax/README.md
Add a "Checkbox" shortcut to Evernote Web Client

I recently switched from using the Evernote Desktop Client to the web client. The only thing I missed was the short-cut for creating Todo checkboxes.

Here is a quick TamperMonkey (Grease Monkey) script to add that functionality back in. Add the userscript to Tampermonkey.

@dhilowitz
dhilowitz / wavecuepoint.c
Last active April 29, 2023 22:01 — forked from jimmcgowan/wavecuepoint.c
This code reads a .wav file and a text file containing marker locations (specified as frame indexes, one per line) and creates a new .wav file with embedded cue points for each location. The code is standard, portable C.
//
// wavecuepoint.c
// Created by Jim McGowan on 29/11/12.
// Turned into command-line utility by David Hilowitz on 19/11/16.
// jim@bleepsandpops.com
// jim@malkinware.com
//
// This function reads a .wav file and a text file containing marker locations (specified as frame indexes, one per line)
// and creates a new .wav file with embedded cue points for each location. The code is standard, portable C.
//
@dhilowitz
dhilowitz / grab-doit-view-tasks.js
Created March 1, 2013 00:01
1) In Chrome: open up a list view in the doit.im website. 2) Open up the Developer Console. 3) Paste this snippet into the console and hit enter. 4) Go into your favorite text editor and paste.
var taskString = ''; var tasks = $('.taskList .task .title .link-title').text(function(index, value) {
taskString = taskString + '- ' + value + "\n";
}); console.log(taskString); copy(taskString);