Conference PaperPDF Available

A Contour-based Jazz Walking Bass Generator

Authors:

Abstract and Figures

This paper describes a contour-based algorithm for the real-time automatic generation of jazz walking bass lines, fol-lowing a given harmonic progression. A brief description of the walking bass procedure will be presented, and also a brief survey on some common implementations and tech-niques. This algorithm was implemented in the Max/MSP graphi-cal programming environment.
Content may be subject to copyright.
A CONTOUR-BASED JAZZ WALKING BASS GENERATOR
Rui Dias
University of Porto
INESC-Porto
School of Applied Arts,
Polytechnic Instituteof Castelo Branco
(ESART-IPCB)
ruidias@ipcb.pt
Carlos Guedes
School of Music and Performing Arts,
Polytechnic of Porto (ESMAE-IPP)
INESC-Porto
carlosguedes@esmae-ipp.pt
ABSTRACT
This paper describes a contour-based algorithm for the real-
time automatic generation of jazz walking bass lines, fol-
lowing a given harmonic progression. A brief description
of the walking bass procedure will be presented, and also a
brief survey on some common implementations and tech-
niques.
This algorithm was implemented in the Max/MSP graphi-
cal programming environment.
1. INTRODUCTION
1.1 The Walking Bass Practice
The walking bass is a very common playing procedure
used in jazz music, in which the bass walks through the
chord and scale notes in a regular pulse. This is espe-
cially used when accompanying a solo, firmly setting the
base pulse like a metronome, and simultaneously exposing
the underlying harmony of the song. This procedure has
its roots deep in the first decades of the twentieth century,
and was developed through the years with bass players like
Jimmy Blanton, Ray Brown, Ron Carter and Charlie Min-
gus, amongst many others. A very good insight on the
evolution of the bass role and many of the key innovators
in jazz history can be found in The Jazz Bass Book, Tech-
nique and Tradition, by John Goldsby [1].
The basic idea of a walking bass line is to go from one
chord to the next, linking them by filling the middle beats
with notes of the chord or scale, typically describing a
smooth melodic line or pattern. Far from being completely
passive, however, the roll and behavior of the walking bass
can dramatically change from almost neutral smooth lines
to very abrupt register changes and energized rhythms, dy-
namically contributing to the overall group energy and mu-
sical result. The continuous flow of the regular walking
bass notes, together with its harmonic and melodic content,
form one of the most charismatic and important elements
in traditional jazz playing.
Copyright: c
2013 Rui Dias et al. This is an open-access article distributed under
the terms of the Creative Commons Attribution 3.0 Unported License, which per-
mits unrestricted use, distribution, and reproduction in any medium, provided the
original author and source are credited.
The learning of this technique usually implies the learning
of melodic licks, for each of the commonly used chord pro-
gressions. These licks are small melodic phrases that are
particularly efficient and musical, and are usually related
both to the available notes of the current chord and un-
derlying scale and to physical placement of the notes and
fingers on the bass. Bass learning methods like the ones
by Ron Carter [2], Ray Brown [3], Bob Magnusson [4]
and Steven Mooney [5] lead the student through a series
of these licks, covering most common harmonic progres-
sions, in order to provide the student with the basic formu-
lae that can then be adapted to any song. As the walking
bass player develops his technique and gains more experi-
ence, however, he will be able to use these phrases more
articulately. More importantly, he will be able to move
away from them, intuitively creating more natural sound-
ing lines and integrating several other elements like orna-
ments, theme-specific elements and group feedback.
”(...) musicians string together a sequence of motifslicks
as they used to be calledmodified to meet the constraints
of the chord sequence. (...) Yet, the motif theory cannot be
the whole story.” [6]
1.2 Implementations
Due to the non-repetitive nature of the walking bass tech-
nique, its use in computer software is actually quite lim-
ited. Commonly, walking bass lines in use are pre-recorded
or manually written for the entire song length, whether
as audio recordings or MIDI events. This practice has
its roots in play-along recordings, like the widely known
Jamie Aebersold [7] long list of score + CD Play-A-Long
albums, with comping tracks recorded by real jazz mu-
sicians, allowing the practitioner to play-along with the
recording. Computer software facilitates this method by
easily allowing the independent mixing for each track, as
well as change the tempo and transpose an audio or MIDI
track, even on iOS devices with apps like Smudge Apps
Band [8] with multi-track recordings and mixer.
More advanced software use pre-recorded small phrases
for each chord-type and/or chord progressions, which are
then transposed and chained together according to some
more or less intelligent algorithm. This seems to be the
case with software like the extensive Band-in-a-box [9],
and more recently iReal b [10], on the iPad. This kind of
implementation can use audio or MIDI clips. While audio
Proceedings of the Sound and Music Computing Conference 2013, SMC 2013, Stockholm, Sweden
305
clips keep all of the little nuances, sound and groove of the
original player, the MIDI clips allow more flexibility for
editing notes, instrument, and even tempo and phrase ele-
ments.
These implementations based on the use of pre-recorded
phrases, whether audio or MIDI, have however some limi-
tations:
- If the number of pre-programmed phrases is small, the
output will easily sound repetitive;
- The larger the number of pre-programmed phrases, the
larger the chances of melodic inconsistencies and non-musical
results;
- In order to obtain smooth transitions between chords, the
pre-programmed phrases have to be very neutral, resulting
in a very neutral sounding bass line;
- It is not easy to handle less conventional harmonic pro-
gressions.
2. A CONTOUR-BASED APPROACH:
TECHNICAL DESCRIPTION
The work presented in this paper stems directly from the
research that led to the development of the GimmeDaBlues
app [11]. It describes the algorithmic generation of melodic
phrases that connect the chords in a previously defined har-
monic grid, by calculating a path from the current chord to
the next, according to user-defined settings controlling the
direction and range of the melodic contour.
The phrase generation algorithm consists basically in three
stages: Target Note calculation, Trajectory calculation, and
an event manager (Player). The general structure is showed
in Fig.1.
Figure 1. Algorithm structure.
2.1 Target note calculation
The algorithm needs to know the current chord and the
next one in order to be able to calculate a phrase. The
target note is the last note of the phrase to be generated. A
simple probabilistic algorithm chooses which of the notes
belonging to the next chord will be used e.g. fundamen-
tal, 3rd, 5th, 7th, etc.. Currently, in order to maintain a
strong sense of the base harmony, a setting of 100% prob-
abilities of choosing the fundamental note of the chord is
used. Then, according to the current note and to a direction
parameter, the algorithm will find the chosen chord note in
the right octave.
The direction parameter defines whether the target note
will be selected up or down, relatively to the current note,
and there are five different settings: lowest, down, nearest,
up, and highest. The down and up settings tell the algo-
rithm to search for the nearest note in that direction, while
with the lowest and highest settings, the algorithm will se-
lect the lowest and highest note in the instruments range.
This parameter can be defined manually or automatically.
So, for example, considering a double bass instrument de-
fined with a range from E0 to G3 (having C3 as the middle
C), if the current note is a C2, and the target note is an
F, the direction parameter will define which F will be se-
lected. The down setting would select F1, while the up
setting would select F2. The lowest note setting will return
F0 - the lowest F on the defined range - and the highest
setting will return F3 the highest F on the defined range.
Figure 2. Possible target notes for the four direction set-
tings.
With the ”nearest” setting selected, the algorithm will au-
tomatically go up or down, choosing the F that is nearest
to the current C2, which will be F2, because its a Perfect
4th interval, while F1 would be a Perfect 5th.
2.2 Trajectory
The trajectory is constituted by a selection of notes that de-
fine the path the bass line will take from the starting (cur-
rent) note to the final (target) note. In a typical case for
a chord duration of one bar in a 4/4 measure with the bass
playing quarter notes, the complete generated bass line will
have five notes, in which the fifth is the first note of the next
Proceedings of the Sound and Music Computing Conference 2013, SMC 2013, Stockholm, Sweden
306
measure. The three passing notes between the starting note
to the target note are calculated recursively, going from the
strongest beats of the measure to the weakest, and depend-
ing on the trajectory calculation algorithm.
An openness parameter will set how direct or indirect the
path will be, influencing the selection of the middle notes
in the calculated bass line. The name relates to the notion
of closed and open forms of a chord. The closed position
will be the more direct path to the target note, while more
open path will tend to use a wider trajectory, using chord
notes in an open form.
The notes to use will be drawn from chord tones, scale
degrees and chromatic inflections, according to each steps
beat position. The stronger beats of the bar will tend to
have chord tones, while the weak beats will tend to have
scale notes acting as passing notes from one chord note
to the next. The last beat of the bar can also be a chro-
matic approximation to the target note. This is a very com-
monly used technique, as the chromatic passing note cre-
ates a strong attraction to the target note, emphasizing it as
well as the sense of direction in the melodic phrase.
Fig. 3 shows four examples of possible trajectories of the
calculation of a bass line for a C7 F7 progression, where
the initial note is C2, and the target note is F2.
Figure 3. Phrase b) is the same as a) but with an ornamen-
tal triplet repeating the G in the third beat.
2.3 Ornaments
Although the construction of the phrases are the base of
the walking bass technique, there are several other aspects
regarding the notes, rhythm and articulations that have an
important role in a good performance. These aspects, here
referred to as ornaments, are little nuances and additions to
the phrases that dont change nor define the main contents
of the phrases, but nevertheless can contribute consider-
ably to the quality and the dynamic of the walking bass
lines.
The current implementation allows for the use of eighth-
note triplet variations (or eighth-notes with a swing feel-
ing) that can be set probabilistically. This is one of the most
common rhythmic variations in the walking bass technique,
in which some of the notes are anticipated by one triplet
(or swinged eighth) with the same or another pitch. The
control is done by a single percentage value, setting the
probability factor.
Figure 4. Phrase b) is the same as a) but with an ornamen-
tal triplet repeating the G in the third beat.
2.4 Control
The combination of the direction selection and the trajec-
tory openness provide a contour-based definition of the
walking bass line, which not only creates smooth and nat-
ural lines but also allows an effective and intuitive control
in interactive real-time implementations.
A simple example of a possible manual controller for this
walking bass generator would be a joystick type controller,
where the vertical axis would control the direction param-
eter, while the horizontal would control the openness pa-
rameter.
Figure 5. Example phrases with different settings.
Figure 5 shows three example phrases with different set-
tings:
- a) direction: nearest / openness: low;
- b) direction: down / openness: low;
- c) direction: down / openness: high.
3. CONCLUSIONS AND FUTURE
DEVELOPMENTS
The overall outcome of the described algorithm is quite ef-
fective and promising, mainly due to its flexible nature, by
adapting to any arbitrary harmonic progression and by al-
lowing a meta-control over the bassist behaviour.
Future implementations will focus on the way the phrase
generation can be controlled algorithmically, exploring the
contour shapes for the creation of motivic oriented groups
of phrases. Several strategies can be approached, like Markov
models and genetic algorithms, to control the succession of
phrase parameters musically.
Due to its recursive nature, the current algorithm only deals
with multiples 2/4, 2/2 and 4/4 measures. In metrical terms,
the beat hierarchy in measures with an odd number of beats
is not so clear, and thus the algorithm has to know how
Proceedings of the Sound and Music Computing Conference 2013, SMC 2013, Stockholm, Sweden
307
to handle them appropriately. Also, and relating to metri-
cal aspects in the phrase calculation, is the notion that the
phrases played by good bass players tend to have very of-
ten a length of two measures instead of just one. This cre-
ates more fluent lines contributing to the smoothness of the
musical form but also to the musical dynamics and move-
ment by relieving the measure-by-measure step size.
Regarding harmony, some interesting developments can
include the introduction of harmonic variations like chord
substitutions and alternate chord progressions, which is a
very common practice with advanced players, described in
books like the ones by Nettles and Graf [12], or Felts [13],
and addressed in the work by Steedman [14] [15].
Also, in order to make it sound more human and active, the
ornaments features regarding rhythm, dynamics and artic-
ulation will have to be addressed.
4. REFERENCES
[1] John Goldsby, ”The Jazz Bass Book Technique and
Tradition”. Backbeat Books, 2002.
[2] Ron Carter, ”Building Jazz Bass Lines”. Hal Leonard,
1998.
[3] Ray Brown, Ray Brown’s Bass Method”. Hal Leonard,
1999.
[4] Bob Magnusson, ”The Art of the Walking Bass”. Hal
Leonard, 1999.
[5] Steven Mooney, ”Constructing Walking Jazz Bass
Lines” (book series). Waterfall Publishing House,
2011.
[6] P. Johnson-Laird, ”How jazz musicians improvise”, in
Music Perception, Spring 2002, Vol. 19, No. 3.
[7] a list of the Jamie Aebersold
publications can be found at
en.wikipedia.org/wiki/List of songs in Aebersold’s Play-
A-Long series
(consulted in March 17th 2013).
[8] Smudge Apps - Band. www.smudgeapps.com
(consulted March 14th 2013)
[9] PG Music - Band-in-a-box.www.pgmusic.com
(consulted in March 17th 2013)
[10] Technimo LLC, iReal b. www.irealb.com
(consulted March 14th 2013)
[11] R. Dias, T. Marques, G. Sioros and C. Guedes,
”GimmeDaBlues: an intelligent Jazz/Blues player and
comping generator for iOS devices”. in Proc. Conf.
Computer Music and Music Retrieval (CMMR 2012).
London 2012.
[12] Barrie Nettles and R. Graf, ”The Chord Scale The-
ory and Jazz Harmony”. Rottenburg: Advance Music,
2002.
[13] Randy Felts, ”Reharmonization Techniques”. Boston:
Berklee Press, 2002.
[14] Mark Steedman, ”A Generative Grammar for Jazz
Chord Sequences”, in Music Perception 2, 1984. pp.
52-77.
[15] Mark Steedman, ”The Blues and the Abstract Truth:
Music and Mental Models”, in A. Garnham & J.
Oakhill (eds.), Mental Models In Cognitive Science.
Mahwah, NJ: Erlbaum 1996, pp. 305-318.
Proceedings of the Sound and Music Computing Conference 2013, SMC 2013, Stockholm, Sweden
308
... The style algorithms in iReal are (presumably) using precomposed phrases that are concatenated to form continuous compositions. Dias and Guedes (2013) provide an easy-to-understand example for automatic composition of a walking bassline. Collins (2010, Chapter 8) provides a discussion of algorithmic composition along further examples. ...
Article
Full-text available
Music generating computer programs can support jazz musicians and students during performance and practice, for instance by providing accompaniment for solo improvisation. However, such software typically plays sequences of static precomposed snippets and does not react to the user. In that context, it is hardly possible to determine whether such a system has any of its own creative powers. Within the scope of a user study with 20 participants, we evaluate and compare the mobile application iReal Pro to our own system, the evolutionary automatic and reactive system called ‘EAR Drummer’ that generates drum patterns as accompaniment to jazz solo improvisation. It adapts its behaviour in real-time by heuristic rules based on music properties derived from the user’s melodies. The user-based evaluation is performed by following the standardised procedure for evaluating creative systems (SPECS). The analysis of the results is based on a Linear Mixed Effects Model to consider fixed and random effects on the survey data. The model reveals that our system outperforms iReal Pro in all of SPECS’s partial components of creativity and significantly outperforms it for 7 of those 14 components including variety, originality, emotional involvement, and social interaction. Further, it is characterised as “better” and “more interesting” in the user survey. A conflicting observation is that while 70% of the study participants tend to prefer our more “creative” system as support for stage performances, only 40% find it more suitable for practice. Further analysis addresses differences between user groups defined by their played instrument, age, and musical experience.
... Automatic generation of music has been a focus of computational music research for a long time. Researchers have been designing systems to imitate or compose various musical styles from Classical to Jazz music [1], [2]. Despite the progress achieved so far in the development of generative music systems for Western music genres there is limited work regarding methodologies of automatic generation of music in non-western styles. ...
Conference Paper
Full-text available
In this paper we explore a method for automatically generating Carnatic style rhythmic. The method uses a set of annotated Carnatic percussion performances to generate new rhythmic patterns. The excerpts are short percussion solo performances in ādi tāla (8 beat-cycle), performed in three different tempi (slow/moderate/fast). All excerpts were manually annotated with beats, downbeats and strokes in three different registers — Lo-Mid-Hi. N-gram analysis and Markov chains are used to model the rhythmic structure of the music and determine the progression of the generated rhythmic patterns. The generated compositions are evaluated by a Carnatic music percussionist through a questionnaire and the overall evaluation process is discussed. Results show that the system can successfully compose Carnatic style rhythmic performances and generate new patterns based on the original compositions.
... The algorithm presented in this paper is the development over the keyboard voicing algorithm and interface developed for Gimme Da Blues [14], an application for iOS devices that allows the user to play trumpet and piano, while an automatic virtual bassist and drummer are generated in real-time. Other developments on this research have focused on the sequencer and harmonic content, as well as the walking bass algorithm [15]. This paper describes the new voicing algorithm for live piano comping in traditional jazz music. ...
Conference Paper
Full-text available
This paper presents a dynamic interface and voicing algo- rithm for real-time performance of jazz piano comping. Starting with a given song with a predefined harmonic progression, the algorithm calculates and maps an array of chord voicings to a virtual piano keyboard that can be played in real-time with any physical multi-touch input device like an iPad or computer keyboard. By taking care of the note selection for the voicings, the interface pro- vides a simplified and intuitive way to play sophisticated voicings, while leaving the control over the performance aspects like timing, register, wideness and density to the user.
... There is a need for machine musicianship (Rowe 2001) to assist in the construction of musically interesting and stylistically appropriate performances. To cite just a few representative studies, drumming (Sioros et al. 2013), chord voicings (Hirata 1996), bass lines (Dias and Guedes 2013), and vocal technique (Nakano and Goto 2009) have all been explored and automated to some extent. Even more difficult is the problem of adjusting styles according to other musicians. ...
Article
Full-text available
Computers are often used in performance of popular music, but most often in very restricted ways, such as keyboard synthesizers where musicians are in complete control, or pre-recorded or sequenced music where musicians follow the computer's drums or click track. An interesting and yet little-explored possibility is the computer as highly autonomous performer of popular music, capable of joining a mixed ensemble of computers and humans. Considering the skills and functional requirements of musicians leads to a number of predictions about future human–computer music performance (HCMP) systems for popular music. We describe a general architecture for such systems and describe some early implementations and our experience with them.
Chapter
In this paper, we propose a method of generating walking bass lines for jazz with a hidden Markov model (HMM). Although automatic harmonization has been widely and actively studied, automatic generation of walking bass lines has not. With our model, which includes hidden states that represent combinations of pitch classes and metric positions, different distributions of bass notes selected at different metric positions can be learned. The results of objective and subjective evaluations suggest that the model can learn such different tendencies of bass notes at different metric positions and generates musically flowing bass lines that contain passing notes.
Article
Music is everywhere in the world, and its applications in commerce are extremely versatile. Generally speaking, in order to create some music for background music, it is necessary to engage sound recordists and instrumental performers. However, the process is very time-consuming and costly. In this paper, a real-time emotion-based music accompaniment system is proposed to solve this issue. For different emotions, a fuzzy logic controller is designed to adjust the tempo of the music, and an adaptive partition evolutionary genetic algorithm is developed to create corresponding melodies. The chord progressions are generated via music theory, and the instrumentation is disposed by the conception of the probability. What is noteworthy is that all the processes can be output by Virtual Studio Technology in real time so that users can listen directly to the composing results from any emotions. From the experimental results, the proposed adaptive partition evolutionary genetic algorithm performs better than other optimal algorithms in such topics.
Conference Paper
Full-text available
This paper describes an application for iPhone/iPod Touch/iPad devices that allows anyone to play jazz keyboard and solo instruments along a predefined harmonic progression, using the multi-touch properties of the iOS devices. While the user plays keyboard and/or solo instruments, the application automatically generates the bass and drums parts, responding to the user’s activity. Dynamic mapping of the notes and chords available in the graphical interface provides an intuitive and natural way to play otherwise complex chords and scales, while maintaining a physical playability that will be familiar to experienced keyboard players, and provides an entertaining, yet challenging experience for non-musicians.
Article
This article defends the view that theories of creativity should be computable and that only three sorts of algorithm can be creative. It proposes a central principle of algorithmic demands for jazz improvisation: a division of labor in terms of computational power occurs between the creation of chord sequences for improvisation and the creation of melodic improvisations in real time. An algorithm for producing chord sequences must be computationally powerful, that is, it calls for a working memory or a notation of intermediate results. Improvisation depends on the ability to extemporize new melodies that fit the chord sequence. The corresponding algorithm must operate rapidly in real time, and so it minimizes the computational load on working memory. The principle of algorithmic demands is supported by analysis and a computer model.
Article
The recursive character of musical chord sequences makes generative grammar a suitable formalism for describing the rules that constrain such sequences. A small number of rules are presented which generate the members of a large class of complex chord sequences that are generally recognised to be closely related, namely the set of jazz 12-bar blues. The rules are illustrated using a testing corpus of jazz chord sequences, and certain extensions are considered.
The Art of the Walking Bass
  • Bob Magnusson
Bob Magnusson, "The Art of the Walking Bass". Hal Leonard, 1999.
Building Jazz Bass Lines
  • Ron Carter
Ron Carter, "Building Jazz Bass Lines". Hal Leonard, 1998.
  • Llc Technimo
Technimo LLC, iReal b. www.irealb.com (consulted March 14th 2013)
The Jazz Bass Book Technique and Tradition
  • John Goldsby
John Goldsby, "The Jazz Bass Book Technique and Tradition". Backbeat Books, 2002.
The Chord Scale Theory and Jazz Harmony " . Rottenburg: Advance Music
  • Barrie Nettles
  • R Graf
Barrie Nettles and R. Graf, " The Chord Scale Theory and Jazz Harmony ". Rottenburg: Advance Music, 2002. [13] Randy Felts, " Reharmonization Techniques ". Boston: Berklee Press, 2002.
Constructing Walking Jazz Bass Lines" (book series)
  • Steven Mooney
Steven Mooney, "Constructing Walking Jazz Bass Lines" (book series). Waterfall Publishing House, 2011.