
-----------------------------------
MihaiG
Thu Jul 21, 2005 9:34 am

sound
-----------------------------------
well.. i know there is a soudn tutorial already made by hacker dan...but he didnt cover on how to use the frequencies... :shock: 

well as you know the sound in turing is based on the frequency and duration lets look  at the basics

for most pianos*especialy digital* are tuned to the frequency "440" this is the note "A" below middle C.....well thats usefull enough but how do u gte lets say "middle C"well..theres this simple formula you have to rember:-)
x-is the note we want to get
y-the note we know
z-semi tones between them

x= y*2^(z/12)

so lets try for c

x=440*2^(3/12)
x=440*2^(0.25)
x = 523*rounded*
 now lets try this formula ot make a chromatic scale 


var x := 220
loop
sound (x,500)
x := round(x*2**(1/12))
end loop

as you see everytime the loop is intiated the frequency goes up by one semitone...this cna be usefull to make keyboard type programs like the none in "turing sourcecode"...i made that one based on this formula 

well i hope this helps


*ps*this is my first tutorial* show mercy and give advice

-----------------------------------
[Gandalf]
Thu Jul 21, 2005 7:35 pm


-----------------------------------
Well, pretty good (except that you stole my idea :x).  Try using more punctuation, capitalization in specific.

-----------------------------------
Delos
Thu Jul 21, 2005 8:12 pm


-----------------------------------
Not bad, but please try to explain yourself better.  Also, add some Titles and other such guides to ease the flow of your tutorial.
And yes, punctuation is a must, spelling not so much for obvious reasons..

Pending these reviews, bits to be awarded.

-----------------------------------
jamonathin
Fri Jul 22, 2005 12:40 am


-----------------------------------
 bits to be awarded.
Lol, is that why he's sitting at -3 :P

-----------------------------------
MihaiG
Fri Jul 22, 2005 8:37 am


-----------------------------------
"]Well, pretty good (except that you stole my idea :x).  Try using more punctuation, capitalization in specific.
stole... i looked through out the tutorial section for something like my idea i didnt see anything...*and if there ios im sorry*...


how did i get to "-1" bits*i just posted :-P*

-----------------------------------
[Gandalf]
Fri Jul 22, 2005 12:17 pm


-----------------------------------
Heh, 0 bits, nice and even :P.

Well, no you didn't steal my idea, but I was going to make a tutorial on making good sound too, it doesn't matter anyways it got done...

-----------------------------------
Delos
Fri Jul 22, 2005 1:52 pm


-----------------------------------
how did i get to "-1" bits*i just posted :-P*

Bits are deducted when you delete a post/have a post deleted.  Or perhaps you pissed a Mod off and they removed them for you.
