Skip to content

Instantly share code, notes, and snippets.

View X-Raym's full-sized avatar

Raymond Radet X-Raym

View GitHub Profile
@X-Raym
X-Raym / capitlize vscode.md
Created January 17, 2024 16:35
Capitilize first letter of every line in VS Code
View capitlize vscode.md

Capitilize first letter of every line in VS Code

SEARCH

^(\w)

REPLACE

\U$1

@X-Raym
X-Raym / 4 CCT+HSI Open DMX from MIDI.noisette
Last active December 27, 2023 13:34
For Nanlite Pavotube II XR
View 4 CCT+HSI Open DMX from MIDI.noisette
{"metaData": {"version": "1.9.17", "versionNumber": 67857}, "projectSettings": {"containers": {"dashboardSettings": {"parameters": [{"value": "", "controlAddress": "/showDashboardOnStartup", "enabled": false}]}, "customDefinitions": {}}}, "dashboardManager": {"parameters": [{"value": true, "controlAddress": "/editMode"}, {"value": false, "controlAddress": "/snapping"}], "items": [{"niceName": "Dashboard", "type": "BaseItem", "itemManager": {"parameters": [{"value": [1200.0, 800.0], "controlAddress": "/canvasSize", "enabled": false}], "items": [{"parameters": [{"value": [-84.0, -78.0], "controlAddress": "/viewUIPosition"}, {"value": [200.0, 40.0], "controlAddress": "/viewUISize"}, {"value": "/item/go", "controlAddress": "/target"}, {"value": "Killswitch", "controlAddress": "/customText", "enabled": true}, {"value": "", "controlAddress": "/customImage", "enabled": false}, {"value": "", "controlAddress": "/dashboardTarget"}], "niceName": "Item", "hideInEditor": true, "type": "DashboardLinkItem", "ghostAddress":
@X-Raym
X-Raym / gist:345c48c8e816d0b894d3894ddd914069
Last active December 10, 2023 23:49
QL+ from REAPER DMX Control
View gist:345c48c8e816d0b894d3894ddd914069
Piste MIDI avec MIDI Control Output
MIDI FX capable of MIDI CC Out, like ReaControl MIDI
Check Channel and CC number
In QL+
LoopBe as Input of the universe. Not output
Launch LoopBe
Add Profile in In/Out for loopbe
Add Slider
On virtual console
@X-Raym
X-Raym / gist:b03860ad0cca341140eedf9be8d0629c
Created December 10, 2023 11:42
Multiply a video rate by x4 and pitch audio up, lossless with FFPMEG
View gist:b03860ad0cca341140eedf9be8d0629c
With Pitch Change, via audio Resampling
C:\Users\USER>C:\Users\USER\AppData\Roaming\REAPER\UserPlugins\ffmpeg.exe -i "E:\Bureau\PXL_20231209_213533058.mp4" -filter_complex "[0:v]setpts=0.25*PTS[v];[0:a]asetrate=192000[a]" -ar 48000 -map "[v]" -map "[a]" "E:\Bureau\PXL_20231209_213533058_x4.mp4"
Without Pitch Change
C:\Users\USER>C:\Users\USER\AppData\Roaming\REAPER\UserPlugins\ffmpeg.exe -i "E:\Bureau\PXL_20231209_215801374.mp4" -filter_complex "[0:v]setpts=0.25*PTS[v];[0:a]atempo=4.0[a]" -map "[v]" -map "[a]" "E:\Bureau\PXL_20231209_215801374_x4.mp4"
View XR Guitar Channel Switcher.rpp
<REAPER_PROJECT 0.1 "6.79/win64" 1684446322
RIPPLE 0
GROUPOVERRIDE 0 0 0
AUTOXFADE 129
ENVATTACH 0
POOLEDENVATTACH 0
MIXERUIFLAGS 11 48
PEAKGAIN 1
FEEDBACK 0
PANLAW 1
View X-Raym_Folder exists.lua
os_sep = package.config:sub(1,1)
-- Check if folder exists --
local function FolderExists(strFolderName)
if strFolderName:len() == 0 then return false end
strFolderName = strFolderName:gsub( os_sep .. "$", "" )
if os_sep == "\\" then strFolderName = strFolderName .. os_sep .. "*.*" end
local fileHandle, strError = io.open(strFolderName , "r")
if fileHandle ~= nil then
io.close(fileHandle)
return true, "No error"
@X-Raym
X-Raym / X-Raym_Set focus to REAPER from VSCode and run script.ahk
Created January 29, 2023 21:40
Run REAPER Scripts from VSCode via AHK and mapped KeyBoard shortcut
View X-Raym_Set focus to REAPER from VSCode and run script.ahk
#Warn ; Enable warnings to assist with detecting common errors.
#Requires AutoHotkey v2.0 ;
#SingleInstance ;
Msg(str) {
ToolTip( str )
SetTimer( ToolTip, -1000 )
return
}
@X-Raym
X-Raym / folder-image-files-to-json.php
Last active January 18, 2023 20:56
List all images files names in PHP file directory and export to JSON
View folder-image-files-to-json.php
<?php
header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json");
$exts = ["png", "jpg"];
$dir = "./";
$list = [];
if (is_dir($dir)) {
View multi match and replace regex.js
// From: http://jsfiddle.net/L6LB2/1/
var str = "AddMediaItemTrack";
var words = ["Add", "Track", "Ma"]
var mapObj = {}
for( word of words ) {
mapObj[word] = "<mark>" + word + "</mark>"
}