Skip to content

Instantly share code, notes, and snippets.

View AntoineBalaine's full-sized avatar

Antoine Balaine AntoineBalaine

View GitHub Profile
@AntoineBalaine
AntoineBalaine / pasteRhythm.lua
Created July 18, 2023 05:06
Paste rhythm to pitches - reaper action
local paste = {}
local function getRhythmNoteIndex(rhythmNotes, startingNotePosition, endingNotePosition)
for i = 1, #rhythmNotes do
local rhythmNote = rhythmNotes[i]
local rhythmNotePositions = rhythmNote[1]
if rhythmNotePositions[1] == startingNotePosition and rhythmNotePositions[2] == endingNotePosition then
return i
end
end