# VelociLoops open REX2 format

**URL:** <https://forum.juce.com/t/velociloops-open-rex2-format/68780>\
**Category:** Useful Tools and Components\
**Created:** [May 5, 2026, 9:22pm UTC](https://forum.juce.com/t/velociloops-open-rex2-format/68780 "2026-05-05T21:22:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [May 5, 2026, 9:22pm UTC](https://forum.juce.com/t/velociloops-open-rex2-format/68780/1 "2026-05-05T21:22:13Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/8/1/8186f5d67dbf1ce00efc04fa705bce5f7838fb9d.jpeg)

After several months of sleepless nights and additional grey hairs, i finally got the breakthrough some days ago. It’s a **clean room reverse engineered Propellerhead’s ReCycle REX2 format together with their DWOP audio encoding** :

- [kunitoki/VelociLoops: A C library for reading and writing REX2 audio loop files](https://github.com/kunitoki/VelociLoops)

This was more of a research project to build expertise. Various LLMs helped me in the discovery process, but also result analysis, testing, fuzzing, setting up CI… Nothing would have been possible without the human in the loop 😃

Someone even wrote a VCV Rack module out of it: [gorkulus/rex-player](https://github.com/gorkulus/rex-player) !

![REX Player demo in VCV Rack](https://us1.discourse-cdn.com/flex026/uploads/juce/original/3X/b/9/b99a5cb39f6125c53553a508c849e96db582f9d2.gif)

Hope it could be useful to anyone looking to add loading and saving REX in their samplers…

---

<div class="post-metadata">

**Author:** ![otristan](https://avatars.discourse-cdn.com/v4/letter/o/f0a364/32.png) [@otristan](https://forum.juce.com/u/otristan)\
**Post date:** [May 6, 2026, 6:00am UTC](https://forum.juce.com/t/velociloops-open-rex2-format/68780/2 "2026-05-06T06:00:51Z")

</div>

Neat !

Is there anything interresting in the dwop fromat or was it just a way to encypher the content ?

Thanks !

---

<div class="post-metadata">

**Author:** ![cpr2323](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/cpr2323/32/18682_2.png) [@cpr2323](https://forum.juce.com/u/cpr2323)\
**Post date:** [May 6, 2026, 11:56am UTC](https://forum.juce.com/t/velociloops-open-rex2-format/68780/3 "2026-05-06T11:56:50Z")

</div>

I saw you post about this recently, and I am excited to add this to some apps I’ve written for doing sample management for several different eurorack samplers!

---

<div class="post-metadata">

**Author:** ![kunitoki](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/kunitoki/32/15_2.png) [@kunitoki](https://forum.juce.com/u/kunitoki)\
**Post date:** [May 6, 2026, 3:48pm UTC](https://forum.juce.com/t/velociloops-open-rex2-format/68780/4 "2026-05-06T15:48:17Z")

</div>

Well, format dates back in the late 90s where most LPC or compression algorithms were not as advanced as today.

The design is a per-sample adaptive predictor bank, doesn’t have any block structure (like FLAC or WavPack), this compromises compression ratio pretty much but:

- it’s fully streaming
- it eliminates block boundaries artifacts
- the adaptive predictor amortizes its learning across the whole file
- there is no cross channel prediction beyond M/S decorrelation (both channels have independent banks and entropy so they can run in parallel).
- (but it makes random access impossible, which might be fine for the purpose it was created)

They are doing x2 integer precision tricks and zigzag sign folding. So double the samples before entering the codec and halved at the decode, this means _all_ predictor arithmetic stays in integer without rounding, keep final halving exact.

The design clearly prioritized decode speed (simple integer ops, no division, no floating-point in the hot path) over compression ratio sensible for a real-time loop playback use case.
