Coder Social home page Coder Social logo

parkr's Introduction

parkR: WBA-MLA Solo Generator

The parkR package for R contains the WBA-MLA Solo Generator which is a small tool that is able to generate monophonic jazz solos. It also contains two data sets of jazz chord changes, the iRealPro collection and a set of changes taken from the Weimar Jazz Database. Paper preprint: https://osf.io/wn27k/

Citation

Installation instructions (local use)

  1. If you don't have R installed, install it from here: https://cloud.r-project.org/

  2. Open R.

  3. Install the ‘devtools’ package with the following command:

install.packages('devtools')

  1. Install the parkR package from Github:

devtools::install_github('klausfrieler/parkR')

Usage

Quick demo

To generate one solo chorus over an F-blues, you can type the following

  library('parkR')
  blues_sample <- generate_solo(parkR::F_blues) 
  blues_mcsv2 <- solo_to_mcsv2(blues_sample)  
  write_mcsv2(blues_mcsv2, "blues.csv")

The last line writes the solo as an MCSV2 file blues.csvin the workind directory. This file can converted to MIDI or Lilypond/PDF using the MeloSpyGUI, which is freely available on the Jazzomat Website

More lead sheets can be found in the irb and wjd_chord_db data sets, incorporated in the package. For example, to generate a solo with two choruses over "All The Things You Are" you can use

  library(tidyverse)
  library(parkR)
  create_leadsheet_from_irb("All the things you are") %>% 
    generate_solo(n_chorus = 2) %>% 
    solo_to_mcsv2() %>%  
    write_mcsv2("all_the_things_you_are.csv")

parkr's People

Stargazers

Vitaly Pavlenko avatar Grant Simmons avatar Yi-Hsuan Yang avatar

Watchers

James Cloos avatar Klaus Frieler avatar

parkr's Issues

Small fixes

Add tictoc dependency, export bigram_stack functions

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.