frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

The Bicycle of Fifths – A Procedural Method for Remembering Key Signatures

https://editor.p5js.org/remote-files/full/-n651WXmu
2•RockofStrength•10m ago

Comments

RockofStrength•10m ago
My former piano student, u/physicsstudent137, has created a brilliant and simple method for identifying the tonic of a given key signature:

Step 1: Count the number of sharps or flats in the key signature. Step 2: If an even number of sharps or flats, start on C. If an odd number, start on F♯ (F♯ is the 'odder' note, after all). Step 3: For flats you go left from there that many half-steps. For sharps you go right from there that many half-steps. Step 4: (If necessary) disambiguate between enharmonic equivalent note labels (e.g., F♯/G♭). For sharps, the note is the sharp note name. For flats, the note is the flat note name.

Whatever note you land on is the major tonic of the key signature.

Try it yourself!: https://editor.p5js.org/remote-files/full/-n651WXmu

Here is his description below:

I numbered the notes of the octave 0-11 and found that the key signatures can be identified based on whether the note number is even or odd. It's as if there are two sub-cycles within the circle of fifths: one for even key signatures, and one for the odd key signatures. Also, the number of accidentals in a key signature has the same parity as the tonic note. That is, if the note number is odd, then the number of sharps/flats in that key signature is also odd. Same for evens.

The even notes start at the index of 0 accidentals on the circle of fifths and go clockwise in the order 0, 2, 4, 6, 8, 10.

The odd notes start at the index of -5 (aka +7) accidentals and go clockwise in the order 1, 3, 5, 7, 9, 11.

Assuming sharps to be positive numbers and flats to be negative numbers, I found that the tonic note of a given (major) key signature can be determined by adding the number of accidentals in the key signature to either the note 0 (note C) for even key signatures or to the note 6 (note F♯/G♭) for odd key signatures. I sometimes call these two "landmark notes" in this context since they are fixed reference points.

I made a visualizer to hopefully make the pattern clearer (see link at bottom of post). I suggest trying the following: Step 1: Set the note labels to "Numbers" Step 2: Click on all of the odd-numbered notes in the circle of fifths in ascending order and observe the pattern. Step 3: Click on all of the even-numbered notes in the circle of fifths in ascending order and observe the pattern. (I used G♭ instead of F♯ for the key signature of note number 6 for simplicity, but the pattern still holds for F♯ and can be extended to enharmonic and theoretical key signatures.)

To go the in the reverse direction and answer the question "how many accidentals are in the key signature of this tonic note" is a little trickier, but I just visually reverse the procedure above, either while looking at a keyboard or by visualizing a keyboard in my mind. After a long time of staring at the numbered circle of fifths, I ended up memorizing the note numbers and whether each note is even or odd, so I just ask myself "how many semitones away is this note from its corresponding landmark note?"

For those who are curious, pedantic, or masochistic, I wrote a much lengthier and more detailed write up, see the link below. Derivation write-up: https://drive.google.com/file/d/1Oyi2s9HowefMtI3-I5A7z10VlDj... Visualizer: https://editor.p5js.org/remote-files/full/-n651WXmu

All credit goes to u/physicsstudent137.

Things that should be considered essential vitamins but aren't

https://scottlocklin.wordpress.com/2025/11/08/things-that-should-be-considered-essential-vitamins...
1•surprisetalk•3m ago•0 comments

It's easier to build SpaceX than to fix Boeing [video]

https://www.youtube.com/watch?v=Q4Krg42Mg-E
1•surprisetalk•3m ago•0 comments

Structural Inducements for Hallucination in LLMs

https://www.researchgate.net/publication/397779918_Structural_Inducements_for_Hallucination_in_La...
1•felineflock•3m ago•0 comments

A VSCode extension for GPU/AI trace profiling, viewing and performance analysis

https://marketplace.visualstudio.com/items?itemName=nCompassTech.ncprof-vscode
2•adiraja•4m ago•0 comments

UK bar bans solo-drinkers to 'protect customers'

https://www.bbc.com/news/articles/cnve4eypg8zo
1•walterbell•4m ago•0 comments

