Comments (3)
Hey thanks! ๐๐ป
So I wonโt say I was totally unaware about the fact thereโs a convention for when to use sharps or flats. But the logic of whether to use one or the other still escapes from my knowledge.
But we definitely have to fix that. Iโm positive there must be a way choose which note to show regardless if they are the same pitch. Even if we hardcode at some point.
Could you share me some knowledge on whether do we use sharps or flats? How does that work?
from coltrane.
How does that work?
Generally, it's based off the key/scale you're talking about--some keys are always denoted in flats, others in sharps. I forget the exact rule, but I think the general rule of thumb is that you use the whichever (flats vs sharps) that would result in the reader having to read the least amount of those marks. Further, when writing something that uses flats to denote its key, on a staff you always notate the flats in the following order: B, E, A, D, G, C, F; when writing in a key that uses sharps, you always notate them in order: F, C, G, D, A, E, B.
For example, F# major and Gb major get you playing the same notes, but some may prefer one of the other when notating or playing.
So maybe in code you could make some association to a key (ex C major) to an object that captures the flats/sharps associated with it, then if you see sharps, you can display accordingly? I have to run now, but maybe I peek at the code later.
from coltrane.
Solved by 687200b
from coltrane.
Related Issues (20)
- "Gem.gunzip is deprecated; use Gem::Util.gunzip instead." when using Coltrane HOT 2
- coltrane ... --on guitar: Strings depicted in unconventional (reverse) order HOT 2
- enharmonic change HOT 3
- Run in Hyper with `Abnormal end` HOT 1
- Tritone Substitution gives the wrong chord HOT 1
- Ruby 3 support HOT 9
- chords not recognized
- Abnormal end HOT 5
- Status of project? HOT 1
- Commands not recognized HOT 1
- provide install via Homebrew HOT 1
- provide install via macports
- crashes with C9 or Cadd9 or C add9 or C add 9 etc. HOT 5
- Broken link for "Why did I write this library" URL in `README.md`.
- abnormal end HOT 6
- Ability to change the turning on the guitar from the command line
- Generate pitch sound harmonic signals for aperture HOT 2
- Most examples end in "abnormal end" HOT 1
- Problem with coltrane shell in Linux Mint 21
- Circle of fifths representation (feat req)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coltrane.