mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-17 07:28:18 +02:00
Add music.csv
This commit is contained in:
parent
3c80715190
commit
67398dafbd
81
Data/Abbr/music.csv
Normal file
81
Data/Abbr/music.csv
Normal file
@ -0,0 +1,81 @@
|
|||||||
|
Abbr,Description
|
||||||
|
8va,Octave up
|
||||||
|
ad lib,Ad Libitum (“freely”)
|
||||||
|
afl,Alto flute
|
||||||
|
AS,Al Segno (“To the sign”)
|
||||||
|
bc,Basso Continuo (“continuous bass accompaniment”)
|
||||||
|
bcl,Bass clarinet
|
||||||
|
bfl,Bass flute
|
||||||
|
bpm,Beats per minute
|
||||||
|
bn,Bassoon
|
||||||
|
bob,Bass oboe
|
||||||
|
br,Brass instruments
|
||||||
|
bstcl,Basset clarinet
|
||||||
|
bsthn,Basset horn
|
||||||
|
bug,Bugle
|
||||||
|
cbcl,Contrabass clarinet
|
||||||
|
cbn,Contrabassoon
|
||||||
|
cf,Cantus Firmus (“main melody”)
|
||||||
|
cl,Clarinet
|
||||||
|
cresc,Crescendo (also noted as <)
|
||||||
|
crt,Cornet
|
||||||
|
D.C. al Coda,Da Capo al Coda (“from the beginning to the Coda sign”)
|
||||||
|
D.C. al Fine,Da Capo al Fine (“from the beginning to the end”)
|
||||||
|
D.S. al Fine,Dal Segno al Fine (“from the Segno mark to the end”)
|
||||||
|
decresc,Descrescendo (also noted as >)
|
||||||
|
dim,Diminuendo
|
||||||
|
eh,English horn
|
||||||
|
euph,Euphonium
|
||||||
|
f,Forte
|
||||||
|
fda,Flute d’amore (tenor flute)
|
||||||
|
ff,Fortissimo
|
||||||
|
fff,Fortississimo
|
||||||
|
fgh,Flugelhorn
|
||||||
|
fl,Flute
|
||||||
|
fp,Fortepiano
|
||||||
|
gliss,Glissando (“gliding, sliding”)
|
||||||
|
hn,Horn
|
||||||
|
m,Measure
|
||||||
|
mm,Measures
|
||||||
|
MM,Metronome tempo
|
||||||
|
mf,Mezzo-Forte
|
||||||
|
mp,Mezzo-Piano
|
||||||
|
mvt,Movement
|
||||||
|
ob,Oboe
|
||||||
|
oda,Oboe d’amore
|
||||||
|
orch,Orchestra
|
||||||
|
p,Piano
|
||||||
|
p,Page,
|
||||||
|
pan,Pan flute
|
||||||
|
pic,Piccolo
|
||||||
|
picc,Piccolo
|
||||||
|
pizz,Pizzicato (“plucking”)
|
||||||
|
pp,Pianissio
|
||||||
|
pp,Pages
|
||||||
|
ppp,Pianississimo
|
||||||
|
rall,Rallentando (“gradual slowing”)
|
||||||
|
rec,Recorder
|
||||||
|
rit,Ritardando (“slowing down”)
|
||||||
|
Rf,Rinforzando (“with sudden force”)
|
||||||
|
Rfz,Rinforzando (“with sudden force”)
|
||||||
|
rpm,Revolutions per minute
|
||||||
|
sax,Saxophone
|
||||||
|
sf,Sforzando, Sforzato (“sudden accent”)
|
||||||
|
sfz,Sforzando, Sforzato (“sudden accent”)
|
||||||
|
sfp,Sforzando followed by Piano
|
||||||
|
smorz,Smorzando (“dying away”)
|
||||||
|
sord,Sordino (“muted”)
|
||||||
|
sost. ped,Sostenuto pedal (“sustained pedal”)
|
||||||
|
spicc,Spiccato (“bounce bow on a stringed instrument”)
|
||||||
|
stacc,Staccato (“playing each note separately from the others”)
|
||||||
|
stpt,Slide trumpet
|
||||||
|
sul pont,Sul Ponticello (“playing with the bow near the bridge”)
|
||||||
|
tba,Tuba
|
||||||
|
tbn,Trombone
|
||||||
|
tpt,Trumpet
|
||||||
|
tr,Trill
|
||||||
|
trem,Tremolo (“trembling, wavering”)
|
||||||
|
tsx,Tenor saxophone
|
||||||
|
vib,Vibrato (“pulsing, vibrating”)
|
||||||
|
vol,Volume
|
||||||
|
ww,Woodwinds
|
Can't render this file because it has a wrong number of fields in line 36.
|
@ -10,27 +10,22 @@ if ($Abbreviation -eq "" ) { $Abbreviation = read-host "Enter the abbreviation"
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
write-progress "Searching ..."
|
write-progress "Searching ..."
|
||||||
$FoundOne = 0
|
|
||||||
|
|
||||||
$Table = import-csv "$PSScriptRoot/../Data/Abbr/Aviation.csv"
|
$FoundOne = $false
|
||||||
foreach($Row in $Table) {
|
$Files = (get-childItem "$PSScriptRoot/../Data/Abbr/*" -attributes !Directory)
|
||||||
if ($Row.Abbr -eq $Abbreviation) {
|
|
||||||
" → $($Row.Description) (in aviation)"
|
foreach ($File in $Files) {
|
||||||
$FoundOne = 1
|
$Table = import-csv "$File"
|
||||||
|
foreach($Row in $Table) {
|
||||||
|
if ($Row.Abbr -eq $Abbreviation) {
|
||||||
|
$Filename = (get-item "$File").Name
|
||||||
|
" → $($Row.Abbr) = $($Row.Description) (in $Filename)"
|
||||||
|
$FoundOne = $true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$Table = import-csv "$PSScriptRoot/../Data/Abbr/Misc.csv"
|
if ($FoundOne -eq $false) { "Sorry, no entry for $Abbreviation found" }
|
||||||
foreach($Row in $Table) {
|
|
||||||
if ($Row.Abbr -eq $Abbreviation) {
|
|
||||||
" → $($Row.Description) (in misc)"
|
|
||||||
$FoundOne = 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($FoundOne -eq 0) {
|
|
||||||
"Sorry, no entry for $Abbreviation found"
|
|
||||||
}
|
|
||||||
exit 0
|
exit 0
|
||||||
} catch {
|
} catch {
|
||||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
Loading…
Reference in New Issue
Block a user