You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- `schimiller`: generates the Joseph Schimiller rhythmic graph
9
+
"""
1
10
@enum VisType last_recited schimiller
11
+
12
+
"""
13
+
LastRecitedVariants
14
+
15
+
Enum specifying the variant of last-recited visualization.
16
+
17
+
# Variants
18
+
- `one`: only shows the syllable in the y-axis of the graph
19
+
- `two`: includes additional subplot now accounting the consonant after the syllable
20
+
- `three`: is `two` variant but with another suplot now accounting consonants before and after the syllable
21
+
"""
2
22
@enum LastRecitedVariants one two three
3
23
4
24
abstract type AbstractRhythmicVisArgs end;
5
25
abstract type AbstractSyllable end;
26
+
27
+
"""
28
+
RhythmicVis(type::VisType, args::T) where T <: AbstractRhythmicVisArgs
29
+
30
+
Create a `RhythmicVis` object with the specified visualization type and arguments.
31
+
32
+
# Arguments
33
+
- `type::VisType`: The type of rhythmic visualization (from the `VisType` enum)
34
+
- `args::T`: Visualization arguments, must be a subtype of `AbstractRhythmicVisArgs`
35
+
36
+
# Examples
37
+
```julia
38
+
args = LastRecitedVisArgs(fig, "My Title")
39
+
vis = RhythmicVis(last_recited::VisType, args)
40
+
```
41
+
"""
6
42
struct RhythmicVis{T <:AbstractRhythmicVisArgs}
7
43
type::VisType
8
44
args::T
9
45
end
10
46
47
+
"""
48
+
LastRecitedVisArgs <: AbstractRhythmicVisArgs
49
+
50
+
Create a `LastRecitedVisArgs` with `variant` argument specifying the number of characters before and after the last recited syllable, this variant is
51
+
specified by the `LastRecitedVariants` which takes `one`, `two`, or `three` variant. It also takes `fig_args` argument to specify the details of the `Makie.Figure`.
52
+
The third argument `title` specifies the title of the graph.
Create a LastRecitedVisArgs object with custom `variant` specification and default values for the remaining arguments set to: `Figure(resolution=(800, 800))`, and title="".
Assign a unique sequence (sorted based on first appearance in the array) of number to the unique values of `LastRecitedSyllable` texts to be used as y-axis location for plotting Rhythmic last recited syllable.
0 commit comments