musical tones

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2006
Posts: 8
Reputation: jimtaylor is an unknown quantity at this point 
Solved Threads: 0
jimtaylor jimtaylor is offline Offline
Newbie Poster

musical tones

 
0
  #1
Jul 25th, 2006
Dumb question #18: How can I, in C++ (Borland) sound a musical note or a series of notes?

Jim Taylor
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,616
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 466
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: musical tones

 
0
  #2
Jul 25th, 2006
If by musical note u mean a beep then it can be done using

  1. for (int i = 0; i < 20; ++i)
  2. prinf ("\7");
will sound the beep 20 times.

If u mean musical notes like piano and the likes then maybe an external sound library would be more like it ( OpenAL, FMOD ??).

Hope it helped,
Bye.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC