Sonification of climate stripes data, or more generally, of a time series of values. A smoothed version of the time series is computed by moving average, then sonification proceeds as follows:
Backtrack is a standard house-like tune, including a four-on-the-floor kick+hi-hat pattern on the drum, a bass following the drum kick, and 3 chords played by a synthesizer
The smoothed time series controls the master volume and the amount of 'distortion' in the synthesizer's sound
Large anomalies below / above the smoothed series trigger percussion sounds (by default a snare and a hand clap) that are panned full left (negative anomalies) and full right (positive anomalies)
sonifyStripes(
values = sequenceR::globalT$Anomaly,
bpm = 135,
minVol = 0.1,
nma = 10,
pClap = 0.15,
synthVar = 0.5,
kick = sequenceR::mini909$bass,
hihat = sequenceR::mini909$hihat,
openHihat = sequenceR::mini909$hihat_o,
posPercussion = sequenceR::mini909$snare,
negPercussion = sequenceR::mini909$clap,
bassNote = "E1",
chord1 = c("E2", "E3", "G3", "D4", "Gb4"),
chord2 = c("E2", "D3", "Gb3", "A3", "E4"),
chord3 = c("E2", "B2", "Gb3", "G3", "D4"),
videoFile = NULL,
videoResFactor = 1
)A list with the following components:
mix, tuneR::Wave object, the final mix of the sonification.
dat, data frame with 4 columns: time step, raw value, smoothed value, anomaly
quantiles, numeric vector of size 2, the quantiles defining large negative/positive anomalies
waves, list of tuneR::Wave object, individual waves for each instrument in case you wish to mix them in your own way.
Numeric vector, values to sonify. Default is global temperature anomalies over the period 1850-2021
Numeric > 0, tempo in beat per minute
Numeric >= 0, minimum volume reached when smoothed series is minimum
Numeric >=0 , number of moving average steps on each side of the current value (i.e. moving average window is 2*nma+1 when possible, nma+1 on the series' edges)
Numeric in (0,0.5). "Large" anomalies triggering claps/snare are defined as anomalies below (resp. above) the pClap (resp. (1-pClap))-quantile of anomalies.
Numeric >= 0 , controls the variability of the synthesizer sound. When zero, the synthesizer sound does not change. Large values induce more variability in the synthesizer sound.
soundSample, sound sample used to play the kick drum.
soundSample, sound sample used to play the closed hi-hat.
soundSample, sound sample used to play the open hi-hat.
soundSample, sound sample used to play the positive-anomaly percussion.
soundSample, sound sample used to play the negative-anomaly percussion.
string, bass note (in scientific pitch notation).
string vector, first chord played by synthesizer.
string vector, second chord played by synthesizer.
string vector, third chord played by synthesizer.
file path, full path to video file. When NULL, video is not created.
Numeric > 0 , video resolution, 2 recommended for good-quality video.