Usageπ
Chord patterns are built using the __chord__ class.
Import the FoxDotChord module:
This will inject into the executor namespace the c instance used to manipulate the chords.
You can also do: from FoxDotChord import c
Chord progressionsπ
Chords can be passed in the same object and can be used in the following ways:
[]with string separated byspace()with string separated byspace[]with list of strings()with list of strings
Major chords (C)π
Major chords are created by passing on the chord cipher.
All valid ciphers are:
| Natural | Flats | Sharps |
|---|---|---|
A |
Ab |
A# |
B |
Bb |
B# |
C |
Cb |
C# |
D |
Db |
D# |
E |
Eb |
E# |
F |
Fb |
F# |
G |
Gb |
G# |
Minor chords (Cm)π
Minor chords are created by passing the letter m after the chord cipher.
Diminished chords (Cβ°)π
Diminished chords are created by adding the symbol β° after the chord cipher.
Traditionally, you can also use the dim abbreviation after the cipher.
The library also allows other ways of defining diminished chords.
Suspended chords (Csus4)π
Chords with a suspended third can be created with the following figures:
sus- major second suspendedsus4- perfect fourth suspended
Chords with extension (Cm7/9b/11#)π
Chords, both major and minor, can contain the extension of a certain
interval. To extend the chord by more than one interval, separate them with
/, for example, Cm7M/9.
The accepted intervals are as follows.
2 - major secondπ
4 - perfect fourthπ
5 - power chordπ
5- | 5+ - fifthπ
-
diminished fifth
-
augmented fifth
6 - major sixthπ
7 - seventhπ
-
7- minor seventh -
7M- major seventh
9 - ninthπ
-
9- minor ninth -
9- augmented ninth -
9- ninth
11 - eleventhπ
-
11- diminished eleventh -
11- augmented eleventh -
11- eleventh
13 - eleventhπ
-
13- diminished thirteenth -
13- augmented thirteenth -
13- thirteenth
Arpeggiosπ
Arpeggios can be created directly in the chord definition by putting an @ at
the end of it, for example:
You can also use the .arp() method to arpeggiate all the chords in the sequence.
The .arp() method can receive a list of integers. This will have the same
behavior as the .arp(seq) method of the renardo Patterns or the FoxDot Patterns if you are using it.
Repetitionπ
You can use the !N syntax to represent that a particular chord should be
repeated N times, where N is the number of times that chord should sound.
-
Repeating the chords using
!Play the first one 4 times and the others 2 times
-
Repeating the arpeggios (
@) using!You will play each note of the arpeggio twice
-
Repeat (
!) the chord and arpeggiate (@) what was doubledIt will double the chord and arpeggiate the duplicates
Attention
When at least one ! with a value greater than 1 is used, the object
returned will be a var.
Therefore, some methods such as .arp() will cease to exist.
String Patternsπ
It is also possible to use nested patterns within the string, just like in the play() synth.
-
Simple sequence
() -
On the same beat
[] -
Rnadom
{} -
Layering sequences
<><>