Questions tagged [music-notation]

This tag relates to all types of music notation (chords, tablatures or music score).

This tag relates to all types of music notation (chords, tablatures or music score). It may also be used for questions relating to aspects of music theory (chord progressions, etc.) that are not strictly notation-dependent. It should not be used for audio music generation, audio file players, etc..

82 questions
42
votes
8 answers

Determine the key of a song by its chords

How can I programmatically find the key of a song just by knowing the chord sequence of the song? I asked some people how they would determine the key of a song and they all said they do it 'by ear' or by 'trial and error' and by telling if a chord…
Forivin
  • 12,200
  • 21
  • 77
  • 171
31
votes
2 answers

Create an image in PHP to show guitar chords

I have a site that shows guitar chords/tabs in text format. Here's what I am currently displaying: Em: | | | | | | | | | | | | | 2 2 | | | | | | | | | | | | | | | I learn that GD can create a dynamic image for this. But I am new at PHP and I have…
GuitarMaster
  • 583
  • 3
  • 10
31
votes
7 answers

Chord detection algorithms?

I am developing software that depends on musical chords detection. I know some algorithms for pitch detection, with techniques based on cepstral analysis or autocorrelation, but they are mainly focused on monophonic material recognition. But I need…
Nemeth
  • 1,020
  • 1
  • 10
  • 16
23
votes
6 answers

Draw a music staff in C#

I am looking to draw a music staff on a .NET (C#) form. I am using Microsoft Visual C# 2010 Express. I was wondering if anyone knew of existing code or existing free .NET libraries that can help with that. I am looking at drawing both the treble…
JeffJak
  • 1,838
  • 5
  • 25
  • 40
21
votes
4 answers

Sheet music library

I'm a python hacker looking to build a sheet music app. I'm comfortable with reading/understanding sheet music (played piano for many years). Here are my complete newbie questions.. Is there a standard for representing notes digitally? I don't…
Gibbutz
  • 213
  • 1
  • 2
  • 5
19
votes
2 answers

Create guitar chords editor in WPF (from RichTextBox?)

Main purpose of application I'm working on in WPF is to allow editing and consequently printing of songs lyrics with guitar chords over it. You have probably seen chords even if you don't play any instrument. To give you an idea it looks like…
Rasto
  • 17,000
  • 40
  • 141
  • 232
16
votes
5 answers

Markdown for Guitar Chords and Lyrics

I'm trying to figure out a good way to be able to store plain text music lyrics with synchronized guitar chords. When displayed, I'd like to see the lyrics rendered double-spaced with the chords in the "whitespace" line above the corresponding…
NYCdotNet
  • 4,106
  • 1
  • 18
  • 25
15
votes
3 answers

What is the best way to automatically transpose a LilyPond source file into multiple keys?

problem I'm using LilyPond to typeset sheet music for a church choir to perform. Depending on who is available on any given week, songs will be played in various keys. We have an amazing pianist who can play anything we throw at her and the…
Michael Steele
  • 14,612
  • 2
  • 20
  • 24
11
votes
7 answers

How do I transpose music chords using JavaScript?

I was wondering how would one create a javascript function for transposing music chords. Since I don't expect everyone to be a musician here, I'll try to explain how it works in music theory. I hope I don't forget something. If yes, musicians,…
Richard Rodriguez
  • 6,863
  • 14
  • 53
  • 96
11
votes
6 answers

How do you represent music in a data structure?

How would you model a simple musical score for a single instrument written in regular standard notation? Certainly there are plenty of libraries out there that do exactly this. I'm mostly curious about different ways to represent music in a data…
allclaws
  • 5,217
  • 6
  • 28
  • 27
9
votes
3 answers

playing a chord in python

I want to do make a platform to play chords like guitar does. For example - to play the E chord it playes [0, 2, 2, 1, 0, 0] (from the Low-E string to the High-E string). I'm trying to play chords on python by playing all the different strings…
Tom
  • 107
  • 1
  • 7
9
votes
4 answers

Regex for matching a music Chord

I am trying to write a function to parse the string representation of a musical chord. Example: C major chord -> Cmaj (this is what I want to parse) Just to make it clear, a chord is made of three different parts: the note (C, D, E, F, G, A) the…
nunos
  • 17,808
  • 47
  • 112
  • 148
8
votes
2 answers

How to calculate bezier curve control points that avoid objects?

Specifically, I'm working in canvas with javascript. Basically, I have objects which have boundaries that I want to avoid, but still surround with a bezier curve. However, I'm not even sure where to begin to write an algorithm that would move…
Cyril Silverman
  • 360
  • 2
  • 12
8
votes
3 answers

An algorithm to create a simple chord progression

I'm making a program that generates random simple melodies, based an a randomized basic chord progression from the C Major scale. What would be a good way to generate a chord progression of 4 triads from this scale? Generating 4 completely random…
user3150201
  • 1,663
  • 4
  • 21
  • 26
8
votes
3 answers

Coloring notes in Lilypond by pitch

lilypond can color notes in a arbitrary way using \override NoteHead #'color = #red c with the default color is black. But I like to color all notes by pitch, so that my kids can more easily learn to recognize the notes as the c, d, e, f, ... are…
Egon Willighagen
  • 1,522
  • 4
  • 17
  • 32
1
2 3 4 5 6