Home

Awesome

<!-- README.md is generated from README.Rmd. Please edit that file -->

devoutaudio <img src="man/figures/logo.png" align="right" height=230/>

<!-- badges: start -->

<!-- badges: end -->

devoutaudio is an audio output “graphics” device - instead of rendering pixels, each graphics primitive is rendered as an audio snippet.

This is a testing ground for some graphics-to-sound ideas and is very experimental.

devoutaudio is written in plain R, and uses the devout package to interface with the R internals

Point-to-sound mapping

Installation

You can install devoutaudio from GitHub with:

# install.packages("devtools")
devtools::install_github("coolbutuseless/devout")
devtools::install_github("coolbutuseless/devoutaudio")

Caveats

Ideas

Examples

In the following examples:

Example 1

library(devoutaudio)

audio()
plot(1:10)
dev.off()

Click to play audio rendering

<img src="man/figures/README-graph1-1.png" width="70%" />

Example 2

plot_df <- mtcars %>% arrange(mpg)

audio()
ggplot(plot_df) +
  geom_point(aes(mpg, wt, size = cyl)) +
  theme(legend.position = 'none')
dev.off()

Click to play audio rendering

<img src="man/figures/README-graph2-1.png" width="70%" />