PLAY command

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
Legrand

PLAY command

Post by Legrand »

Thanks a lot for your quick answer to my previous question.
Now it concerns PLAY
With that command, it is possible to create linear melodies.But Is it possible to ask the computor to read simuntaneously two horizontal instructions at the same time, in other words to play acchords instead of one single note one after the other? Some softwares can do that. How are they written?
Thanks for help!
User avatar
{Nathan}
Veteran
Posts: 1169
Joined: Thu Aug 19, 2004 6:08 pm
Location: The wetlands of central Ohio, USA
Contact:

Post by {Nathan} »

no, u cant. but get a proggy/lib land you prrobably can
marinedalek

Post by marinedalek »

The reason you can't is that the system speaker can only play one pitch at a time. You'll need to delve into the dark arts of midi to play a chord.
Z!re
Veteran
Posts: 887
Joined: Wed Aug 04, 2004 11:15 am

Post by Z!re »

Well... in theory... you could use some math, and calculate the pitch of two or more accords added togheter.

Playing a sound that we (humans) would hear as a chord.


But it would prolly take loads of work.



And the math would probably be too slow to perform in realtime to make anything good.







I am, Useless.
Guest

Post by Guest »

Nathan1993 wrote:no, u cant. but get a proggy/lib land you prrobably can
Sorry, what is it?
Post Reply