Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 3rd, 2002, 01:24 PM
bradym3 bradym3 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2001
Posts: 12 bradym3 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 51 m 43 sec
Reputation Power: 0
Question Storing Guitar Songs in a Database

Hello all,

I am wondering if anyone knows of a good way to store/organize guitar music in a database. This would include lyric text, guitar tabulature and how the two are coordinated. Does anyone have any ideas?

Thanks in advance

Reply With Quote
  #2  
Old December 3rd, 2002, 10:27 PM
binky's Avatar
binky binky is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: New Zealand
Posts: 1,774 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 58 m 15 sec
Reputation Power: 23
Hmm, a long list of chords per track?

Well, two simple tables:

TRACKID NUMERIC,
LYRICS BLOB,
GUITAR_TAB BLOB

and a look-up table:

CHORDID NUMERIC,
FINGER_PATTERN VARCHAR(5) ... assuming you use five fingers.

Would store the data.

GUITAR_TAB could be a long sequence of two digit numbers from 00 (a rest) upwards that represent a CHORDID in the look-up table. This way you simply do a while loop in your program to get all the chords back.

Now, as you rightly say, you need to calculate the coordination of the two... hence you need to replicate some sequencing method such as Cubase where each value is given a duration. This is easy for the guitar tabliture as you simply add another two digits to the two for the chord, these two representing the duration. How you do the duration of the lyrics though is something I can't work out. Possibly you give each word a duration, but then it makes the adding and extraction of lyrics a complicated one, no simple cut and paste job. When extracting the lyrics you have to somehow get the figure and the word separate, not impossible but not easy.

Any help?
__________________
Smartfone Warehouse

Reply With Quote
  #3  
Old December 18th, 2002, 03:28 PM
sforrester sforrester is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 5 sforrester User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Bradym3,

Based on the info provided, two tables would exist. One table for the guitar tabs and one for the lyric text. When you say database, hopefully that is a reference to a SQL DBMS with relational qualities. The reason why is so you query information from both tables. Anyway the most important part is having a surrogate key (a computer created unique identifier), which exist in both tables (same surrogate key in both tables). That way if the lyric text changes and the guitar tab does not, then you can update the lyric text table without creating any update anomalies and vice versa. The two tables are connected via the surrogate key, which provides referential intergrity.

Regards,

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Storing Guitar Songs in a Database

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap