Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Most efficent way?
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
commandos




PostPosted: Wed Apr 16, 2008 1:52 am   Post subject: Most efficent way?

I want to create a program that will display a specified guitar chord that the user inputs. Seeing as though there are hundreds of guitar chords and variations, im just wondering what the most efficient way would be, before i start to work on this. The easiest way, i'm thinking, would to just have all the chords as JPEGs and just tell the program to import the one specified. However I dont think this is the most effiecent way, seeing as though there are tons of chords and that many JPEGs could add up to being an overly sized program for amount of output. I was also thinking of somehow making the comptuer draw the chord specifed like:

insert guitar chord table
if input = G
insert marks in the location to make G
elsif ....

this way i would only need JPEGs for the guitar chord table and about 10 or so markings for the fingers.
Any ideas/suggestions?
Sponsor
Sponsor
Sponsor
sponsor
Sean




PostPosted: Wed Apr 16, 2008 6:58 am   Post subject: Re: Most efficent way?

Can you be a bit more specific in how you want to get the input for the chords? Really didn't explain yourself there.
commandos




PostPosted: Thu Apr 17, 2008 10:56 am   Post subject: RE:Most efficent way?

I'm really not sure as of yet. I'm thinking of having the user type it in. Also I might do it like many other guitar chord finders which has a number of options that are all in columns such as the letter name of the Scale (A, E, G etc) and then another column for the type of scale (Major, Minor, Sus, Augmented) and then another option for sharp or flat. Then as the user clicks on the different combinations and the chord will change to it.
Tony




PostPosted: Thu Apr 17, 2008 11:19 am   Post subject: RE:Most efficent way?

You have a right idea there -- have just a few images for the basic units that make up chords, and then construct the final image from those parts dynamically.

It's quite easy to blend into the background with pic merge option.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
commandos




PostPosted: Thu Apr 17, 2008 2:13 pm   Post subject: RE:Most efficent way?

Ok thanks.
DaveAngus




PostPosted: Thu Apr 17, 2008 8:05 pm   Post subject: RE:Most efficent way?

Hey Commandos
I think a more efficient way would be to put the chord like this:

C

e ---|---|---|---|---|
B -x-|---|---|---|---|
G ---|---|---|---|---|
D ---|-x-|---|---|---|
A ---|---|-x-|---|---|
E ---|---|-o-|---|---|

It shows the tuning, the chord name and the positioning!

I can make a little sample code if you'd like to get a visual.

Also, it is great to see some other fellow musicians on here! Im more of a drummer then a guitarist but music is my life! thats what I'm going to school for. Producing.
commandos




PostPosted: Fri Apr 18, 2008 11:03 am   Post subject: RE:Most efficent way?

Thanks Dave, never thought of doing it that way. Thats good that your going into something you enjoy. I just play the guitar for fun on my spare time, never took any lessons. That's sort of the reason why I'm going to make this program because i don't know the actual name of most chords since all i read is tabs. I'm thinking about making this into a game to make it easier to learn the chords by name.
Tony




PostPosted: Fri Apr 18, 2008 11:24 am   Post subject: Re: RE:Most efficent way?

commandos @ Fri Apr 18, 2008 11:03 am wrote:
I'm thinking about making this into a game to make it easier to learn the chords by name.

It would be way cooler to use an actual (electric) guitar for an input device. There are a bunch of relatively cheap analog input devices available, and I bet you could match the recorded soundclip to a chord.

This wouldn't be done in Turing though Laughing
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
Sponsor
Sponsor
Sponsor
sponsor
DaveAngus




PostPosted: Fri Apr 18, 2008 11:47 am   Post subject: RE:Most efficent way?

haha yea that would be really awesome to do Tony.
Definitely couldn't be done in turing though! haha.
And Commandos, do you get what I mean?
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 9 Posts ]
Jump to:   


Style:  
Search: