0.0
No commit activity in last 3 years
No release in over 3 years
A CLI tool to transpose notes by half steps
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0.1
~> 3.9.0
~> 0.19.0
~> 0.9.25
 Project Readme

Note Transpose

Gem Version Build Status Inline docs

A CLI tool to transpose notes by half steps

Table of Contents

  • Install
  • Usage
  • Documentation
  • Support
  • Contributing

Install

❯ gem install note-transpose

Usage

❯ note-transpose --help

Usage: note-transpose [-]<number half steps> <notes> [--pref-flat]

  Options:
    --pref-flat     Always uses flat notes in output instead of sharp ones

  Examples:
    ❯ note-transpose +1 C G F Am
    => Db Ab Gb Bbm

    ❯ note-transpose 2 C G F Am
    => D A G Bm

    ❯ note-transpose -2 D# G7 F Am7 Cadd7
    => C# F7 Eb Gm7 Bbadd7

    ❯ note-transpose -2 D# G7 F Am7 Cadd7 --pref-flat
    => Db F7 Eb Gm7 Bbadd7

You can even include the module in your code if you need that for some reason:

require 'note-transpose'

NoteTranspose.transpose(3, "D#", "F", "Bm", "G7")
# => ["F#", "Ab", "Dm", "Bb7"]

NoteTranspose.transpose(3, "D#", "F", "Bm", "G7", pref_flat: true)
# => ["Gb", "Ab", "Dm", "Bb7"]

Documentation

You can find the documentation here

Support

Please open an issue for support.

Contributing

Please contribute using Github Flow. Create a branch, add commits, and open a pull request.