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.
PixelWave help
- NightRadio
- Site Admin
- Posts: 3955
- Joined: Fri Jan 23, 2004 12:28 am
- Location: Ekaterinburg. Russia
- Contact:
Re: PixelWave help
Hi!
You need the drawn waveform only? Or you need the whole recorded sound with echo?I want to add a feature that saves the drawn sample in wav format upon keypress
Re: PixelWave help
Drawn waveform only, please.
- NightRadio
- Site Admin
- Posts: 3955
- Joined: Fri Jan 23, 2004 12:28 am
- Location: Ekaterinburg. Russia
- Contact:
Re: PixelWave help
This waveform is in the sample_data container.
Just add the following code somewhere: save( sample_data, "waveform.wav", FORMAT_WAVE )
Just add the following code somewhere: save( sample_data, "waveform.wav", FORMAT_WAVE )