Skip to content

Instantly share code, notes, and snippets.

@toddpress
Created April 12, 2017 09:09
Show Gist options
  • Save toddpress/650762215aae7f54ddb2fb74f4e1e9d6 to your computer and use it in GitHub Desktop.
Save toddpress/650762215aae7f54ddb2fb74f4e1e9d6 to your computer and use it in GitHub Desktop.
Sass function to calc guitar fret widths
@function calculate-fret-distance($scaleLength, $nthFret)
@return $scaleLength - $scaleLength / pow(2, ($nthFret/12))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment