Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / 3 things ...........

Author
Message
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 6th Apr 2003 14:51
hi, I got these problems with dbpro..


1 : when I try to create a random number ( 1-4 ) then add it to a sequence, it always creates the SAME sequence, no matter how many times I dun the .exe.
here is a snippet of code that I`m using:



2 : is it just me, or does the remstart / remend not work ? when compiling my code, it came up with errors in the lines between remstart & remend ?

3 : is it possible to create sounds within darkbasic ? or do you have to load them ? if you have to load them, anybody got and good sites they know of, where I can get free `beep` tones ?
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 6th Apr 2003 15:19
1. Use RANDOMIZE TIMER() first

2. They do work, but if you are using the demo then just use rem instead

Current Project: Retro Compo. Entry.
Daz
23
Years of Service
User Offline
Joined: 26th Dec 2002
Location: United Kingdom
Posted: 6th Apr 2003 16:02
3 : No sounds in DBP, only when you run a program and press too many keys, you get a funny little sound saying "HEY! Get off my keys!", so you have to load them in. Sorry, don't know where to get "beep" sounds from, although I would like to know aswell.

DarkBASIC Professional is the best programming utility.
8/10 Housewives agree!
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 6th Apr 2003 17:21
@Daz

Technically that is not true, you could create beep sounds using memblocks.

Current Project: Retro Compo. Entry.
Daz
23
Years of Service
User Offline
Joined: 26th Dec 2002
Location: United Kingdom
Posted: 6th Apr 2003 17:49
Well I'm just a n00b so I don't know. Er...bye..*runs away*

DarkBASIC Professional is the best programming utility.
8/10 Housewives agree!
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 6th Apr 2003 18:10
Rob, I`ve never used memblocks before.....

would it be to much to ask for a quick run over on how to make sounds ?

or would it get too indepth ?

Daz
23
Years of Service
User Offline
Joined: 26th Dec 2002
Location: United Kingdom
Posted: 6th Apr 2003 18:32
Me too, Rob mate

DarkBASIC Professional is the best programming utility.
8/10 Housewives agree!
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 6th Apr 2003 18:54
Put it this way, it isn't a 5 minute job and you would be quicker downloading sounds from the web.

Memblocks are where you modify the actual bits which make up graphics / sound data and are not really suited to newbies.

However, I might be able to provide a beep sound.

Normally though, you load in sounds in MP3, wave or MIDI format.

Current Project: Retro Compo. Entry.
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 6th Apr 2003 20:25
ok, cheers anyway rob

thanks for the randomize timer bit, and as for the sounds, I`ll browse the net, or sample some in :p

Kangaroo2
23
Years of Service
User Offline
Joined: 26th Sep 2002
Location: United Kingdom
Posted: 7th Apr 2003 00:49
the remstart and remend only ignores 99% of the code I put between it. On the odd occasion it sometimes tries to read it and brings up errors. Its kinda disconcerting

If you search about the forums there's quite a bit about editing and viewng the internal data of sounds, presumably you could recreate sounds without files in such ways.

I have a feeling you were asking if you can directly acces either A: The internal PC Speaker or B: MIDI notes and the answer is, not easily no. But it is possible, there just aren't direct commands for it like in other B A S I C s

Coming Soon! Kangaroo2 Studio... wait and quiver with anticipation! lol
[email protected] - http://www.kangaroo2.com - If the apocalypse comes, email me
Impulse
23
Years of Service
User Offline
Joined: 31st Mar 2003
Location:
Posted: 7th Apr 2003 05:30
You can make beep sounds extremely easily using Soundwrench, Goldwave, Soundforge and many other sound editing utilities.

Login to post a reply

Server time is: 2026-07-11 04:23:17
Your offset time is: 2026-07-11 04:23:17