advice on wav files

Just starting out? Need help? Post your questions and find answers here.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by willinyork.

Hi, I am programming a simple audio sequencer. I have the main program working (loading wavs, sequencing notes like a drum machine, playing the patterns, saving patterns, loading patterns). But, I would like to also be able to do the following:

1) output the sequence as a wav file (either by having some kind of way to record what the soundcard is playing, or by mixing the samples into one new sample)

2) create new wav files, kind of a mini (very simple) synthsiser

can anyone point me in the right direction to do this? if anyone wants to see the sequencer as it stands, you can d/l it from http://www.willmorton.co.uk/qlb.zip (301k)

thanks for any advice!
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Rings.

Hi willinyork,
i tried your code;looks nice; and i understand what is your Question.
I think(correct me fred if i'm wrong) that the sound-part of PureBasic
is done with DirectSound, a part of the DirectX-Libs.
I studied the Functions and subs (In VB) and find out that there were some
routines to create and save 'SoundBuffers'.This is a question for fred to implement some of these functions to save some of these buffers.
hope this helps.

Siggi
Post Reply