Radiant Voices: SunVox wrapper for Python

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

Radiant Voices: SunVox wrapper for Python

Post by queries » Fri Jul 01, 2016 10:43 pm

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: 3333
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Radiant Voices: SunVox wrapper for Python

Post by NightRadio » Fri Jul 08, 2016 11:20 pm

Cool! Good luck with development!

User avatar
queries
Posts: 262
Joined: Tue May 10, 2016 9:51 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by queries » Mon Aug 22, 2016 2:29 am

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: 262
Joined: Tue May 10, 2016 9:51 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by queries » Sat Sep 17, 2016 4:52 am

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: 262
Joined: Tue May 10, 2016 9:51 pm

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

Post by queries » Wed Nov 01, 2017 3:09 am

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: 27
Joined: Sun Apr 05, 2015 2:05 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by zeffii » Wed Nov 08, 2017 5:31 pm

is there a 64bit dll yet? i'd like to script a stereo separator using a comb filter setup

User avatar
queries
Posts: 262
Joined: Tue May 10, 2016 9:51 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by queries » Wed Nov 08, 2017 5:39 pm

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: 27
Joined: Sun Apr 05, 2015 2:05 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by zeffii » Wed Nov 22, 2017 10:26 pm

looks like we got a 64 bit lib now :))

User avatar
queries
Posts: 262
Joined: Tue May 10, 2016 9:51 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by queries » Sat Nov 25, 2017 11:35 pm

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: 262
Joined: Tue May 10, 2016 9:51 pm

Re: Radiant Voices: SunVox wrapper for Python

Post by queries » Mon Jul 13, 2020 12:55 am

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