-
Notifications
You must be signed in to change notification settings - Fork 5
/
main.rmd
53 lines (44 loc) · 1.11 KB
/
main.rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
title: "Automatic Music Transcription"
subtitle: Masters Thesis Project
author: Rand ASSWAD
lang: en-US
bibliography: ref.bib
biblio-style: apalike
link-citations: true
date: 12 March 2020
github-repo: rand-asswad/muallef
cover-image: img/cover_img.png
---
```{r cover, fig.align='center', echo=FALSE, include=identical(knitr:::pandoc_to(), 'html')}
knitr::include_graphics('img/cover_img.png', dpi = NA)
```
```{r setup, include=FALSE}
library(knitr)
# set directory
proj <- normalizePath('..')
opts_knit$set(root.dir = proj)
# set chunk options
opts_chunk$set(fig.pos = 'H')
opts_chunk$set(comment = NA)
opts_chunk$set(include = TRUE, eval = TRUE)
opts_chunk$set(cache = TRUE)
# set reticulate options
library(reticulate)
venv <- paste(proj, "venv", sep="/")
use_virtualenv(venv, required = TRUE)
py_available(TRUE)
```
```{r tex_macros, child='include/math.tex'}
```
```{python py_setup, include=FALSE}
# libraries
import numpy as np
import scipy as scp
import matplotlib.pyplot as plt
# matplotlib options
from matplotlib import rcParams
rcParams['savefig.transparent'] = True
rcParams['text.usetex'] = True
```
\pagebreak