File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : " Vignette Title"
3
+ author : " Vignette Author"
4
+ date : " `r Sys.Date()`"
5
+ output : rmarkdown::html_vignette
6
+ vignette : >
7
+ %\VignetteIndexEntry{Vignette Title}
8
+ %\VignetteEngine{knitr::rmarkdown}
9
+ %\VignetteEncoding{UTF-8}
10
+ ---
11
+
12
+ ``` {r setup, include = FALSE}
13
+ knitr::opts_chunk$set(
14
+ collapse = TRUE,
15
+ comment = "#>"
16
+ )
17
+ ```
18
+
19
+ This is a random chord generator. It was created for two main purposes:
20
+
21
+ 1 . proof of concept of ` music21 ` package functionalities
22
+ 2 . Help me to study music perception :)
23
+
24
+ Para criar um acorde aleatório, vamos seguir esses passos:
25
+
26
+ A partir da definição de quantas notas, entre 3 e 6:
27
+
28
+ 1 . montar um acorde em C4
29
+ 2 . transladar o acorde.
30
+ 3 . inverter o acorde.
31
+
32
+ ``` {r, fig.width=8}
33
+ library(chordgen)
34
+ chordgen(20, n_notes = 3:4, octave = 0,
35
+ transpose = 0,
36
+ invert = FALSE,
37
+ add_lyric = TRUE) %>%
38
+ plot()
39
+ ```
40
+
You can’t perform that action at this time.
0 commit comments