Skip to content

Commit c6de752

Browse files
authored
Merge pull request #12 from kianmeng/fix-typos
Fix typos
2 parents 6e62245 + 8f0d8d9 commit c6de752

File tree

8 files changed

+20
-20
lines changed

8 files changed

+20
-20
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Now with dots for staccato:
230230
```
231231

232232
Notes that are played in the same track as other notes mute the previous notes.
233-
In order to overide this, hold a note by suffixing it with underscore (_).
233+
In order to override this, hold a note by suffixing it with underscore (_).
234234

235235
A (-) character will then mute them all.
236236

@@ -447,7 +447,7 @@ For a full list of GM names, see [def/gm.yaml](https://github.com/flipcoder/text
447447
The 'T' (tuplet) gives us access to the musical concept of tuplets (called triplets in cases of 3).
448448
which allows note timing and durations to fall along a ratio instead of the usual note subdivisions.
449449

450-
Tuplets are marked by 'T' and have an optional value at the first occurence in that group.
450+
Tuplets are marked by 'T' and have an optional value at the first occurrence in that group.
451451
Ratios provided will control expansion. Default is 3:4.
452452
If no denominator is given, it will default to the next power of two
453453
(so 3:4, 5:8, 7:8, 11:16).
@@ -641,7 +641,7 @@ To do relative values, drop the equals sign:
641641
- midi channels exceeding max value will be spanned across outputs
642642
- p: program assign
643643
- Set program to a given number
644-
- Global var (%) p is usually prefered for string matching
644+
- Global var (%) p is usually preferred for string matching
645645
- c: control change (midi CC param)
646646
- setting CC5 to 25 would be c5:25
647647
- q: play recording
@@ -687,7 +687,7 @@ Track commands that start with letters should be separated
687687
from notedata by prefixing '@':
688688
Example: 1~ is fine, but 1v is not. Use 1@v You only need one to combine: 1@v5e5
689689
690-
Note: Fractional values specified are formated like numbers after a decimal point:
690+
Note: Fractional values specified are formatted like numbers after a decimal point:
691691
Example: 3, 30, and 300 all mean 30% (read like .3, .30, etc.)
692692
693693
CC mapping is customizable inside [def/cc.yaml](https://github.com/flipcoder/textbeat/blob/master/textbeat/def/default.yaml).
@@ -757,7 +757,7 @@ Features I'm adding eventually:
757757
- Recording and encoding output of a project
758758
- Midi controller input and recording
759759
- Midi input chord analysis
760-
- MPE support for temperment and dynamic tonality
760+
- MPE support for temperament and dynamic tonality
761761
```
762762

763763
I'll be making use of python's multiprocessing or

textbeat/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
-p --patch=<patch> (STUB) default midi patch, partial match
2828
-f --flags comma-separated global flags
2929
-c execute commands sequentially
30-
-l execute commands simultaenously
30+
-l execute commands simultaneously
3131
--stdin read entire file from stdin
3232
-r --remote (STUB) realtime remote (control through stdin/out)
3333
--ring don't mute midi on end
@@ -133,7 +133,7 @@ def main():
133133
FN = ARGS['INPUT']
134134
from_stdin = False
135135
if FN=='-' or ARGS['--stdin']:
136-
FN = 0 # TEMP: doesnt work with py2
136+
FN = 0 # TEMP: doesn't work with py2
137137
from_stdin = True
138138
else:
139139
from_stdin = False

textbeat/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def peel_uint_s(s, d=None):
3737
def peel_roman_s(s, d=None):
3838
nums = 'ivx'
3939
r = ''
40-
case = -1 # -1 unknown, 0 low, 1 uppper
40+
case = -1 # -1 unknown, 0 low, 1 upper
4141
for ch in s:
4242
chl = ch.lower()
4343
chcase = (chl==ch)

textbeat/player.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def run(self):
479479
try:
480480
if val:
481481
val = val.lower()
482-
# ambigous alts
482+
# ambiguous alts
483483

484484
if val.isdigit():
485485
modescale = (self.scale.name,int(val))
@@ -831,7 +831,7 @@ def run(self):
831831
tok = tok[1:]
832832
if not expanded: cell = cell[1:]
833833

834-
# try to get roman numberal or number
834+
# try to get roman numeral or number
835835
c,ct = peel_roman_s(tok)
836836
ambiguous = 0
837837
# Help parser ambiguities (TODO: make these automatic)
@@ -985,7 +985,7 @@ def run(self):
985985
except ValueError:
986986
ignore = True
987987
else:
988-
ignore = True # reenable if there's a chord listed
988+
ignore = True # re-enable if there's a chord listed
989989

990990
# CHORDS
991991
addnotes = []
@@ -1168,7 +1168,7 @@ def run(self):
11681168
# chordnoteslist.append(chord_notes)
11691169
# chordrootslist.append(chord_root)
11701170
chord_root = n
1171-
ignore = False # reenable default root if chord was w/o note name
1171+
ignore = False # re-enable default root if chord was w/o note name
11721172
continue
11731173
else:
11741174
pass
@@ -1252,7 +1252,7 @@ def run(self):
12521252
if ch.arp_enabled:
12531253
if notes: # incoming notes?
12541254
# log(notes)
1255-
# interupt arp
1255+
# interrupt arp
12561256
ch.arp_stop()
12571257
else:
12581258
# continue arp
@@ -1708,7 +1708,7 @@ def run(self):
17081708
# if not notes:
17091709
# cell = []
17101710
# continue # ignore marker
1711-
# GLOABL VARS (ignore -- already parsed)
1711+
# GLOBAL VARS (ignore -- already parsed)
17121712
elif c=='%':
17131713
# ctrl line
17141714
cell = []

textbeat/plugins/espeak.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def run(self):
4242
self.words.clear()
4343
else:
4444
log('BAD COMMAND: ' + msg[0])
45-
self.processses = list(filter(lambda p: p.poll()==None, self.processes))
45+
self.processes = list(filter(lambda p: p.poll()==None, self.processes))
4646
self.con.close()
4747
for tmp in self.words:
4848
tmp.close()

textbeat/plugins/sonicpi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ class SonicPi(Instrument):
1212
NAME = 'sonicpi'
1313
def __init__(self, args):
1414
Instrument.__init__(self, SonicPi.NAME)
15-
self.initalized = False
15+
self.initialized = False
1616
def enable(self):
17-
self.initalized = True
17+
self.initialized = True
1818
def enabled(self):
1919
return self.initialized
2020
def supported(self):

textbeat/plugins/supercollider.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ class SuperCollider(Instrument):
1616
NAME = 'supercollider'
1717
def __init__(self, args):
1818
Instrument.__init__(self, SuperCollider.NAME)
19-
self.initalized = False
19+
self.initialized = False
2020
def enable(self):
21-
self.initalized = True
21+
self.initialized = True
2222
def enabled(self):
2323
return self.enabled
2424
def supported(self):

textbeat/theory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def mode_name(self, idx):
9595
# for lookup, normalize name first, add root to result
9696
# number chords can't be used with note numbers "C7 but not 17
9797
# in the future it might be good to lint chord names in a test
98-
# so that they dont clash with commands and break previous songs if chnaged
98+
# so that they dont clash with commands and break previous songs if changed
9999
# This will be replaced for a better parser
100100
# TODO: need optional notes marked
101101
CHORDS = DEFS['chords']

0 commit comments

Comments
 (0)