FoxDot.lib¶
- FoxDot.lib.Master()[source]¶
Returns a Group containing all the players currently active in the Clock
- FoxDot.lib.Ramp(t=32, ramp_time=4)[source]¶
Returns a linvar that goes from 0 to 1 over the course of the last ramp_time bars of every t length cycle.
- FoxDot.lib.allow_connections(valid=True, *args, **kwargs)[source]¶
Starts a new instance of ServerManager.TempoServer and connects it with the clock. Default port is 57999
- FoxDot.lib.futureBar(n=0)[source]¶
Schedule functions when you define them with @futureBar Functions will run n bars in the future (0 is the next bar)
>>> futureBar(v1.solo) or >>> @futureBar(4) ... def dostuff(): ... v1.solo()
- FoxDot.lib.instantiate_player_objects()[source]¶
Instantiates all two-character variable Player Objects
- FoxDot.lib.next_bar(n=0)[source]¶
Schedule functions when you define them with @nextBar Functions will run n beats into the next bar.
>>> nextBar(v1.solo) or >>> @nextBar ... def dostuff(): ... v1.solo()
- FoxDot.lib.player_method(f)[source]¶
Decorator for assigning functions as Player methods.
>>> @player_method ... def test(self): ... print(self.degree)
>>> p1.test()
- FoxDot.lib.update_foxdot_clock(clock)[source]¶
Tells the TimeVar, Player, and MidiIn classes to use a new instance of TempoClock.
- FoxDot.lib.update_foxdot_server(serv)[source]¶
Tells the Effect and`TempoClock`classes to send OSC messages to a new ServerManager instance.
- FoxDot.lib.choose = <bound method Random.choice of <random.Random object>>¶
Choose a random element from a non-empty sequence.
- FoxDot.lib.FoxDot = FoxDot ver. 0.9.0¶
- FoxDot.lib._ = None¶
The type of the None singleton.
- FoxDot.lib.Clock = <FoxDot.lib.TempoClock.TempoClock object>¶
- FoxDot.lib.now = 12.498652458190918¶
When a new TimeVar is created using a function such as addition, e.g. var([0,2]) + 2, then a ChildTimeVar is created that contains a single value but also creates a new ChildTimeVar when operated upon and behaves just as a TimeVar does.
- FoxDot.lib.nextbar = 16.0¶
When a new TimeVar is created using a function such as addition, e.g. var([0,2]) + 2, then a ChildTimeVar is created that contains a single value but also creates a new ChildTimeVar when operated upon and behaves just as a TimeVar does.
- FoxDot.lib.Attributes = ('degree', 'oct', 'freq', 'dur', 'delay', 'buf', 'blur', 'amplify', 'scale', 'bpm', 'sample', 'env', 'sus', 'fmod', 'pan', 'rate', 'amp', 'midinote', 'channel', 'vib', 'vibdepth', 'slide', 'sus', 'slidedelay', 'slidefrom', 'glide', 'glidedelay', 'bend', 'benddelay', 'coarse', 'striate', 'buf', 'rate', 'pshift', 'hpf', 'hpr', 'lpf', 'lpr', 'swell', 'bpf', 'bpr', 'bpnoise', 'chop', 'tremolo', 'beat_dur', 'echo', 'echotime', 'spin', 'cut', 'room', 'mix', 'formant', 'shape', 'drive')¶
Built-in immutable sequence.
If no argument is given, the constructor returns an empty tuple. If iterable is specified the tuple is initialized from iterable’s items.
If the argument is a tuple, the return value is the same object.
- FoxDot.lib.PatternMethods = ['PlayerKey', 'Pvar', 'PvarGenerator', 'TimeVar', '__abs__', '__add__', '__and__', '__bool__', '__class__', '__delattr__', '__dir__', '__eq__', '__floordiv__', '__format__', '__ge__', '__getattribute__', '__getitem__', '__getstate__', '__gt__', '__init__', '__init_subclass__', '__invert__', '__iter__', '__le__', '__len__', '__lt__', '__mod__', '__mul__', '__ne__', '__new__', '__nonzero__', '__or__', '__pow__', '__radd__', '__rand__', '__reduce__', '__reduce_ex__', '__repr__', '__rfloordiv__', '__rmod__', '__rmul__', '__ror__', '__rpow__', '__rsub__', '__rtruediv__', '__rxor__', '__setattr__', '__setitem__', '__setslice__', '__sizeof__', '__str__', '__sub__', '__subclasshook__', '__truediv__', '__xor__', 'abs', 'accum', 'add', 'all', 'alt', 'amen', 'append', 'arp', 'asGroup', 'bubble', 'choose', 'compress', 'concat', 'convert_data', 'copy', 'count', 'deep_shuffle', 'deeprzip', 'deepzip', 'duplicate', 'eq', 'every', 'extend', 'float', 'fromString', 'get_behaviour', 'get_data', 'get_methods', 'getitem', 'getslice', 'group', 'help', 'i_reverse', 'i_rotate', 'i_shuf', 'i_sort', 'int', 'invert', 'items', 'iter', 'layer', 'limit', 'loop', 'ltrim', 'make', 'map', 'mirror', 'ne', 'new', 'norm', 'offadd', 'offlayer', 'offmul', 'palindrome', 'pivot', 'replace', 'reverse', 'rotate', 'sample', 'select', 'set', 'setitem', 'shuffle', 'shufflets', 'sort', 'splice', 'startswith', 'str', 'stretch', 'string', 'stutter', 'submap', 'swap', 'transform', 'trim', 'true_copy', 'true_shuffle', 'undup', 'zip', 'zipx']¶
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.
- FoxDot.lib.PatternTypes = ['deepcopy', 'dataclass', 'field', 'urlopen', 'is_version_greather', 'get_pypi_version', 'stdout', 'sliceToRange', 'LCM', 'EuclidsAlgorithm', 'PulsesToDurations', 'get_first_item', 'modi', 'get_expanded_len', 'max_length', 'get_inverse_op', 'isiterable', 'recursive_any', 'DominantPattern', 'Nil', 'Add', 'Sub', 'Mul', 'Div', 'Mod', 'Pow', 'Get', 'FloorDiv', 'Xor', 'Or', 'rAdd', 'rGet', 'rSub', 'rMul', 'rDiv', 'rMod', 'rPow', 'rFloorDiv', 'rXor', 'rOr', 'PEq', 'PNe', 'loop_pattern_func', 'loop_pattern_method', 'PatternMethod', 'StaticPatternMethod', 'ClassPatternMethod', 'asStream', 'PatternFormat', 'PatternInput', 'Format', 'convert_nested_data', 'patternclass', 'Convert', 'asPattern', 'pattern_depth', 'equal_values', 'group_modi', 'get_avg_if', 'sum_delays', 'force_pattern_args', 'PShuf', 'PAlt', 'PStretch', 'PPairs', 'PZip', 'PZip2', 'PStutter', 'PSq', 'P10', 'PStep', 'PSum', 'PRange', 'PTri', 'PSine', 'PEuclid', 'PEuclid2', 'PBern', 'PBeat', 'PDur', 'PDelay', 'PStrum', 'PQuicken', 'PRhythm', 'PJoin']¶
Built-in mutable sequence.
If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.