Skip to content

How to set the octave of a chord ? #259

Answered by melanchall
JossPabloPC asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

You can add chords via PatternBuilder in many different ways. Please see small example:

var patternBuilder = new PatternBuilder()

    // Add chord with two notes: A#3 and D4
    .Chord(new []
    {
        Note.Get(NoteName.ASharp, 3),
        Octave.Get(4).D
    })
    
    // Add chord with three notes: C#4 E4 G4
    .SetOctave(Octave.Get(4))
    .Chord(new Chord(
        NoteName.CSharp,
        NoteName.E,
        NoteName.G));

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@melanchall
Comment options

@JossPabloPC
Comment options

Answer selected by JossPabloPC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Just question about the library
2 participants