python packages and sunvox libis

Post Reply
gryken
Posts: 4
Joined: Wed Jun 29, 2016 11:24 am

python packages and sunvox libis

Post by gryken » Wed Jun 29, 2016 11:43 am

Hello,

Very impressive work with sunvox !!

Question :

I would like to create a python package.
I want to call sunvox API from python.

Am-I allowed to include the library (file) into a package ?

Thank you.

User avatar
NightRadio
Site Admin
Posts: 3016
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: python packages and sunvox libis

Post by NightRadio » Wed Jun 29, 2016 5:02 pm

Yes, if the Python can include the native dynamic libraries (.so, .dll). But i don't know Python :)

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

Re: python packages and sunvox libis

Post by queries » Sat Jul 02, 2016 1:24 am

gryken wrote: I want to call sunvox API from python.
I wanted to do the same thing :-) Python's ctypes module made it really easy to do so.

I am also interested in reading/manipulating/writing the file format, in ways not supported by the SunVox DLL. Python's "chunk" module was perfect for this.

Here's the project I started: https://github.com/metrasynth/rv

gryken
Posts: 4
Joined: Wed Jun 29, 2016 11:24 am

Re: python packages and sunvox libis

Post by gryken » Sun Jul 03, 2016 3:20 pm

Hi,

Yes "ctypes" is the good solution.

For now i'm not using Darwin platform, but a linux one.
I will try anyway.

Thanks to share you work.

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

Re: python packages and sunvox libis

Post by queries » Fri Aug 26, 2016 8:59 am

I've split this project, and the DLL wrapper is now at https://github.com/metrasynth/sunvox-dll-python -- file format reader/writer project is at https://github.com/metrasynth/radiant-voices

It also now supports Windows (untested) and Linux as well as Mac (darwin).

It doesn't yet have examples for sending output to a buffer instead of to sound card, but support for that is on the TODO list!

Post Reply