Add volume numbers for non-musicians
This commit is contained in:
parent
7ae9f66a1c
commit
2aa09e4fe9
@ -8,6 +8,17 @@ MUSIC = GameIcons.get('delapouite/musical-score').
|
|||||||
recolor(fg: 'black', bg: 'white', fg_opacity: 1.0, bg_opacity: 0.0).
|
recolor(fg: 'black', bg: 'white', fg_opacity: 1.0, bg_opacity: 0.0).
|
||||||
string
|
string
|
||||||
|
|
||||||
|
VOLUMES = {
|
||||||
|
"ppp" => 1,
|
||||||
|
"pp" => 2,
|
||||||
|
"p" => 3,
|
||||||
|
"mp" => 4,
|
||||||
|
"mf" => 5,
|
||||||
|
"f" => 6,
|
||||||
|
"ff" => 7,
|
||||||
|
"fff" => 8,
|
||||||
|
}
|
||||||
|
|
||||||
data = Squib.yaml file: 'data.yml'
|
data = Squib.yaml file: 'data.yml'
|
||||||
|
|
||||||
Squib::Deck.new(cards: 18) do
|
Squib::Deck.new(cards: 18) do
|
||||||
@ -27,7 +38,7 @@ Squib::Deck.new(cards: 18) do
|
|||||||
} do |embed|
|
} do |embed|
|
||||||
embed.svg key: '{a}', width: 32, height: 32, data: AUDIENCE
|
embed.svg key: '{a}', width: 32, height: 32, data: AUDIENCE
|
||||||
end
|
end
|
||||||
text layout: :type, markup: true, str: data.volume.map { |v| "<b><i>#{v}</i></b>" }
|
text layout: :type, markup: true, str: data.volume.map { |v| "<b><i>#{v} (#{VOLUMES[v]})</i></b>" }
|
||||||
|
|
||||||
save format: :png
|
save format: :png
|
||||||
save_sheet prefix: "sheet",
|
save_sheet prefix: "sheet",
|
||||||
|
Loading…
Reference in New Issue
Block a user