SkillAgentSearch skills...

Songsim

Visualize a song's lyrics with a similarity matrix

Install / Use

/learn @gsimchoni/Songsim
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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

This package holds a single function to calculate and visualize a "songsim" similarity matrix where cell (i, j) is filled if word i in a song's lyrics is the same as word j. This method was first suggested by Colin Morris (see links below).

Install:

devtools::install_github("gsimchoni/songsim")

Load:

library(songsim)

Visualize Beyonce's Formation:

path <- system.file("extdata", "formation.txt", package = "songsim")
songsim(path)

Use colorfulMode:

songsim(path, colorfulMode = TRUE, mainTitle = "Formation - Beyonce")

Use interactiveMode if you have the heatmaply package installed:

songsim(path, interactiveMode = TRUE, singleColor = "blue")

(See live version here)

More information and examples here.

More information from Colin Morris:

  • A blog post describing interesting "songsims" here

  • An interactive React (JS) demo with more examples here

Related Skills

View on GitHub
GitHub Stars26
CategoryDevelopment
Updated1y ago
Forks3

Languages

R

Security Score

60/100

Audited on Jun 1, 2024

No findings