Skip to content

Commit

Permalink
add Tune Body dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
BurningTreeC committed Aug 24, 2021
1 parent 98a0c53 commit 60bd075
Show file tree
Hide file tree
Showing 21 changed files with 113 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ musicsheets-note-heads: Show the note heads
musicsheets-note-values: Show the note values (lengths)
musicsheets-rests: Insert a rest
musicsheets-symbols: Show the musical symbols
musicsheets-tune-body: Show the tune body dropdown
musicsheets-tune-header: Show the tune header dropdown
3 changes: 3 additions & 0 deletions plugins/musicsheets/config/tune-body-shortcut.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: $:/config/shortcuts/musicsheets-tune-body

alt-shift-B
3 changes: 3 additions & 0 deletions plugins/musicsheets/images/tune-body.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
title: $:/plugins/BTC/musicsheets/images/tune-body

Tune Body
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/tune-body

<$list filter="[all[shadows+tiddlers]tag[$:/tags/MusicSheets/TuneBody]!is[draft]each[category]]">

<div class="tc-dropdown-item">
<$text text={{!!category}}/>
</div>

<$macrocall $name="list-tagged-draggable" tag="$:/tags/MusicSheets/TuneBody" subFilter="!is[draft]category{!!category}" itemTemplate="$:/plugins/BTC/musicsheets/ui/Templates/toolbar-item-template-symbols"/>

</$list>

----

<$button tag="a">

<$action-sendmessage
$message="tm-new-tiddler"
tags="$:/tags/MusicSheets/TuneBody"
caption="this is shown in the menu"
text="this is inserted when clicking the button"
category="'Tune Body' or a category you like"
/>

<$action-deletetiddler
$tiddler=<<dropdown-state>>
/>

<em>

<$text text="new entry"/>

</em>

</$button>
9 changes: 9 additions & 0 deletions plugins/musicsheets/ui/Buttons/editor-button-tune-body.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
title: $:/plugins/BTC/musicsheets/ui/EditorToolbar/tune-body
tags: $:/tags/EditorToolbar
icon: $:/plugins/BTC/musicsheets/images/tune-body
condition: [<targetTiddler>type[]] [<targetTiddler>get[type]match[text/vnd.tiddlywiki]] +[first[]]
dropdown: $:/plugins/BTC/musicsheets/ui/EditorToolbar/dropdown/tune-body
description: tune body
shortcuts: ((musicsheets-tune-body))
caption: Tune Body
button-classes: tc-musicsheets-toolbar-button
7 changes: 7 additions & 0 deletions plugins/musicsheets/ui/Symbols/TuneBody/macro.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/macro
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: m: Macro
category: Tune Header and Body
description:

m:
8 changes: 8 additions & 0 deletions plugins/musicsheets/ui/Symbols/TuneBody/remark.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/remark
tags: $:/tags/MusicSheets/TuneBody
caption: [r: remark] - (wrap selection)
category: Tune Body
wrap-selection: true
description: you can use the syntax [r:remark] to write a remark in the middle of a line of music.
prefix: [r:
suffix: ]
7 changes: 7 additions & 0 deletions plugins/musicsheets/ui/Symbols/TuneBody/symbol-line.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/symbolline
tags: $:/tags/MusicSheets/TuneBody
caption: s: Symbol line
category: Tune Body
description: Adding many symbols to a line of music can make a tune difficult to read. In such cases, a symbol line (a line that contains only !…! decorations, "…" chord symbols or annotations) can be used, analogous to a line of lyrics.

s:
7 changes: 7 additions & 0 deletions plugins/musicsheets/ui/Symbols/TuneBody/words.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/words
tags: $:/tags/MusicSheets/TuneBody
caption: w: Words
category: Tune Body
description: supplies lyrics to be aligned syllable by syllable with previous notes of the current voice.

w:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/NoteLength
tags: $:/tags/MusicSheets/TuneHeader
caption: L: Default Note Length
category: Tune Header
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: L: (Default) Note Length
category: Tune Header and Body
description: The L: field specifies the unit note length - the length of a note as represented by a single letter in abc

L:
4 changes: 2 additions & 2 deletions plugins/musicsheets/ui/Symbols/TuneHeader/information.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/Information
tags: $:/tags/MusicSheets/TuneHeader
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: I: Information
category: Tune Header
category: Tune Header and Body
description: The I:(instruction) field is used for an extended set of instruction directives concerned with how the abc code is to be interpreted.

