Comments (7)
I'm not sure what you mean - the root note will be derived from the chord names in the string. The octave is chosen arbitrarily though - is that what you want to be able to specify?
Maybe you can provide some example code showing how you would like to use it?
from jchord.
Yes, I was thinking about the octave of the root note. I would use it like:
prog = ChordProgression.from_string("4F -- 3Am -- 4Dm7 -- 4F --")
Meaning the roots would be F4 A3 D4 and F4. The octave number before the note would be optional.
from jchord.
I see! Having the octave in front is a nice solution, I don't think it conflicts with any of the existing notation. It could probably be extended to solve #1 as well. I'll give it a go!
from jchord.
#1 Indeed. So the octave in front wouldn't the best solution to generalize. Maybe an optional dot notation?
The first inversion of C major starting on E4 would be E4.C
A C major starting on C5 would be C5.C
from jchord.
I've added support for the octave in front, available in version 1.0.0 (pip install jchord==1.0.0)
from jchord.
The first inversion of C major starting on E4 would be E4.C
If you just need to change the bass note, this is supported with slash chords, in this case you would write "5C/E". The "/E" adds an E below the root
from jchord.
Just tested. Works awesome. Thanks Jonathan!
from jchord.
Related Issues (20)
- Question marks(???) on detected chords HOT 5
- Any function to convert a audio to midi ? HOT 2
- Write notes to midi HOT 1
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- Chords with time to generate a midi file HOT 9
- Make it easier to divide bars
- Arpeggios/string instruments HOT 4
- Songs
- Small delay at the start of generated MIDI files
- Overhaul documentation, usability, examples and recipes HOT 1
- Test coverage for robust reading of chord progressions from midi files
- Empty cell at the end of a row in XLSX is probably not treated as a repetition
- Allow install with optional dependencies (`pip install jchord[midi]`, `pip install jchord[midi, xlsx]` etc)
- Switch to Github Actions
- Add property-based tests
- Robust reading of chord progressions from midi files HOT 1
- MusicXML in/out
- test
- Move doc_gen to separate library HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jchord.