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.Buffer(fn, number, channels=1)[source]

Bases: object

classmethod fromFile(filename, number)[source]
class FoxDot.lib.Buffers.BufferManager(server=FoxDot ServerManager Instance -> localhost:57110, paths=())[source]

Bases: object

addPath(path)[source]

Add a path to the search paths for samples

free(filenameOrBuf)[source]

Free a buffer. Accepts a filename or buffer number

freeAll()[source]

Free all buffers

getBuffer(bufnum)[source]

Get buffer information from the buffer number

getBufferFromSymbol(symbol, index=0)[source]

Get buffer information from a symbol

loadBuffer(filename, index=0, force=False)[source]

Load a sample and return the number of a buffer

property loops

Sorted list of available loops.

reload(filename)[source]
reset()[source]
setMaxBuffers(max_buffers)[source]

Set the max buffers on the SC server

class FoxDot.lib.Buffers.GranularSynthDef[source]

Bases: SampleSynthDef

class FoxDot.lib.Buffers.LoopSynthDef[source]

Bases: SampleSynthDef

class FoxDot.lib.Buffers.StretchSynthDef[source]

Bases: SampleSynthDef

FoxDot.lib.Buffers.hasext(filename)[source]
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