8000 Fix typos by kianmeng · Pull Request #12 · flipcoder/textbeat · GitHub
[go: up one dir, main page]

Skip to content

Fix typos #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ Now with dots for staccato:
```

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

A (-) character will then mute them all.

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

Tuplets are marked by 'T' and have an optional value at the first occurence in that group.
Tuplets are marked by 'T' and have an optional value at the first occurrence in that group.
Ratios provided will control expansion. Default is 3:4.
If no denominator is given, it will default to the next power of two
(so 3:4, 5:8, 7:8, 11:16).
Expand Down Expand Up @@ -641,7 +641,7 @@ To do relative values, drop the equals sign:
- midi channels exceeding max value will be spanned across outputs
- p: program assign
- Set program to a given number
- Global var (%) p is usually prefered for string matching
- Global var (%) p is usually preferred for string matching
- c: control change (midi CC param)
- setting CC5 to 25 would be c5:25
- q: play recording
Expand Down Expand Up @@ -687,7 +687,7 @@ Track commands that start with letters should be separated
from notedata by prefixing '@':
Example: 1~ is fine, but 1v is not. Use 1@v You only need one to combine: 1@v5e5

Note: Fractional values specified are formated like numbers after a decimal point:
Note: Fractional values specified are formatted like numbers after a decimal point:
Example: 3, 30, and 300 all mean 30% (read like .3, .30, etc.)

CC mapping is customizable inside [def/cc.yaml](https://github.com/flipcoder/textbeat/blob/master/textbeat/def/default.yaml).
Expand Down Expand Up @@ -757,7 +757,7 @@ Features I'm adding eventually:
- Recording and encoding output of a project
- Midi controller input and recording
- Midi input chord analysis
- MPE support for temperment and dynamic tonality
- MPE support for temperament and dynamic tonality
```

I'll be making use of python's multiprocessing or
Expand Down
4 changes: 2 additions & 2 deletions textbeat/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
-p --patch=<patch> (STUB) default midi patch, partial match
-f --flags comma-separated global flags
-c execute commands sequentially
-l execute commands simultaenously
-l execute commands simultaneously
--stdin read entire file from stdin
-r --remote (STUB) realtime remote (control through stdin/out)
--ring don't mute midi on end
Expand Down Expand Up @@ -133,7 +133,7 @@ def main():
FN = ARGS['INPUT']
from_stdin = False
if FN=='-' or ARGS['--stdin']:
FN = 0 # TEMP: doesnt work with py2
FN = 0 # TEMP: doesn't work with py2
from_stdin = True
else:
from_stdin = False
Expand Down
2 changes: 1 addition & 1 deletion textbeat/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def peel_uint_s(s, d=None):
def peel_roman_s(s, d=None):
nums = 'ivx'
r = ''
case = -1 # -1 unknown, 0 low, 1 uppper
case = -1 # -1 unknown, 0 low, 1 upper
for ch in s:
chl = ch.lower()
chcase = (chl==ch)
Expand Down
12 changes: 6 additions & 6 deletions textbeat/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def run(self):
try:
if val:
val = val.lower()
# ambigous alts
# ambiguous alts

if val.isdigit():
modescale = (self.scale.name,int(val))
Expand Down Expand Up @@ -831,7 +831,7 @@ def run(self):
tok = tok[1:]
if not expanded: cell = cell[1:]

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

# CHORDS
addnotes = []
Expand Down Expand Up @@ -1168,7 +1168,7 @@ def run(self):
# chordnoteslist.append(chord_notes)
# chordrootslist.append(chord_root)
chord_root = n
ignore = False # reenable default root if chord was w/o note name
ignore = False # re-enable default root if chord was w/o note name
continue
else:
pass
Expand Down Expand Up @@ -1252,7 +1252,7 @@ def run(self):
if ch.arp_enabled:
if notes: # incoming notes?
# log(notes)
# interupt arp
# interrupt arp
ch.arp_stop()
else:
# continue arp
Expand Down Expand Up @@ -1708,7 +1708,7 @@ def run(self):
# if not notes:
# cell = []
# continue # ignore marker
# GLOABL VARS (ignore -- already parsed)
# GLOBAL VARS (ignore -- already parsed)
elif c=='%':
# ctrl line
cell = []
Expand Down
2 changes: 1 addition & 1 deletion textbeat/plugins/espeak.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def run(self):
self.words.clear()
else:
log('BAD COMMAND: ' + msg[0])
self.processses = list(filter(lambda p: p.poll()==None, self.processes))
self.processes = list(filter(lambda p: p.poll()==None, self.processes))
self.con.close()
for tmp in self.words:
tmp.close()
Expand Down
4 changes: 2 additions & 2 deletions textbeat/plugins/sonicpi.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class SonicPi(Instrument):
NAME = 'sonicpi'
def __init__(self, args):
Instrument.__init__(self, SonicPi.NAME)
self.initalized = False
self.initialized = False
def enable(self):
self.initalized = True
self.initialized = True
def enabled(self):
return self.initialized
def supported(self):
Expand Down
4 changes: 2 additions & 2 deletions textbeat/plugins/supercollider.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ class SuperCollider(Instrument):
NAME = 'supercollider'
def __init__(self, args):
Instrument.__init__(self, SuperCollider.NAME)
self.initalized = False
self.initialized = False
def enable(self):
self.initalized = True
self.initialized = True
def enabled(self):
return self.enabled
def supported(self):
Expand Down
2 changes: 1 addition & 1 deletion textbeat/theory.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def mode_name(self, idx):
# for lookup, normalize name first, add root to result
# number chords can't be used with note numbers "C7 but not 17
# in the future it might be good to lint chord names in a test
# so that they dont clash with commands and break previous songs if chnaged
# so that they dont clash with commands and break previous songs if changed
# This will be replaced for a better parser
# TODO: need optional notes marked
CHORDS = DEFS['chords']
Expand Down
0