electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks GalleryGallery 
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
OT: struggle with frequency calculations
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [13 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
moudi



Joined: Oct 07, 2006
Posts: 58
Location: Bern Switzerland

PostPosted: Sun Feb 10, 2008 6:59 am    Post subject: OT: struggle with frequency calculations Reply with quote  Mark this post and the followings unread

hi dear chuckists

i recently started to learn a bit more of the mathematical backgrounds behind music. (the inital point was that Inventor mentioned those Musimathics books which i'm reading at the moment. great hint btw).

unfortunately, i'm already confused after the first three chapters Confused
in chapter 3.1 they show how to calculate semitones.
when i try to calculate the fifth in chuck wiith the mentioned formula, i get the right frequency. below chuck code shows the calculation of the ratio:
Code:
//Calculate the Ratio of the fifth
<<<Math.pow(2.0,7.0/12)>>>;


but in 3.3.3 they wrote that you can multiply the base frequency with a ratio of 3/2 to get the fifth. this ratio of 3/2 comes from the definition here in the book:

f= frequency
2f = 1st octave
3f = ocatve + fifth
4f = 2nd octave

according this definition you can define 3/2 as the ratio for the fifth and 4/3 as the ratio of the fourth.
however, when i try to calculate the frequency this way, i get a slightly different result.
so what the heck am i thinking wrong Question Mad

a confused novice
/moudi
Back to top
View user's profile Send private message Visit poster's website
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 10752
Location: Netherlands, Enschede
Audio files: 22
G2 patch files: 287

PostPosted: Sun Feb 10, 2008 7:26 am    Post subject: Reply with quote  Mark this post and the followings unread

Welcome to the wonder world of tuning Very Happy

The first expression is according to the twelve tone equal tempered scale (as used on a piano), which gives an approximation for the pure fifth from the 2nd expression.

We have a complete subsection for these kind of phenomena : http://electro-music.com/forum/forum-147.html

And Carlo collects links for the subject : http://electro-music.com/forum/links.php?id=31

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 6248
Location: The Hague, NL
G2 patch files: 3

PostPosted: Sun Feb 10, 2008 7:30 am    Post subject: Reply with quote  Mark this post and the followings unread

I'm not sure I understand the question 100% but could you be running into this?
http://en.wikipedia.org/wiki/Pythagorean_comma

A friendly warning; tunings and experiments with them are lots of fun but also a excellent way to drive yourself insane.

Oh, I just see Jan beat me to a reply but I'll post anyway for the different angle.

_________________
while(!machine.crash() ) <<<"all is well">>>;
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Blue Hell
Site Admin


Joined: Apr 03, 2004
Posts: 10752
Location: Netherlands, Enschede
Audio files: 22
G2 patch files: 287

PostPosted: Sun Feb 10, 2008 8:01 am    Post subject: Reply with quote  Mark this post and the followings unread

Kassen wrote:
A friendly warning; tunings and experiments with them are lots of fun but also a excellent way to drive yourself insane.


Or into a Pythagorean coma Rolling Eyes

_________________
Jan
Back to top
View user's profile Send private message Visit poster's website
moudi



Joined: Oct 07, 2006
Posts: 58
Location: Bern Switzerland

PostPosted: Sun Feb 10, 2008 8:58 am    Post subject: Reply with quote  Mark this post and the followings unread

BlueHell wrote:
The first expression is according to the twelve tone equal tempered scale (as used on a piano), which gives an approximation for the pure fifth from the 2nd expression.

Kassen wrote:
I'm not sure I understand the question 100% but could you be running into this?
http://en.wikipedia.org/wiki/Pythagorean_comma

you both hit the bull's eye with the first shot Cool

Kassen wrote:
A friendly warning; tunings and experiments with them are lots of fun but also a excellent way to drive yourself insane.

too late, already addicted Razz

also good to know that there exists a subsection for these kind of things.

thanks to both for your replies.
/moudi
Back to top
View user's profile Send private message Visit poster's website
renderful



Joined: Apr 18, 2007
Posts: 10
Location: Boulder, Co

PostPosted: Sun Feb 10, 2008 9:39 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks for pointing out the Musimathics books!
Back to top
View user's profile Send private message
moudi



Joined: Oct 07, 2006
Posts: 58
Location: Bern Switzerland

PostPosted: Tue Feb 12, 2008 9:09 am    Post subject: Reply with quote  Mark this post and the followings unread

renderful wrote:
Thanks for pointing out the Musimathics books!

yep, they're just great! I can really recommend them.
thanks to inventor for mention them.
Back to top
View user's profile Send private message Visit poster's website
Inventor



Joined: Oct 13, 2007
Posts: 1168
Location: Florida, USA
Audio files: 50

PostPosted: Wed Feb 13, 2008 4:02 am    Post subject: Reply with quote  Mark this post and the followings unread

cool moudi, glad i could help in some way. After the recent treatment I've gotten from the web, it's nice to hear somebody say something nice for a change, lol!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 6248
Location: The Hague, NL
G2 patch files: 3

PostPosted: Thu Feb 14, 2008 8:05 am    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
After the recent treatment I've gotten from the web, it's nice to hear somebody say something nice for a change, lol!


*hug*

_________________
while(!machine.crash() ) <<<"all is well">>>;
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Inventor



Joined: Oct 13, 2007
Posts: 1168
Location: Florida, USA
Audio files: 50

PostPosted: Thu Feb 14, 2008 8:11 am    Post subject: Reply with quote  Mark this post and the followings unread

ty for hugh, Usenet can be cruel!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 6248
Location: The Hague, NL
G2 patch files: 3

PostPosted: Thu Feb 14, 2008 8:48 am    Post subject: Reply with quote  Mark this post and the followings unread

http://www.urbandictionary.com/define.php?term=hugh

Usually urbandictionary helps me out with terms like that but I'm still lost.

Never got the hang of usenet...

_________________
while(!machine.crash() ) <<<"all is well">>>;
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Inventor



Joined: Oct 13, 2007
Posts: 1168
Location: Florida, USA
Audio files: 50

PostPosted: Thu Feb 14, 2008 8:54 am    Post subject: Reply with quote  Mark this post and the followings unread

i'm so tired this morning that i misspelled hug! hugh = hug! haha!
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 6248
Location: The Hague, NL
G2 patch files: 3

PostPosted: Thu Feb 14, 2008 9:42 am    Post subject: Reply with quote  Mark this post and the followings unread

Ha ha ha ha!

That's halfway across the keyboard! :¬)

_________________
while(!machine.crash() ) <<<"all is well">>>;
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [13 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
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
You cannot attach files in this forum
You can download files in this forum

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003, 2004, 2005, 2006 and 2007 by electro-music.com