Pure Programmer
Blue Matrix


Cluster Map

Project: Chromatic Scale Frequencies

Compute the frequnecies of the notes in chromatic scale based on the standard piano keys in twelve-tone equal temperament. Print the note names A, A#, B, C, C#, etc. followed by the frequency in Hertz. One command line argument should be passed that indicates the octave on the piano that should be used, 0-7.

See [[Piano key frequencies]]

Output
$ swiftc ChromaticScale.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation) $ swiftc ChromaticScale.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation) $ swiftc ChromaticScale.swift -I . -L . -lUtils error: link command failed with exit code 1 (use -v to see invocation) ld: library not found for -lUtils clang: error: linker command failed with exit code 1 (use -v to see invocation)

Solution