I:
6 changes: 3 additions & 3 deletions plugins/musicsheets/ui/Symbols/TuneHeader/key.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/Key
tags: $:/tags/MusicSheets/TuneHeader
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: K: Key
category: Tune Header
description: The key signature should be specified with a capital letter (A-G) which may be followed by a # or b for sharp or flat respectively. In addition the mode should be specified (when no mode is indicated, major is assumed).
category: Tune Header and Body
description: Note that the first occurrence of the K: field, which must appear in every tune, finishes the tune header. All following lines are considered to be part of the tune body. The key signature should be specified with a capital letter (A-G) which may be followed by a # or b for sharp or flat respectively. In addition the mode should be specified (when no mode is indicated, major is assumed).

K:
4 changes: 2 additions & 2 deletions plugins/musicsheets/ui/Symbols/TuneHeader/meter.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/Meter
tags: $:/tags/MusicSheets/TuneHeader
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: M: Meter
category: Tune Header
category: Tune Header and Body
description: The M: field indicates the meter. Apart from standard meters, e.g. M:6/8 or M:4/4, the symbols M:C and M:C| give common time (4/4) and cut time (2/2) respectively. The symbol M:none omits the meter entirely (free meter). It is also possible to specify a complex meter, e.g. M:(2+3+2)/8, to make explicit which beats should be accented. The parentheses around the numerator are optional.

M:
4 changes: 2 additions & 2 deletions plugins/musicsheets/ui/Symbols/TuneHeader/notes.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/Notes
tags: $:/tags/MusicSheets/TuneHeader
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: N: Notes
category: Tune Header
category: Tune Header and Body
description: Contains general annotations, such as references to other tunes which are similar, details on how the original notation of the tune was converted to abc, etc.

N:
4 changes: 2 additions & 2 deletions plugins/musicsheets/ui/Symbols/TuneHeader/parts.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/Parts
tags: $:/tags/MusicSheets/TuneHeader
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: P: Parts
category: Tune Header
category: Tune Header and Body
description: The P: field can be used in the tune header to state the order in which the tune parts are played, i.e. P:ABABCDCD, and then inside the tune body to mark each part, i.e. P:A or P:B. (In this context part refers to a section of the tune, rather than a voice in multi-voice music.)

P:
4 changes: 2 additions & 2 deletions plugins/musicsheets/ui/Symbols/TuneHeader/rhythm.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/Rhythm
tags: $:/tags/MusicSheets/TuneHeader
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: R: Rhythm
category: Tune Header
category: Tune Header and Body
description: Contains an indication of the type of tune (e.g. hornpipe, double jig, single jig, 48-bar polka, etc). This gives the musician some indication of how a tune should be interpreted as well as being useful for database applications.

R:
4 changes: 2 additions & 2 deletions plugins/musicsheets/ui/Symbols/TuneHeader/tempo.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/Tempo
tags: $:/tags/MusicSheets/TuneHeader
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: Q: Tempo
category: Tune Header
category: Tune Header and Body
description: The Q: field defines the tempo in terms of a number of beats per minute, e.g. Q:1/2=120 means 120 half-note beats per minute.

Q:
4 changes: 2 additions & 2 deletions plugins/musicsheets/ui/Symbols/TuneHeader/title.tid
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/Title
tags: $:/tags/MusicSheets/TuneHeader
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: T: Title
category: Tune Header
category: Tune Header and Body
description: A T: (title) field must follow immediately after the X: field; it is the human identifier for the tune (although it may be empty).

T:
5 changes: 3 additions & 2 deletions plugins/musicsheets/ui/Symbols/TuneHeader/user-defined.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/UserDefined
tags: $:/tags/MusicSheets/TuneHeader
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: U: User defined
category: Tune Header
category: Tune Header and Body
description: As a short cut to writing symbols which avoids the !symbol! syntax, the letters H-W and h-w and the symbol ~ can be assigned with the U: field.

U:
7 changes: 7 additions & 0 deletions plugins/musicsheets/ui/Symbols/TuneHeader/voices.tid
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/Voices
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: V: Voices
category: Tune Header and Body
description: The V: field allows the writing of multi-voice music. In multi-voice abc tunes, the tune body is divided into several voices, each beginning with a V: field. All the notes following such a V: field, up to the next V: field or the end of the tune body, belong to the voice.

V:
5 changes: 3 additions & 2 deletions plugins/musicsheets/ui/Symbols/TuneHeader/words.tid
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
title: $:/plugins/BTC/musicsheets/ui/Symbols/Words
tags: $:/tags/MusicSheets/TuneHeader
tags: $:/tags/MusicSheets/TuneHeader $:/tags/MusicSheets/TuneBody
caption: W: Words
category: Tune Header
category: Tune Header and Body
description: can be used for lyrics to be printed separately below the tune.

W:

0 comments on commit 60bd075

Please sign in to comment.