Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: infojunkie/mma
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e511c92b3f916b5a239a46118de88ecb34655d3b
Choose a base ref
...
head repository: infojunkie/mma
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 3fa6d6bbce206766f7781d7fb45b7cebc5fcbd94
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Sep 17, 2024

  1. Minor cleanup

    infojunkie committed Sep 17, 2024
    Copy the full SHA
    3fa6d6b View commit details
Showing with 3 additions and 2 deletions.
  1. +3 −2 MMA/docs.py
5 changes: 3 additions & 2 deletions MMA/docs.py
Original file line number Diff line number Diff line change
@@ -28,11 +28,12 @@

import MMA.midiC
import MMA.grooves
import MMA.midiC
import MMA.swing

from . import gbl
from MMA.common import *
from MMA.timesig import timeSig
from MMA.midiC import instToValue, drumToValue


def docDrumNames(order):
@@ -284,7 +285,7 @@ def docDump():
}
groove['tracks'] = []
for c,v,s in l[3:]:
m = [drumToValue(n) if c.startswith('DRUM') else instToValue(n) for n in v]
m = [MMA.midiC.drumToValue(n) if c.startswith('DRUM') else MMA.midiC.instToValue(n) for n in v]
groove['tracks'].append({ "track": c, "voice": v, "midi": m, "sequence": s })
doc.append(groove)
print(json.dumps(doc, indent=1))