Created
June 29, 2021 19:38
-
-
Save janeadams/f2ddae14570317eaa7e61f1f01079256 to your computer and use it in GitHub Desktop.
irydium_test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: Irydium ❤️ Synesthesia | |
scripts: | |
- https://cdn.plot.ly/plotly-latest.min.js | |
- https://d3js.org/d3-dsv.v1.min.js | |
components: | |
- https://github.com/irydium/irdium/files/blah/document.md#PlotlyGraph | |
variables: | |
- midi_url: https://raw.githubusercontent.com/janeadams/synesthesia/master/audio/midi/dancingqueen.mid | |
data: | |
- freq_csv: https://raw.githubusercontent.com/janeadams/synesthesia/master/frequencies.csv | |
- midi_data: https://raw.githubusercontent.com/janeadams/synesthesia/master/audio/midi/dancingqueen.mid | |
--- | |
# {title} | |
Throughout history, composers (and many others) have described a phenomenon in which musical notes manifest as colors in the mind’s eye. | |
## Set up color-frequency mappings | |
```{code-cell} js | |
--- | |
id: "freq" | |
inputs: [ "freq_csv" ] | |
inline: true | |
--- | |
let freq_text = await freq_csv.text(); | |
let parsed = d3.csvParse(freq_text); | |
console.log(parsed) | |
return parsed; | |
``` | |
{freq[0]} | |
```{code-cell} python | |
--- | |
id: "mido" | |
inputs: [ "midi_data" ] | |
inline: true | |
--- | |
'foo' | |
``` | |
{mido} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment