Creating a sunvox project?

Pixilang programming language
Post Reply
philipbergwerf
Posts: 174
Joined: Sat Mar 17, 2018 4:23 pm

Creating a sunvox project?

Post by philipbergwerf »

Code: Select all

sv = sv_new()

// place modules
if sv >= 0
{

    sv_lock_slot(sv)
    sv_new_module(sv,"Sampler","Sampler",400,512)
    sv_unlock_slot(sv)

    sv_save(sv,"test.sunvox")
}
I was expecting according to the documentation that this code is generating a sunvox project that has a sampler added. what is the correct way?
User avatar
NightRadio
Site Admin
Posts: 3941
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: Creating a sunvox project?

Post by NightRadio »

In Pixilang use sv_lock()/sv_unlock() instead of sv_lock_slot()/sv_unlock_slot()
philipbergwerf
Posts: 174
Joined: Sat Mar 17, 2018 4:23 pm

Re: Creating a sunvox project?

Post by philipbergwerf »

Thank you should have read better :)
Post Reply