Skip to content

Simon-L/revx2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

revx2.lua

Kinda WIP stuff! ⚠️

This library extracts tempo and slices informations from rx2 files for the ReCycle sampling software by Propellerheads. Designed for luajit.

Examples of use

Try the test script by passing an rx2 file as argument

luajit test_revx2.lua "/path/to/some/file.rx2" 

Or for post-processing dump to json with luajit test_tojson_revx2.lua "/path/to/some/file.rx2" "/path/to/output/file.json".
See this gist for an example usage made for Faust.

Here is the content of the basic test:

local inspect = require 'inspect'

local revx2 = require("revx2")
revx2.DEBUG = true -- comment to remove prints while parsing

local file = arg[1]
if file == nil then os.exit(1) end
print("File: " .. file)

local info = revx2.parse_file(file)
print(inspect(info))

Dependencies

git clone https://github.com/moonlibs/ffi-reloadable/
cd ffi-reloadable && luarocks --local make
git clone https://github.com/moonlibs/bin
cd bin && luarocks --local make

About

ReCycle/Propellerheads REX2 header metadata extraction (Not audio data!)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages