Skip to content

Commit

Permalink
Release 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
noeddl committed Mar 25, 2021
1 parent 02db15d commit aeae2aa
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 23 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [0.7.0] - 2021-03-25

* Major rewrite of basic data structures and the computation of chord charts so that all voicings of a chord can be found and displayed.
* Fix display of chord voicings that span five frets ([#33](https://github.com/noeddl/ukebox/issues/33)).
* Add flag `--all` to print all relevant voicings of a chord ([#21](https://github.com/noeddl/ukebox/issues/21)).
* Add command line options `--max-fret` and `--max-span`.

## [0.6.0] - 2021-02-06

* Add command line option `--transpose` to specify a number of semitones to be added or subtracted before printing the chord chart ([#24](https://github.com/noeddl/ukebox/issues/24)).
Expand Down
22 changes: 11 additions & 11 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[package]
name = "ukebox"
version = "0.6.0"
version = "0.7.0"
authors = ["Anett Seeker"]
edition = "2018"
license = "MIT OR Apache-2.0"
description = "A ukulele chord finder in Rust"
readme = "README.md"
homepage = "https://github.com/noeddl/ukebox"
repository = "https://github.com/noeddl/ukebox"
keywords = ["ukulele", "chords", "music"]
keywords = ["ukulele", "chords", "music", "cli"]
categories = ["command-line-utilities"]

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
53 changes: 43 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,15 @@ Downloadable binaries for different platforms will be provided in upcoming relea

```
USAGE:
ukebox <SUBCOMMAND>
ukebox [OPTIONS] <SUBCOMMAND>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-t, --tuning <TUNING> Type of tuning to be used [default: C] [possible values: C, D, G]
SUBCOMMANDS:
chart Chord chart lookup
help Prints this message or the help of the given subcommand(s)
Expand All @@ -52,23 +55,27 @@ When running the program with Rust, replace the command `ukebox` with `cargo run

### Chord chart lookup

Use the subcommand `chart` to look up the chart for a given chord name.
Use the subcommand `chart` to look up the chart for a given chord name. By default, the first matching chord voicing is presented. Use the flag `--all` to get all possible voicings of the same chord. You can use additional options to further filter the result, e.g. by specifying a minimal or a maximal fret that should be involved in the chord voicing.

```
USAGE:
ukebox chart [OPTIONS] <chord>
ukebox chart [FLAGS] [OPTIONS] <chord>
FLAGS:
-a, --all Print out all voicings of <chord> that fulfill the given conditions
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-f, --min-fret <min-fret> Minimal fret (= minimal position) from which to play <chord> [default: 0]
--transpose <transpose> Number of semitones to add (e.g. 1, +1) or to subtract (e.g. -1) [default: 0]
-t, --tuning <tuning> Type of tuning to be used [default: C] [possible values: C, D, G]
--max-fret <FRET_ID> Maximal fret up to which to play <chord> [default: 12]
--max-span <FRET_COUNT> Maximal span between the first and the last fret pressed down when playing <chord>
[default: 4]
--min-fret <FRET_ID> Minimal fret (= minimal position) from which to play <chord> [default: 0]
--transpose <SEMITONES> Number of semitones to add (e.g. 1, +1) or to subtract (e.g. -1) [default: 0]
-t, --tuning <TUNING> Type of tuning to be used [default: C] [possible values: C, D, G]
ARGS:
<chord> Name of the chord to be shown
<CHORD> Name of the chord to be shown
```

Some examples:
Expand Down Expand Up @@ -135,23 +142,49 @@ C ||---|-o-|---|---|- D
G ||---|---|-o-|---|- Bb
```

```
$ ukebox chart --all --max-fret 5 C
[C - C major]
A ||---|---|-o-|---|- C
E o||---|---|---|---|- E
C o||---|---|---|---|- C
G o||---|---|---|---|- G
A ||---|---|-o-|---|- C
E o||---|---|---|---|- E
C ||---|---|---|-o-|- E
G o||---|---|---|---|- G
A ||---|---|-o-|---|- C
E ||---|---|-o-|---|- G
C ||---|---|---|-o-|- E
G o||---|---|---|---|- G
A -|-o-|---|---|---|- C
E -|-o-|---|---|---|- G
C -|---|-o-|---|---|- E
G -|---|---|-o-|---|- C
3
```

### Chord name lookup

Use the subcommand `name` to look up the chord name(s) corresponding to a given chord fingering.

```
USAGE:
ukebox name [OPTIONS] <fret-pattern>
ukebox name [OPTIONS] <FRET_PATTERN>
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-t, --tuning <tuning> Type of tuning to be used [default: C] [possible values: C, D, G]
-t, --tuning <TUNING> Type of tuning to be used [default: C] [possible values: C, D, G]
ARGS:
<fret-pattern> A compact chart representing the finger positions of the chord to be looked up
<FRET_PATTERN> A compact chart representing the finger positions of the chord to be looked up
```

Some examples:
Expand Down

0 comments on commit aeae2aa

Please sign in to comment.