Skip to content
Permalink
Browse files Browse the repository at this point in the history
Don't improvise while learning
  • Loading branch information
schollz committed Sep 4, 2017
1 parent e57b652 commit 7216cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion player/player.go
Expand Up @@ -167,7 +167,7 @@ func (p *Player) Start() {
go p.Emit(p.Tick)

if !p.ManualAI {
if p.Tick-p.lastNote > (p.TicksPerBeat*p.BeatsOfSilence) && p.KeysCurrentlyPressed == 0 {
if p.Tick-p.lastNote > (p.TicksPerBeat*p.BeatsOfSilence) && p.KeysCurrentlyPressed == 0 && !p.AI.IsLearning {
logger.Info("Silence exceeded, trying to improvise")
p.lastNote = p.Tick
go p.Improvisation()
Expand Down

0 comments on commit 7216cd9

Please sign in to comment.