https://github.com/berquerant/crd
Generate a midi file from chords.
https://github.com/berquerant/crd
go midi
Last synced: about 1 year ago
JSON representation
Generate a midi file from chords.
- Host: GitHub
- URL: https://github.com/berquerant/crd
- Owner: berquerant
- License: mit
- Created: 2021-12-23T15:38:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-24T12:38:05.000Z (about 1 year ago)
- Last Synced: 2025-03-24T13:38:19.225Z (about 1 year ago)
- Topics: go, midi
- Language: Go
- Homepage:
- Size: 292 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# crd
``` shell
❯ crd
text2midi
Usage:
crd [command]
Available Commands:
completion Generate the autocompletion script for the specified shell
gen generate codes and files
help Help about any command
info show definitions
midi midi util
text text processor
write write midi
Flags:
--attr strings additional attribute definitions
--chord strings additional chord definitions
--debug enable debug
-h, --help help for crd
-o, --output string output file
Use "crd [command] --help" for more information about a command.
```
## Examples
``` shell
❯ crd text conv --help
convert text to yaml
Spaces, newlines, any text between ; and a newline are ignored.
Syntax details: input/ast/chords.y.
Examples:
# C triad, 1 beat
C[1]
# Bb minor triad, 2 beats
Bbm[2]
# D A7/E E Rest (D major)
# '_' is required when chord symbol is a number
echo 'D[1] A_7/E[1] E[2] R[1]' | crd text conv syllable --key D | crd write midi -o out.midi
```
See [examples](example/example_test.go).
## Build
``` shell
./task build
```