PixelWave help

Pixilang programming language
Post Reply
Soundbank
Posts: 3
Joined: Thu Mar 21, 2013 4:36 pm

PixelWave help

Post by Soundbank »

Yes, I'm using PixelWave on Windows through the Pixilang application, and I want to add a feature that saves the drawn sample in wav format upon keypress, say F12. I'm just learning the language now, but this is a specific case I need to address. Is there a set of lines I must add to the .pixi, or a tutorial that shows you how to do it? I'm serious I want to export samples, not just play them back.

Oh, yes, I just signed up, please bear with me, I have experience in Music Theory, and I want to make some music with this language at my side.

I'm adept with 8-bit and 16-bit music, and I'm currently making music for a map I'm designing for a UT99 mod.

Finally, thanks for reading this thread, I hope to learn more about this language.
User avatar
NightRadio
Site Admin
Posts: 3549
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: PixelWave help

Post by NightRadio »

Hi!
I want to add a feature that saves the drawn sample in wav format upon keypress
You need the drawn waveform only? Or you need the whole recorded sound with echo?
Soundbank
Posts: 3
Joined: Thu Mar 21, 2013 4:36 pm

Re: PixelWave help

Post by Soundbank »

Drawn waveform only, please.
User avatar
NightRadio
Site Admin
Posts: 3549
Joined: Fri Jan 23, 2004 12:28 am
Location: Ekaterinburg. Russia
Contact:

Re: PixelWave help

Post by NightRadio »

This waveform is in the sample_data container.
Just add the following code somewhere: save( sample_data, "waveform.wav", FORMAT_WAVE )
Post Reply