FoxDot.lib.Patterns.Parse¶
Patterns.Parse.py¶
Handles the parsing of Sample Player Object Strings
- FoxDot.lib.Patterns.Parse.ParsePlayString(string, flat=False)[source]¶
Returns the parsed play string used by sample player
- FoxDot.lib.Patterns.Parse.arrow_zip(pat1, pat2)[source]¶
Zips two patterns together. If one item is a tuple, it extends the tuple / PGroup i.e. arrow_zip([(0,1),3], [2]) -> [(0,1,2),(3,2)]
- FoxDot.lib.Patterns.Parse.convert_to_int(data)[source]¶
Recursively calls until all nested data contains only integers
- FoxDot.lib.Patterns.Parse.feed(string)[source]¶
Used to recursively parse nested strings, returns a list object (not Pattern), and a boolean denoting if the list contains a nested list
- FoxDot.lib.Patterns.Parse.re_nests = '\\((.*?)\\)'¶
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.Patterns.Parse.re_square = '\\[.*?\\]'¶
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.Patterns.Parse.re_curly = '\\{.*?\\}'¶
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.Patterns.Parse.re_arrow = '<.*?>'¶
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.Patterns.Parse.square_type = <class 'FoxDot.lib.Patterns.PGroups.PGroupPlus'>¶
Stutters the values over the length of and event’s ‘sus’
- FoxDot.lib.Patterns.Parse.braces_type = <class 'FoxDot.lib.Patterns.Generators.PRand'>¶
Returns a random integer between start and stop. If start is a container-type it returns a random item for that container.