This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- create phrases to pitch sample | |
-- get current insturment and selected sample | |
local instrIndex = renoise.song().selected_instrument_index | |
local smplIndex = renoise.song().selected_sample_index | |
local instr = renoise.song().instruments[instrIndex] | |
local basenote =instr.sample_mappings[renoise.Instrument.LAYER_NOTE_ON][smplIndex].base_note | |
-- how many steps | |
local steps = 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; get ip and mx | |
(let ((domain "mydomain.com")) | |
(switch-to-buffer-other-window "*temp*") | |
(erase-buffer) | |
(setq www (format "www.%s" domain)) | |
(setq ip "") | |
(setq mx "") | |
(setq ret-val (call-process "ping" nil t nil domain "-n" "1")) | |
(if (equal ret-val 0) | |
(progn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
files = renoise.app():prompt_for_multiple_filenames_to_read({"*.sfz"},"SFZ files to convert") | |
--check for files | |
if table.getn(files)>0 then | |
for key,value in pairs(files) do | |
outputfile = value:match("^(.*)\.[sS][fF][zZ]+$") | |
renoise.app():load_instrument_multi_sample(value) | |
renoise.app():save_instrument(outputfile) | |
end | |
renoise.app():show_message(table.getn(files) .. " instruments converted.") | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$path = ""; //add your avenger expansion path here | |
$dir = scandir( $path ); | |
$dir = array_diff($dir,["." , ".." ]); | |
//all expansions | |
foreach($dir as $exp) { | |
$presetpath = $path . $exp . "\\presets\\"; | |
$presettypes = scandir($presetpath); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'bindat) | |
;;; put your avengers content path here | |
(setq avenger-content-path "") | |
(mapcar (lambda (filename) | |
;; show current patch in message buffer | |
(message filename) | |
;; read file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; https://github.com/jhorology/gulp-bitwig-rewrite-meta/blob/master/gulp-bitwig-rewrite-meta.coffee | |
(require 'bindat) | |
;;; gen for komplete kontrol | |
(defun create-nksf (fxp id devicefilename devicecreator presetname category tags bank comment) | |
(setq vstname (substring devicefilename 0 -4)) | |
;;load fxp | |
(let ((coding-system-for-read 'binary)) | |
(setq fxp (substring | |
(with-temp-buffer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git config --add core.createobject link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Initialize values | |
set /A a=16807, s=40 | |
rem APA Modification: use current centiseconds for initial value | |
for /F "tokens=2 delims=," %%a in ("%time%") do if "%%a" neq "00" set /A s=1%%a %% 100 | |
setlocal EnableDelayedExpansion | |
rem replace *** witht the correct numbers, where the screenshots are located |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
The current openproject api is missing some exmaples. This is what i got working in PHP. | |
*/ | |
function _request( $req, $postdata = false, $requesttype = 'POST' ) | |
{ | |
$ch = curl_init(); | |
if ( preg_match( '~^/api/v3(.*)~', $req, $temp ) ) { | |
$req = $temp[ 1 ]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//pretty dirty autoreload script | |
var lastMod = []; | |
var files = [window.location.href]; | |
var countReq = 0; | |
var hidden = false; | |
function __autoreload() { | |
var checkfiles = true; | |
if (document.hasFocus()) { | |
checkfiles = false; |
OlderNewer