How to add music clips?

If you have questions about any aspect of QBasic programming, or would like to help fellow programmers solve their problems, check out this board!

Moderators: Pete, Mods

Post Reply
User avatar
mundofr
Coder
Posts: 34
Joined: Sat Apr 16, 2005 9:11 pm
Location: IN, USA
Contact:

How to add music clips?

Post by mundofr »

The other day i was checking some source code from a very good game but it didnt have sound, the code had something like this:

Code: Select all

SOUND 4000 .3
Can someone tell me what that means and if that is the way to add music files?
<b><i> "Rock is the first thing in life, after rock comes the comp...." Rock on Big M</i></b>
<img src="http://www.freewebs.com/mundofr/bigm2.bmp">
Nathan1993(school)

Post by Nathan1993(school) »

Well, this is A way to make sound, but a really crappy sound from the internal speaker. For best sound, use something like DS4QB or DQB or somelibrary... or you can be smart and switch to freebasic (www.freebasic.net)
MONA

Sound

Post by MONA »

Really what does freebasic brings concerning instructions PLAY or SOUND?
in what is it different from QBasic?
MystikShadows
Veteran
Posts: 703
Joined: Sun Nov 14, 2004 7:36 am
Contact:

Post by MystikShadows »

Freebasic has the fmod library, which allows to play midi files and digital audio sound....
When God created light, so too was born, the first Shadow!

MystikShadows

Need hosting? http://www.jc-hosting.net

Interested in Text & ASCII development? Look no further!
http://www.ascii-world.com
Mona

sound

Post by Mona »

What is this .mod extension? I saw that in DS4QB2 that I cannot succeed to use?
User avatar
ShadowWolf
Veteran
Posts: 56
Joined: Thu Mar 04, 2004 1:32 pm
Contact:

Post by ShadowWolf »

mod is a tracker music format basicly works like this

the mod has a sample list og a bunch of wav sample's i.e. a sampling of a music instrument like a piano C key ect.

the mod format then depending on the code's plays each sample at differn't frequencies so you get the full music scale.

the mod format support 4 channel i.e. you can have 4 sample's playing out oce letting you be able to pull of cords ect.


there are other Mod music format's like .IT which give up to like 32+ channels and a bunch of other special effect. fmod shouldn't have a problem play most of all the known Mod class format's and most new tracker software format's to the defecto stander's.

mod plug is a good tracker and it can save to all the known tracker formats.
here a link

http://www.modplug.com/modplug/download ... load=QSKit
MONA

DS4QB

Post by MONA »

Nathan you seem familiar with this program.As I had no success in my previous request, can you kindly explain what is the purpose of this program, what it is supposed to do, and what is its difference with QBMIDI.
I looked at it and was unable to use it, except to run a sample.Mod already recorded in the program.In other words what can be done with it?
Is it possible to use it in another program?Can it be used with a midi file for instance.
Thanks in advance to clarify.

:?: :cry:
User avatar
mundofr
Coder
Posts: 34
Joined: Sat Apr 16, 2005 9:11 pm
Location: IN, USA
Contact:

Post by mundofr »

hey lol i didnt get anything about the music :D can some one give me a good example? or a Tutorial? thanks a lot...
doe smy QB4.5 works well with those music files?
<b><i> "Rock is the first thing in life, after rock comes the comp...." Rock on Big M</i></b>
<img src="http://www.freewebs.com/mundofr/bigm2.bmp">
User avatar
Mitth'raw'nuruodo
Veteran
Posts: 839
Joined: Sat Jan 22, 2005 11:04 am
Location: Eastern Coast of US
Contact:

Post by Mitth'raw'nuruodo »

Hey, Mod is also an Operator....lol :lol:
"But...It was so beutifully done"
Post Reply