image
Physics Forums Logo
image
image
* Register * Upgrade Blogs Library Staff Rules Mark Forums Read
image
image   image
image

image Make a program Share It Thread Tools Search this Thread image
Old Jun28-09, 11:24 PM                  #1
exportedhuman

exportedhuman is Offline:
Posts: 6
Make a program

I have a class in computer basics, for accountants (my major)
I am also learning C and thinking if I can make a program that outputs a single sound of 'do'
(do in 'do re mi fa sol la si etc')

I also would like you to tell me how to change the 'vocality' in that increasing order so I can output all of them not justa single sound of do

Thank you
  Reply With Quote
Old Jun29-09, 12:42 AM                  #2
danong

danong is Offline:
Posts: 39
Re: Make a program

yes you can,
there is a function called 'Beep(frequency)' if i have not forgotten,
the frequency is the one you need to figure out which is your standard 'do' and starts off you can find other harmony keys that come after.
  Reply With Quote
Old Jun29-09, 05:22 AM                  #3
MATLABdude

MATLABdude is Offline:
Posts: 875
Re: Make a program

Originally Posted by danong View Post
yes you can,
there is a function called 'Beep(frequency)' if i have not forgotten,
the frequency is the one you need to figure out which is your standard 'do' and starts off you can find other harmony keys that come after.
'Do' is usually C (and probably C4, or middle C). There's a frequency correspondence for the middle notes at the Wikipedia article on musical notes (along with the southern and eastern european names for the notes, i.e. Do-Re-Mi-Fa-So-La-Ti-Do):
http://en.wikipedia.org/wiki/Music_notes

I think the beep(frequency_in_Hz, duration_in_ms) may only work with C++ on a windows platform, using the windows.h library. However, I used it once to do the theme from 2001: A Space Odyssey (after working out the harmony on our piano). Here's more:
http://www.daniweb.com/forums/thread15252.html#
  Reply With Quote
image image
Reply
Thread Tools


Similar Threads for: Make a program
Thread Thread Starter Forum Replies Last Post
Best program to make graphics for LaTeX?? JasonJo Math & Science Software 2 Jan7-09 09:43 AM
running a Fortran 77 program in a C++ enviorment/program lordentropy Programming & Comp Sci 2 Apr4-08 12:50 AM
Astro simulation program problem - program bugs? concious Astrophysics 4 Mar1-07 10:12 AM
Look for program for make sculptures with calabi yau (fwd) mustafa umut sarac Beyond the Standard Model 0 Oct11-06 02:02 PM
Trying to make Web services make sense Tech Reporter Computing & Technology 0 Jun22-04 10:00 PM

Powered by vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. © 2009 Physics Forums
Sciam | physorgPhysorg.com Science News Partner
image
image   image