Skip to content

Commit 829d382

Browse files
committed
Updated reqs, collections bugfix, removed wip modules list, readme merge
1 parent 9712060 commit 829d382

File tree

5 files changed

+24
-11
lines changed

5 files changed

+24
-11
lines changed

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
recursive-include textbeat/def *
22
recursive-include textbeat/presets *
3+
recursive-include textbeat/plugins *

README.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,9 @@ I'm currently looking into export options and recording via a headless host.
9292
# Tutorial
9393

9494
If you're familiar with trackers, you may pick this up quite easily.
95-
Music flows vertically, with separate columns that are separated by whitespace or
95+
96+
First start by creating a .txbt (textbeat) file, inside the file music
97+
flows vertically, with separate columns that are separated by whitespace or
9698
manually setting a column width.
9799

98100
Each column represents a track, which defaults to separate midi channel numbers.
@@ -127,6 +129,17 @@ Musicians can think of grid as fractions of quarter note,
127129
The grid is the beat/quarter-note subdivision.
128130

129131
Both Tempo and Grid can be decimal numbers as well.
132+
For example, if you made some chords and you only want
133+
one chord to be played per bar (eg 4 beats)
134+
you could set `%t120x0.25`.
135+
136+
You can listen to what you've made by running:
137+
138+
```
139+
textbeat <your file>
140+
```
141+
142+
Consult the output of `textbeat -h` for further information.
130143

131144
## Note Numbers
132145

@@ -353,7 +366,7 @@ If you wish to control volume/gain directly, use @v
353366

354367
Unlike accents, volume changes persist.
355368

356-
Interpolation is not yet impl
369+
Interpolation is not yet implemented
357370

358371
## Vibrato, Pitch, and Mod Wheel
359372

@@ -526,7 +539,6 @@ Here are the marker/repeat commands:
526539
- :name| goes back to last marker 'name'
527540
- :N| goes back to last marker N number of times
528541
- :name*N| goes back to last marker 'name' N number of times
529-
- || return/pop to last position after marker jump
530542
- ||| return/pop to last position after marker jump by-label
531543
- |||| end the song here
532544
```
@@ -755,4 +767,3 @@ without doing a C++ rewrite.
755767
# Can I Help?
756768

757769
Yes! Contact [flipcoder](https://github.com/flipcoder).
758-

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ pyyaml
77
docopt
88
future
99
shutilwhich
10+
mido

textbeat/__main__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/python
22
"""textbeat
3-
Copyright (c) 2018-2020 Grady O'Connell
3+
Copyright (c) 2018-2021 Grady O'Connell
44
Open-source under MIT License
55
66
Examples:
@@ -268,14 +268,14 @@ def main():
268268

269269
if player.shell:
270270
log(FG.BLUE + 'textbeat')# v'+str(VERSION))
271-
log('Copyright (c) 2018 Grady O\'Connell')
271+
log('Copyright (c) 2021 Grady O\'Connell')
272272
log('https://github.com/flipcoder/textbeat')
273273
active = support.SUPPORT_ALL & support.SUPPORT
274274
inactive = support.SUPPORT_ALL - support.SUPPORT
275-
if active:
276-
log(FG.GREEN + 'Active Modules: ' + STYLE.RESET_ALL + ', '.join(active) + STYLE.RESET_ALL)
277-
if inactive:
278-
log(FG.RED + 'Inactive Modules: ' + STYLE.RESET_ALL + ', '.join(inactive))
275+
# if active:
276+
# log(FG.GREEN + 'Active Modules: ' + STYLE.RESET_ALL + ', '.join(active) + STYLE.RESET_ALL)
277+
# if inactive:
278+
# log(FG.RED + 'Inactive Modules: ' + STYLE.RESET_ALL + ', '.join(inactive))
279279
if player.portname:
280280
log(FG.GREEN + 'Device: ' + STYLE.RESET_ALL + '%s' % (player.portname if player.portname else 'Unknown',))
281281
log(FG.RED + 'Other Devices: ' + STYLE.RESET_ALL + '%s' % (', '.join(portnames)))

textbeat/defs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ class Diff:
160160
def merge(a, b, overwrite=False, skip=None, diff=None, pth=None):
161161
for k,v in iteritems(b):
162162
contains = k in a
163-
if contains and isinstance(a[k], dict) and isinstance(b[k], collections.Mapping):
163+
if contains and isinstance(a[k], dict):# and isinstance(b[k], collections.Mapping):
164164
loc = (pth+[k]) if pth else None
165165
if callable(skip):
166166
if not skip(loc,v):

0 commit comments

Comments
 (0)