Code Monkey home page Code Monkey logo

harte-library's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

n28div xavriley

harte-library's Issues

Cleanup harte parser

A cleanup of the harte parser utility is needed in order to get rid of the unused code.

Refactor constructor

As for now, the Harte constructor takes a harte chord as input. This hinders the possibility of using the library in a different way which is not for parsing harte chord.
For example, this limits the possibility of instantiating a chord from music21.chord and port it to harte.

shorthand `6` not available

Shorthand 6 has not been implemented, but usage has been found in some annotations.
Further details on which should be its intervals are required (is it the same as maj6? or a shorthand for 7(6)?)

Realted to Issue #6

some chords from ChoCo not recognized

see PR #5 (related to Issue #3) for automated test on chord coverage.
Some chords are wrong annotations from ChoCo itself though.

Further issues will be opened and linked to this one for each fix type.

`hdim` chord not recognized

Should be probably be treated the same as hdim7 is.
Further details need to be checked to confirm.

related to Issue #6

`Harte('Bb:(4,#5,b7)')` contains `F-` instead of `F#`

Contains F- while it should contain F#. Also it would be nice if quality returned augmented (or suspended, but this appears never to be returned by music21.chord.Chord anyway).

c = Harte('Bb:(4,#5,b7)')
c.quality
Out[6]: 'other'
c.pitches
Out[7]: 
(<music21.pitch.Pitch B-4>,
 <music21.pitch.Pitch E-5>,
 <music21.pitch.Pitch F-5>,
 <music21.pitch.Pitch A-5>)

`Harte('C#:min(b7)/b1')` contains C## instead of C

c2 = Harte('C#:min(b7)/b1')
c2.pitches
Out[6]: 
(<music21.pitch.Pitch C##3>,
 <music21.pitch.Pitch C#4>,
 <music21.pitch.Pitch E4>,
 <music21.pitch.Pitch G#4>,
 <music21.pitch.Pitch B4>)
c2.prettify()
Out[7]: 'C#:min7(b1)/b1'
c2.unwrap_shorthand()
Out[8]: ['b1', 'b3', '5', 'b7']

I might be wrong, and I don't know this chord, but I don't see where the C##3 comes from? Shouldn't the /b1 in the bass become C4 as first pitch? The chord occurs in biab-internet-corpus_1004.jams in the ChoCo dataset.

Half-diminished 7th chords

c = Harte('C:hdim7')

Gives

(<music21.pitch.Pitch C4>,
 <music21.pitch.Pitch E-4>,
 <music21.pitch.Pitch G#4>,
 <music21.pitch.Pitch B-4>)

Unless I'm mistaken, it should give

(<music21.pitch.Pitch C4>,
 <music21.pitch.Pitch E-4>,
 <music21.pitch.Pitch G-4>,
 <music21.pitch.Pitch B-4>)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.