1. SoundBlaster
------=_NextPart_000_002E_01BFD227.4216A100
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all !
Is there a way to code music for `n sound card ? Not PC speaker crap !
I don`t want to use a sound file that alredy exist, I just want to =
program a sound
file, like MIDI or WAV , but just using code.Not a microphone !
Thanks !
Ferdinand Greyling
------=_NextPart_000_002E_01BFD227.4216A100
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all !</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Is there a way to code music for =
`n sound card=20
? Not PC speaker crap !</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I don`t want to use a sound file that =
alredy exist,=20
I just want to program a sound</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>file, like MIDI or WAV , but just using =
code.Not a=20
microphone !</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks !</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Ferdinand =
------=_NextPart_000_002E_01BFD227.4216A100--
2. Re: SoundBlaster
It sounds as though you're talking about using code to create the files
"manually". If so, that is NOT what you want to do. The file formats are
not difficult, and MIDI would be possible if not practical, but you
wouldn't live long enough to code a 3 minute WAV file. The format is
specifically designed for accurate recordings from "a microphone" (or
other analog source).
A WAV file is a LARGE stream of bytes representing "samples" of the
analog waveform, normally produced by an ADC (analog to digital
convertor) chip - and minimal quality sound (8 bit mono at about 11,000
samples per second) requires just that - 11,000 bytes for each _second_
of sound. The only practical ways to produce these files are to use
recording software (exs: the MS sound recorder in WIN9x or the shareware
Cool Edit), or to convert (programmatically) from another format.
MIDI files contain byte streams which are control codes for a MIDI
synthesizer, making them much, much smaller, but dependent on the
available synthesizer hardware/software for the "sound of the sound."
There is an international standard called MIDI GM (or GM MIDI or General
MIDI) for the format and control codes used in these files, which all
modern MIDI instruments (including soundcards and "soft synthesizers"
will play correctly - in the loosest sense of the term. These files
_could_ be generated by coding them directly, but it's still far easier
to use a piece of software called a MIDI sequencer - many sound cards
with MIDI capability come with sequencer software, and there are a large
number of free or shareware sequencers scattered about the Web.
Do some searching using "MIDI file format" and "MIDI sequencer" for the
MIDI info.
Sorry I don't have any specific URLs to pass along, but the info is
widely available, so you should be able to track it down fairly quickly
if you have a browser.
รด wrote:
> Hi all !Is there a way to code music for `n sound card ? Not PC
> speaker crap !I don`t want to use a sound file that alredy exist, I
> just want to program a soundfile, like MIDI or WAV , but just using
> code.Not a microphone !Thanks ! Ferdinand Greyling