项目作者: zedchance

项目描述 :
A tool to generate stringed instrument visual aids
高级语言: Python
项目地址: git://github.com/zedchance/scales.git
创建时间: 2020-01-20T02:53:23Z
项目社区:https://github.com/zedchance/scales

开源协议:MIT License

下载


scales

A tool to generate stringed instrument visual aids

Installation

Install using:

  1. pip install scales.py

Then import it like so:

  1. from scales import Scales

Usage

Scales objects take at least the scale parameter, which should be a list of notes (the first note is treated as the root). They can be drawn using the draw function, where start and stop are the range of frets to show (defaults to showing 15 frets if not specified).

For example:

  1. a_mixo = ['A', 'B', 'C#', 'D', 'E', 'F#', 'G']
  2. six_string = Scales(title='A Mixolydian', scale=a_mixo)
  3. six_string.draw(start=11, stop=15)

a_mix

By default, it will assume a 6 string guitar in standard tuning, but you can specify other tunings like:

  1. c_major = ['C', 'D', 'E', 'F', 'G', 'A', 'B']
  2. ukulele = Scales(title='C Major on Ukulele', strings=['G', 'C', 'E', 'A'], scale=c_major)
  3. ukulele.draw()

c_maj_uke

Scales can be drawn without making it an object:

  1. g_chord = ['G', 'B', 'D']
  2. Scales(title='Open G', scale=g_chord).draw(stop=3)

open_g

Other helpful uses

Scales can be used to generate blank visuals to print out. Heres a blank 6 string fretboard:

  1. Scales([]).draw()

Or a blank open chord chart:

  1. Scales([]).draw(stop=3)

Dependencies

Library Description
matplotlib 2D plotting library
numpy Fundamental package for scientific computing