mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-17 02:01:01 +01: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 {
|
||||
write-progress "Searching ..."
|
||||
$FoundOne = 0
|
||||
|
||||
$Table = import-csv "$PSScriptRoot/../Data/Abbr/Aviation.csv"
|
||||
foreach($Row in $Table) {
|
||||
if ($Row.Abbr -eq $Abbreviation) {
|
||||
" → $($Row.Description) (in aviation)"
|
||||
$FoundOne = 1
|
||||
$FoundOne = $false
|
||||
$Files = (get-childItem "$PSScriptRoot/../Data/Abbr/*" -attributes !Directory)
|
||||
|
||||
foreach ($File in $Files) {
|
||||
$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"
|
||||
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"
|
||||
}
|
||||
if ($FoundOne -eq $false) { "Sorry, no entry for $Abbreviation found" }
|
||||
exit 0
|
||||
} catch {
|
||||
write-error "⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user