Meta Learns That Nothing Is a Monopoly If You Just Wait Long Enough

https://gizmodo.com/meta-learns-that-nothing-is-a-monopoly-if-you-just-wait-long-enough-2000687691
1•robtherobber•5m ago•0 comments

Things I learned in the last 2 years

https://catalins.tech/50-things/
1•cmpit•5m ago•0 comments

GitHub – Sqfmi/Watchy: Watchy – An Open Source E-Ink Smartwatch

https://github.com/sqfmi/Watchy
1•bilsbie•6m ago•0 comments

Commit Goods

https://commitgoods.com/
1•mooreds•7m ago•0 comments

Some Exoplanets Can Create Their Own Water Through Crust-Atmosphere Reactions

https://www.universetoday.com/articles/some-exoplanets-can-create-their-own-water-through-crust-a...
1•rbanffy•8m ago•0 comments

Show HN: Optimizing JIT Compiler for Code Mode MCP

https://github.com/stanford-mast/a1
1•ardmiller•9m ago•0 comments

Reimagining Online Discourse

https://joinmastodon.org/sponsors
1•doener•10m ago•0 comments

The Bicycle of Fifths – A Procedural Method for Remembering Key Signatures

https://editor.p5js.org/remote-files/full/-n651WXmu
2•RockofStrength•10m ago•1 comments

The Question of Standing in Leaks of Non-'Salacious' Data

https://www.lawfaremedia.org/article/the-question-of-standing-in-leaks-of-non--salacious--data
1•hn_acker•10m ago•0 comments

3-Hour Cloudflare Outage Knocks Out AI Chatbots, Shopify

https://thenewstack.io/3-hour-cloudflare-outage-knocks-out-ai-chatbots-shopify/
2•CrankyBear•11m ago•0 comments

Lessons from the European Airports Ransomware Attack

https://www.lawfaremedia.org/article/lessons-from-the-european-airports-ransomware-attack
1•hn_acker•11m ago•0 comments

Ask HN: How are non-technical people using AI?

1•yakkomajuri•13m ago•0 comments

FutureMe

https://www.futureme.org/
1•bookofjoe•13m ago•0 comments

Amazon Cut Engineers

https://www.cnbc.com/2025/11/21/amazon-cut-thousands-of-engineers-in-its-record-layoffs-filings-s...
1•28304283409234•14m ago•0 comments

Borland Turbo Assembler (TASM) Unofficial Changelist

https://web.archive.org/web/20240422072306/http://bytepointer.com/tasm/index.htm
1•mariuz•15m ago•0 comments

What do twins know about loneliness that the rest of us don't?

https://twins.longlead.com
1•gmays•16m ago•0 comments

How to replicate the Claude Code attack with Promptfoo

https://www.promptfoo.dev/blog/claude-code-attack/
3•typpo•18m ago•0 comments

Helping Valve to Power Up Steam Devices

https://www.igalia.com/2025/11/helpingvalve.html
2•TingPing•19m ago•0 comments

Impersonators are (still) targeting companies with fake TechCrunch outreach

https://techcrunch.com/2025/11/21/impersonators-are-targeting-companies-with-fake-techcrunch-outr...
1•doener•19m ago•0 comments

Gray's '5 minute rule' in the cloud era

https://thundergolfer.com/five-minute-rule
1•birdculture•20m ago•0 comments

Phyphox: Your Smartphone Is a Mobile Lab

https://phyphox.org/
2•thunderbong•20m ago•0 comments

Ask HN: Is Twitter (X) Down?

2•guluarte•20m ago•2 comments

FizzBuzz with Cosines

https://susam.net/fizz-buzz-with-cosines.html
2•hprotagonist•20m ago•0 comments

Fil-C Linux/x86_64 version 0.675

https://github.com/pizlonator/fil-c/discussions/145
1•danielfalbo•20m ago•0 comments

Victor Conte, architect of infamous sport steroids scandal, dies aged 75

https://www.theguardian.com/sport/2025/nov/04/victor-conte-architect-of-infamous-sport-steroids-s...
1•PaulHoule•22m ago•0 comments