electro-music.org   Dedicated to experimental electro-acoustic
and electronic music
 
 Front Page  |  Radio  |  Forum  |  Media  |  Playlists  |  Wiki
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 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
Keyboard trainer
Post new topic   Reply to topic Moderators: Kassen
Page 3 of 3 [56 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: Previous 1, 2, 3
Author Message
Frostburn



Joined: Dec 12, 2007
Posts: 255
Location: Finland
Audio files: 9

PostPosted: Thu Jun 12, 2008 11:27 am    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
I tried to test it, but I don't know what a major chord of C-E-G is, doh! It's not on my chord sheet. What string and fret numbers do I put my fingers on for that one?

I've never taken guitar lessons and I don't own one so I don't know.
Just set up your own frequencies if you don't know that midi note 48 is called C.

Inventor wrote:
Now how do we generalize it so that it works with up to 6-string chords? we can't do all combinations of six strings. Maybe we just exclude the single chords and anything else passes? No, that's not it. I am confused. Unfuzzle me brain please!

Six voices... oh man... you're right. We can't do all of them.
The algorithm needs to recognize all combinations or it simply won't work.
With three voices the number of combinations is 7.
With four voices it's already 15.
Six voices is simply too much.

But for most cases we only need three identifying notes.
Can you tell me how much you know about musical notes and chords. It's hard to explain if I cannot use pitch names like C, E or G. Or talk about chords as being Major or minor.
The wikipedia articles are a bit complicated. And I learned about this stuff in school so I can't offer any good links...

EDIT: Once we know what are the important notes in a chord. I think all we need to do is to filter out the allowed extra notes from the input signal that enters the algorithm. Then it doesn't make a difference if you play all 6 strings or just the 3 important ones. It should still detect if you're playing something wrong.

_________________
To boldly go where no man has bothered to go before.
Back to top
View user's profile Send private message
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 270

PostPosted: Thu Jun 12, 2008 12:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi, Frostburn, I have just recently learned about notes and chords. I have no musical training. I looked up the frequencies of the MIDI notes for C, E, and G that you put in your software. I searched for them on my guitar frequency table that I just made for another reason. I cannot see any way that human fingers can make that chord on a guitar, they are spread out across five frets in the upper neck where the frets are large. But I'm no expert. Here's my table:

Code:
Table of Guitar Fretboard Frequencies

        6       5       4       3       2       1

1       82      110     147     196     247     330
2       87      117     156     208     262     349
3       93      123     165     220     277     370
4       98      131     175     233     294     392
5       104     139     185     247     311     349
6       110     147     196     262     330     370
7       117     156     208     277     349     392
8       123     165     220     294     370     415
9       131     175     233     311     392     440
10      139     185     247     330     349     466
11      147     196     262     349     370     494
12      156     208     277     370     392     523
13      165     220     294     392     415     554
14      175     233     311     349     440     587
15      185     247     330     370     466     622
16      196     262     349     392     494     659
17      208     277     370     415     523     698
18      220     294     392     440     554     740
19      233     311     349     466     587     784
20      247     330     370     494     622     830
21      262     349     392     523     659     880


the frequencies you provided were 131, 165, and 196. These are on the chart but spaced really far apart! Also my table of chords, which lists over 50 chords does not have such a thing as near as I can tell. Maybe it's a chord that you can play on a piano but not on a guitar? I really don't know! Sorry for my ignorance, I'm just not musically trained.

Regarding most chords as having only three notes - well, for most of them you strum all six strings or at least five. The open strings get played too. Hmm maybe that can help us. Often it is three chords plus three open strings, which are always the same.

How about if we just did a random check? Let's say we only do a half a dozen combinations of all the possible combinations of strings, but those combinations are randomly chosen from all the possible ones? That might be OK.

I am really impressed with how well your code works for three strings, great job man!

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 270

PostPosted: Thu Jun 12, 2008 12:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

Frostburn wrote:
EDIT: Once we know what are the important notes in a chord. I think all we need to do is to filter out the allowed extra notes from the input signal that enters the algorithm. Then it doesn't make a difference if you play all 6 strings or just the 3 important ones. It should still detect if you're playing something wrong.


Oh, now I see your edit. Yep, sounds good to me!

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
blue hell
Former site admin


Joined: Apr 03, 2004
Posts: 24864
Location: The Netherlands, Enschede
Audio files: 353
G2 patch files: 320

PostPosted: Thu Jun 12, 2008 3:11 pm    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
the frequencies you provided were 131, 165, and 196. These are on the chart but spaced really far apart!


You're being lazy and should be able to that Laughing


ceg.jpg
 Description:
 Filesize:  23.23 KB
 Viewed:  5395 Time(s)

ceg.jpg


Back to top
View user's profile Send private message Visit poster's website
Inventor
Stream Operator


Joined: Oct 13, 2007
Posts: 6221
Location: near Austin, Tx, USA
Audio files: 270

PostPosted: Thu Jun 12, 2008 6:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

Blue Hell wrote:
You're being lazy and should be able to that Laughing


OOPS! Shocked I am so embarrassed Embarassed I blame it on the caffeine! The program works great as is out-of-the-box!

_________________
"Let's make noise for peace." - Kijjaz
Back to top
View user's profile Send private message Send e-mail
blue hell
Former site admin


Joined: Apr 03, 2004
Posts: 24864
Location: The Netherlands, Enschede
Audio files: 353
G2 patch files: 320

PostPosted: Thu Jun 12, 2008 6:06 pm    Post subject: Reply with quote  Mark this post and the followings unread

Inventor wrote:
I blame it on the caffeine!


Over alertness can do nasty things to me as well Laughing
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 3 of 3 [56 Posts]
View unread posts
View new posts in the last week
Goto page: Previous 1, 2, 3
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
Log in
Username:     Password:      Log me on automatically each visit    


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2026 by electro-music.org