Yeah, using Reaper's sampler and MIDI just seemed a little too complex for this application. I just want easy one key access to sounds.
Soundplant looks cool but I'd prefer to keep the files as mp3s and this is probably the only time I'll use it.
I put together an AutoHotKey script that meets my needs. You can run it in a folder with mp3 files, and the first characters of the filenames become the trigger key. Should make it easy to switch things around.
Thanks for the input, guys.
;
; AutoHotkey Version: 1.x
; Language: English
; Platform: Win9x/NT
; Author: A.N.Other <myemail@nowhere.com>
;
; Script Function:
; Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
Loop *.mp3
{
trigger := SubStr(A_LoopFileName,1,1)
Sample%trigger% = %A_LoopFileName%
}
Loop
{
Input,triggerKey,L1,{Esc}{Space}
IfInString, ErrorLevel, EndKey:Escape
{
SoundPlay,Nothing.mp3
ExitApp
}
IfInString, ErrorLevel, EndKey:Space
{
SoundPlay,Nothing.mp3
}
Else If RegExMatch(triggerKey, "^[a-zA-Z0-9]*$")
{
Sample := Sample%triggerKey%
If %Sample%
{
SoundPlay,%Sample%
}
}
}
ExitApp
|