Radiant Voices: SunVox wrapper for Python

Multi-platform modular music creation studio
Post Reply
User avatar
queries
Posts: 316
Joined: Tue May 10, 2016 9:51 pm

Radiant Voices: SunVox wrapper for Python

Post by queries »

I have become so enamored with SunVox that I started a project to wrap the SunVox DLL in Python, as well as to read/write/generate/manipulate sunvox and sunsynth files. (Python's "ctypes" and "chunk" standard library modules were a perfect fit)

It's early stages but I wanted to follow the "release early, release often" ethos of Open Source. :-)

https://github.com/metrasynth/sunvox-dll-python

There's also a project to read/modify/write SunVox files:

https://github.com/metrasynth/radiant-voices
Last edited by queries on Sat Nov 25, 2017 11:36 pm, edited 1 time in total.
User avatar
NightRadio
Site Admin
Posts: 3944
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Radiant Voices: SunVox wrapper for Python

Post by NightRadio »

Cool! Good luck with development!
User avatar
queries
Posts: 316
Joined: Tue May 10, 2016 9:51 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by queries »

The URL is now https://github.com/metrasynth/radiant-voices/

We now have a working "hello world" example! :-)

https://github.com/metrasynth/radiant-v ... loworld.py

For those who don't want to install Python stuff, I posted a demo video to the Facebook group: https://www.facebook.com/groups/sunvox/ ... 294214474/

More to come!
User avatar
queries
Posts: 316
Joined: Tue May 10, 2016 9:51 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by queries »

Here is a brief example of how you can use the new buffered output in sunvox-dll-python to embed audio onto a webpage, and perform analysis on it: http://nbviewer.jupyter.org/gist/gldnsp ... de210501e3

I plan to use this style (Jupyter notebook w/ inline audio and explanatory text) for further examples and studies using Radiant Voices. Stay tuned!
User avatar
queries
Posts: 316
Joined: Tue May 10, 2016 9:51 pm

Re: Radiant Voices: SunVox wrapper for Python (and JavaScript!)

Post by queries »

Radiant Voices is being updated to support the changes introduced in 1.9.3.

In addition, I've started a JavaScript version that aims to provide a similar set of tools, ready for SunVox JS when it becomes available:

https://github.com/metrasynth/radiant-voices-js
zeffii
Posts: 32
Joined: Sun Apr 05, 2015 2:05 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by zeffii »

is there a 64bit dll yet? i'd like to script a stereo separator using a comb filter setup
User avatar
queries
Posts: 316
Joined: Tue May 10, 2016 9:51 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by queries »

NR will have to speak to 64-bit Windows DLL. I hope so though

I'll certainly update and test the Python wrapper once the new DLL is released.
zeffii
Posts: 32
Joined: Sun Apr 05, 2015 2:05 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by zeffii »

looks like we got a 64 bit lib now :))
User avatar
queries
Posts: 316
Joined: Tue May 10, 2016 9:51 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by queries »

sunvox-dll-python now includes the latest 1.9.3b DLL that was released today, and has been tested with 64-bit Windows. Hooray!

https://pypi.python.org/pypi/sunvox-dll ... .0.1.9.3.1

Still working on new Radiant Voices, for SunVox file read/modify/write. There are a couple of places where I want to fix bugs still.
User avatar
queries
Posts: 316
Joined: Tue May 10, 2016 9:51 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by queries »

There is now a rudimentary demo of the JavaScript version of Radiant Voices:

https://sunvox.audio/

The drop-target at the top is to drag/drop SunVox projects. It'll play directly in SunVox JS but it will also load the project using Radiant Voices, to test out parts of the project-loading code.

The button at the bottom is the fun part though, even if the music is boring. It creates a new SunVox project using only JavaScript, loads it into the SunVox JS library, and optionally downloads the project to your computer.

The code snippet that does that is this: https://github.com/metrasynth/radiant-v ... sx#L44-L74

There's a lot of work left to do, but reaching this milestone is very exciting. There's a lot of possibilities to unlock by manipulating SunVox files in a browser!
Post Reply