Skip to content

BachDuet enables a human performer to improvise a duet counterpoint with a computer agent in real time.

Notifications You must be signed in to change notification settings

xribene/BachDuet

Repository files navigation

BachDuet

BachDuet enables a human performer to improvise a duet counterpoint with a computer agent in real time.

Webpage / Demos

Paper

NEW Version

Check the code of a recent implementation of BachDuet using Vue.js and visit bachduet.com to itneract with BachDuet

Usage

Requirements

Hardware

  • Midi Keyboard (if not available, you can still use your pc keyboard)

Software

  • Any virtual midi synthesizer. BachDuet's output is MIDI events (not audio), so you need a synthesizer. It can be a standalone synth like Fluidsynth, OMNI midi, or it can be any DAW running MIDI plugins.

Libraries/OS

  • Windows/Mac/Linux
  • Python = 3.8
  • PyQt5 = 5.12.3
  • pytorch = 1.4
  • python-rtmidi
  • pyqtgraph = 0.12.3
  • music21
  • numpy
  • scipy
  • matplotlib

Steps

  • python main.py
  • Choose HumanVsMachine, and enter your name
  • Press Ctrl+P (or the settings icon) to open settings and select Midi input and output
  • Press space (or the play icon) to start (or pause)
  • Start playing.

Bugs

  • "MachineVsMachine" mode not working correctly

About

BachDuet enables a human performer to improvise a duet counterpoint with a computer agent in real time.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages