Page 1 of 1

music

Posted: Tue Oct 25, 2005 6:55 am
by D.S
I've noticed that some games have a bass and melody line both being played with what seems to be the QB PLAY command. Let me put this another way. Is it possible to have a bass and melody line using only the PLAY command?

Posted: Tue Oct 25, 2005 8:33 am
by Steve
Sure, if you know your music.

Code: Select all


                 Play c4
                    ^     ^
  The command  Plays note C in eights

:wink:

Posted: Tue Oct 25, 2005 9:35 am
by Nodtveidt
Using tone toggling (playing two notes in rapid succession) is how it's usually done with PLAY.

Music

Posted: Fri Nov 04, 2005 6:57 am
by Mary
can you give the code again? something doesn't work

Posted: Fri Nov 04, 2005 9:28 am
by {Nathan}
I am not sure what you mean, but just check QB's inline help, it really is pretty thourough. Also, mate, it needs to be in quotes cuz its a string.

Posted: Mon Nov 07, 2005 6:04 am
by matt2jones
but just check QB's inline help, it really is pretty thourough.
It doesn't cover this.
Play "c4"
Plays the note C for 1/4 the length of time that PLAY "C" plays it for.

matt

Looking for the bass

Posted: Mon Nov 07, 2005 6:10 am
by MARY
Yes but it gives only one sound and not as I understood the note and its bass?

Posted: Mon Nov 07, 2005 9:38 am
by Guest
The only way to do it is through tone toggling. The PC speaker has only one channel. You must learn to program the sound card in order to play both a bass line, and a melody, plus an additional amount of channels(that I coul not tell you because chances are my PC has a different sound card than yours...).

Posted: Fri Nov 18, 2005 6:30 pm
by Guest
ok does anywhere know the actual note values or will i have to figure it out?
as in
sound 520, 50 is playing C from 2nd octave up from middle C for 50 miliseconts
now i need C# D D# and so on or will i have to figure them out myself