Sigrid Haflínudóttirput utils and a440 to the root dir03bbdd26 years agoHistory
27 lines · 299 B · Text
RawDownload
#!/bin/rc awk '	BEGIN {		octave = -1	} 	/#/ {		$1 = tolower($1)		sub("#", "")	} 	{		split($1, n, "")		if(n[2] != octave){			if(octave >= 0)				printf "	},\n"			printf "	[%d] = {\n", n[2]		}		octave = n[2]		printf "		[''%s''-''A''] = %s,\n", n[1], $2	} 	END {		printf "	}\n"	}'

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t