CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

how i make sourcecode from this song. And what is octave.

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
a
Guest







how i make sourcecode from this song. And what is octave.
PostPosted: Fri Feb 20, 2004 12:10 pm     Reply with quote

how i make sourcecode from this song. And what is octave.
sorry for my foolish.
if i have note like below. how i create voice from this note.
Please help me and explain about your method. When u have some note like this
and how different between Octave0 and Octave1 and Octave2 and Octave3.
i am very confuse. sorry for my english language.
=========================================
// NOTE FREQUENCY
// Octave0 Octave1 Octave2 Octave3
const long C_NOTE[4] ={ 262, 523, 1047, 2093};
const long Db_NOTE[4] ={ 277, 554, 1109, 2217};
const long D_NOTE[4] ={ 294, 587, 1175, 2349};
const long Eb_NOTE[4] ={ 311, 622, 1245, 2489};
const long E_NOTE[4] ={ 330, 659, 1329, 2637};
const long F_NOTE[4] ={ 349, 698, 1397, 2794};
const long Gb_NOTE[4] ={ 370, 740, 1480, 2960};
const long G_NOTE[4] ={ 392, 784, 1568, 3136};
const long Ab_NOTE[4] ={ 415, 831, 1661, 3322};
const long A_NOTE[4] ={ 440, 880, 1760, 3520};
const long Bb_NOTE[4] ={ 466, 923, 1865, 3729};
const long B_NOTE[4] ={ 494, 988, 1976, 3951};
=========================================
next line is note. and how to convert to note of ccs c compiler

G Bm Am D G
เหมือนสายใยบางๆ ผูกปลายข้างหนึ่งไว้ที่ฉัน และปลายข้างหนึ่งที่เธอ
Em Am D
ให้ฉันและเธอ รับรู้ถึงความ ผูกพัน
G Bm Am D G
ให้รู้ทุกเวลา ว่าเธอนั้นยังมีฉัน และเธอก็มีความหมาย
Em Am D
เมื่อเธอร้องไห้ มีคนเสียใจ กว่าเธอ

G D C D G D C D
* จะยังมีฉัน ที่คอยดูแลไม่ห่าง เจ้าหญิงของฉัน ฉันยินดีทำทุกอย่าง
Bm Em Am D
ไม่ว่าวันใด ที่เธออ้างว้าง ยังมีที่ว่างที่เดิม ของเธอ
G D C D G D C D
กับคนๆนี้ ทุกนาทีเป็นของเธอ เจ้าหญิงของฉัน ฉันยินดีทำเพื่อเธอ

Bm Em Am D G ( D )
** ก่อนหลับตานอน ให้เธอรู้เสมอ มีคนต้องการให้เธอ ฝันดี

G Bm Am D G
ฉันหวังไว้ทุกวัน ให้วันของเธอสดใส ให้เธอได้เป็นดังหวัง
Em Am D
เรื่องราวทุกอย่าง ยังมีสายใย ระหว่างเรา
mvaraujo



Joined: 20 Feb 2004
Posts: 59
Location: Brazil

View user's profile Send private message

PostPosted: Fri Feb 20, 2004 12:17 pm     Reply with quote

Octave is the name in music to double the frequency,

Example: A can be 440Hz and A one octage higher, 880Hz, and so on.

I see that the reference in your code is to generate frequencies that are compatible to the notes.
a
Guest







PostPosted: Sat Feb 21, 2004 4:56 am     Reply with quote

how i make note (Bm,Em,Am). Can i make it. Or not. and how i calculate duration of during note or i should test it one by one note
Darren Rook



Joined: 06 Sep 2003
Posts: 287
Location: Milwaukee, WI

View user's profile Send private message Send e-mail

PostPosted: Sat Feb 21, 2004 10:05 am     Reply with quote

a wrote:
how i make note (Bm,Em,Am). Can i make it. Or not.


If you're using a PIC or another controller then you need an digital to analog converter and a frequency generated. Create a square, sine or triangle (the sound of each is different) wave of the specified frequency. Look at the table to see what frequency is what note.

Quote:
and how i calculate duration of during note or i should test it one by one note


That depends on the tempo of the song (think beats per minute) and the type of note played (half note, quarter note, etc).
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group