Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
C++ Music(not mine)
#1
Hey guys, a bunch of college students wanted to know if you can play music using TurboC++?

They say its kinda like our "Play" statement. :*)

BTW, They also need a "Calendar" proggie. :*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#2
You have to code it yourself, I mean, you have to communicate with the speaker in low level and write the parser for the "PLAY - alike" notation.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply
#3
Hm...I believe one of Turbo's non-ANSI library functions plays a note for a specified duration and frequency...so you could use that and just tinker, find out which frequencies turn out to be A, B, etc.
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#4
You can use sound(frequency), delay(milliseconds) and nosound() to play notes in TC/BC. (They're in DOS.H)
Reply
#5
I knew it! I knew it! Confusedhifty:
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#6
Zack: meh

You could use the table provided by Plasma to write a function which accepts a string and then parses it to play the 'music'.
Reply
#7
Just trying to show off my nerdiness, no other braggadocio implied... Tongue
f only life let you press CTRL-Z.
--------------------------------------
Freebasic is like QB, except it doesn't suck.
Reply
#8
:lol:
Reply
#9
Quote:You can use sound(frequency), delay(milliseconds) and nosound() to play notes in TC/BC. (They're in DOS.H)

Okay, I don't have TurboC++ But would QuickC suffice?


I mean the calling procedures look different.

I'll try to find a book an learn C to see what I can do.


Just yesterday, I help another bunch of students with their turbo pascal proggie. A baking proggie, not really hard as I had lil experience in Turbo pascal already. :*)

But C? I have 0 knowledge. :*(

I just want to help these students seeing how they persevere to know stuff. :*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#10
I suggested to bear directly with hardware 'cause these functions only work in BorlandC. BorlandC can be evil: it features tons and tons of non portable functions, so it is very usual that BorlandC code doesn't work anywhere else.
SCUMM (the band) on Myspace!
ComputerEmuzone Games Studio
underBASIC, homegrown musicians
[img]http://www.ojodepez-fanzine.net/almacen/yoghourtslover.png[/i
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)