FoxDot.lib.Buffers¶
This module manages the allocation of buffer numbers and samples. To see a list of descriptions of what sounds are mapped to what characters, simply evaluate
print(Samples)
Future:
Aiming on being able to set individual sample banks for different players that can be proggrammed into performance.
- class FoxDot.lib.Buffers.BufferManager(server=FoxDot ServerManager Instance -> localhost:57110, paths=())[source]¶
Bases:
object- property loops¶
Sorted list of available loops.
- FoxDot.lib.Buffers.alpha = 'abcdefghijklmnopqrstuvwxyz'¶
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to ‘utf-8’. errors defaults to ‘strict’.
- FoxDot.lib.Buffers.nonalpha = {'!': 'exclamation', '#': 'hash', '$': 'dollar', '%': 'percent', '&': 'ampersand', '*': 'asterix', '+': 'plus', ',': 'lessthan', '-': 'hyphen', '/': 'forwardslash', '1': '1', '2': '2', '3': '3', '4': '4', ':': 'colon', ';': 'semicolon', '=': 'equals', '?': 'question', '@': 'at', '\\': 'backslash', '^': 'caret', '_': 'bar', '~': 'tilde'}¶
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- FoxDot.lib.Buffers.DESCRIPTIONS = {'!': 'Yeah!', '#': 'Crash', '$': 'Beatbox', '%': 'Noise bursts', '&': 'Chime', '*': 'Clap', '+': 'Clicks', ',': 'I Love You', '-': 'Hi hat closed', '/': 'Reverse sounds', '1': 'Vocals (One)', '2': 'Vocals (Two)', '3': 'Vocals (Three)', '4': 'Vocals (Four)', ':': 'Hi-hats', ';': 'Perc', '=': 'Hi hat open', '@': 'Gameboy noise', 'A': 'Gameboy kick drum', 'B': 'Short saw', 'C': 'Choral', 'D': 'Dirty snare', 'E': 'Ringing percussion', 'F': 'Trumpet stabs', 'G': 'Ambient stabs', 'H': 'Clap', 'I': 'Rock snare', 'J': 'Ambient stabs', 'K': 'Percussive hits', 'L': 'Noisy percussive hits', 'M': 'Acoustic toms', 'N': 'Gameboy SFX', 'O': 'Heavy snare', 'P': 'Tabla long', 'Q': 'Electronic stabs', 'R': 'Metallic', 'S': 'Tamborine', 'T': 'Cowbell', 'U': 'Misc. Fx', 'V': 'Hard kick', 'W': 'Distorted', 'X': 'Heavy kick', 'Y': 'High buzz', 'Z': 'Loud stabs', '\\': 'Lazer', '^': 'Donk', '_': 'Hangdrum', 'a': 'Gameboy hihat', 'b': 'Noisy beep', 'c': 'Voice/string', 'd': 'Woodblock', 'e': 'Electronic Cowbell', 'f': 'Pops', 'g': 'Ominous', 'h': 'Finger snaps', 'i': 'Jungle snare', 'j': 'Whines', 'k': 'Wood shaker', 'l': 'Robot noise', 'm': '808 toms', 'n': 'Noise', 'o': 'Snare drum', 'p': 'Tabla', 'q': 'Ambient stabs', 'r': 'Metal', 's': 'Shaker', 't': 'Rimshot', 'u': 'Soft snare', 'v': 'Soft kick', 'w': 'Dub hits', 'x': 'Bass drum', 'y': 'Percussive hits', 'z': 'Scratch', '~': 'Ride cymbal'}¶
dict() -> new empty dictionary dict(mapping) -> new dictionary initialized from a mapping object’s
(key, value) pairs
- dict(iterable) -> new dictionary initialized as if via:
d = {} for k, v in iterable:
d[k] = v
- dict(**kwargs) -> new dictionary initialized with the name=value pairs
in the keyword argument list. For example: dict(one=1, two=2)
- FoxDot.lib.Buffers.symbolToDir = <FoxDot.lib.Buffers._symbolToDir object>¶
- FoxDot.lib.Buffers.nil = <Buffer num 0>¶
- FoxDot.lib.Buffers.Samples = <BufferManager>¶
- FoxDot.lib.Buffers.loop = loop¶
- FoxDot.lib.Buffers.stretch = stretch¶