Skip to content

Instantly share code, notes, and snippets.

@StartAutomating
Created September 14, 2026 04:49
Show Gist options
  • Select an option

  • Save StartAutomating/4e493d2e43afdd56c702a5f929775757 to your computer and use it in GitHub Desktop.

Select an option

Save StartAutomating/4e493d2e43afdd56c702a5f929775757 to your computer and use it in GitHub Desktop.
Gist get notes as notemoji
$notemoji = foreach ($note in $fromDecps) {
$fraction = @($note -split '@')[1] -as [double]
$timelessNote = $note -replace '@.+?$'
$timelessNote = $timelessNote -replace '\#', '♯'
switch ($fraction) {
(1/4) {
$timelessNote + " `u{1D15F}"
}
(1/2) {
$timelessNote + " `u{1D1E3}"
}
(1/16) {
$timelessNote + " `u{1D161}"
}
(1/8) {
$timelessNote + " `u{1D160}"
}
(1/64) {
$timelessNote + " `u{1d163}"
}
(1/128) {
$timelessNote + " `u{1d164}"
}
default {
$note
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment