metrasynth / sunvox-dll-python Goto Github PK
View Code? Open in Web Editor NEWPython wrapper for the SunVox DLL
Home Page: https://metrasynth.github.io/projects/sunvox-dll-python.html
License: Other
Python wrapper for the SunVox DLL
Home Page: https://metrasynth.github.io/projects/sunvox-dll-python.html
License: Other
Hi! First of all its great to see this effort concerning python+Sunvox :)
Question: could you provide example code to load a. Sunvox file and trigger notes of a generator?
(assuming the Sunvox file contains empty pattern(s))
Just like this (but without osc) : https://github.com/metrasynth/SunVOSC/blob/master/examples/singlenote.py
Kind regards
Leon
this is super interesting, i'm able to help with some functionality of this!
am reading this now: http://nbviewer.jupyter.org/gist/gldnspud/38b5d2a94d524f9c743a69de210501e3
interesting, for some reason this doesn't load any sunsynth on linux.
I tried looking at radiant voices, but everything seems similar.
Basically I cloned this repo, and tried to run this script (fragment):
running myscript.py test.sunsynth
gives me the following output:
What i tried:
encode('utf-8')
and encode('utf8')
load_module(...)
Any tips appreciated
Hi I'm playing around (again) with this awesome lib.
Could you be so kind to give an example for audio_callback
?
a python list with floats (or ints, whatever is easiest).
flags = (sunvox.api.SV_INIT_FLAG.ONE_THREAD)
flags2 = (sunvox.api.SV_INIT_FLAG.USER_AUDIO_CALLBACK | sunvox.api.SV_INIT_FLAG.AUDIO_FLOAT32)
sunvox.api.init(None, 44100, 2, flags)
# creating slot + loading the sunvoxfile + playing slot
bufsize = 20
buf = ctypes.c_void_p()
sunvox.api.audio_callback( buf, bufsize, 0, sunvox.api.get_ticks() )
out = ctypes.cast(buf, ctypes.POINTER(ctypes.c_float))
if out:
print( len(list(out)) )
output with flags
or flags2
is always:
0
0
0
0
0
Any help is appreciated!
ps. sunvox-file plays fine (is audable) with
flags
so I omitted the songloading/play-code
Hello,
I just notice that in your python sources there is a file named "types.py".
I just notice, that, since python v3.3, there is a new module named "types"
Is-this dangerous (to make the wrong import) ?
Python docs site
https://docs.python.org/3.5/library/types.html?highlight=types
Thanks for your job, with python.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.