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.SC(sc_code: str)[source]
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.fadein(start=0, stop=1, dur=16)[source]

Apply fade-in.

Example

d0 >> play('-', rate=fadein())

You can also specify the start value

f0 >> sitar(dur=PDur(5,16), cut=fadein(.15))
# or with a keyword argument
f0 >> sitar(dur=PDur(5,16), cut=fadein(start=.15))

You can also specify the stop value

k0 >> keys(dur=2, shape=fadein(0, 2))
# or with a keyword argument
k0 >> keys(dur=2, shape=fadein(stop=2))

You can also specify the dur value

p0 >> sinepad(P[0,4,2,2]+(0,2,4), dur=4, mix=.5, room=fadein(0, 1, 32))
# or with a keyword argument
p0 >> sinepad(P[0,4,2,2]+(0,2,4), dur=4, mix=.5, room=fadein(dur=32))
FoxDot.lib.fadeout(start=1, stop=0, dur=16)[source]

Apply fade-out.

Example

d0 >> play('-', rate=fadeout())

You can also specify the start value

f0 >> sitar(dur=PDur(5,16), cut=fadeout(.15))
# or with a keyword argument
f0 >> sitar(dur=PDur(5,16), cut=fadeout(start=.15))

You can also specify the stop value

k0 >> keys(dur=2, shape=fadeout(0, 2))
# or with a keyword argument
k0 >> keys(dur=2, shape=fadeout(stop=2))

You can also specify the dur value

p0 >> sinepad(P[0,4,2,2]+(0,2,4), dur=4, mix=.5, room=fadeout(0, 1, 32))
# or with a keyword argument
p0 >> sinepad(P[0,4,2,2]+(0,2,4), dur=4, mix=.5, room=fadeout(dur=32))
FoxDot.lib.foxdot_reload()[source]
FoxDot.lib.futureBar(n=0)[source]
FoxDot.lib.future_bar(n=0)[source]

Schedule functions when you define them with @futureBar Functions will run n bars in the future (0 is the next bar)

>>> future_bar(v1.solo)
or
>>> @future_bar(4)
... def dostuff():
...     v1.solo()
FoxDot.lib.inject_roots()[source]
FoxDot.lib.inject_scales()[source]
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.

>>> next_bar(v1.solo)
or
>>> @next_bar
... 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.0.0
FoxDot.lib._ = None

The type of the None singleton.

FoxDot.lib.Clock = <FoxDot.lib.TempoClock.TempoClock object>
FoxDot.lib.now = 17.070405960083008

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 = 20.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 = ['amp', 'amplify', 'atk', 'beat_dur', 'bend', 'benddelay', 'blur', 'bpf', 'bpm', 'bpnoise', 'bpr', 'buf', 'channel', 'chop', 'coarse', 'cut', 'decay', 'degree', 'delay', 'drive', 'dur', 'echo', 'echotime', 'env', 'fmod', 'formant', 'freq', 'glide', 'glidedelay', 'hpf', 'hpr', 'level', 'lpf', 'lpr', 'midinote', 'mix', 'oct', 'output', 'pan', 'peak', 'pshift', 'rate', 'rel', 'room', 'sample', 'scale', 'shape', 'slide', 'slidedelay', 'slidefrom', 'spin', 'striate', 'sus', 'swell', 'tremolo', 'vib', 'vibdepth']

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.PatternMethods = ['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', 'has_behaviour', '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 = ['P10', 'PAlt', 'PBeat', 'PBern', 'PChain', 'PDelay', 'PDelta', 'PDur', 'PEuclid', 'PEuclid2', 'PFibMod', 'PGroup', 'PGroupDiv', 'PGroupMod', 'PGroupOr', 'PGroupPlus', 'PGroupPow', 'PGroupStar', 'PGroupXor', 'PIndex', 'PJoin', 'PPairs', 'PQuicken', 'PRand', 'PRange', 'PRhythm', 'PShuf', 'PSine', 'PSq', 'PSquare', 'PStep', 'PStretch', 'PStrum', 'PStutter', 'PSum', 'PTree', 'PTri', 'PWalk', 'PWhite', 'PZ12', 'PZip', 'PZip2', 'Pattern', 'PwRand', 'PxRand']

Built-in mutable sequence.

If no argument is given, the constructor creates a new empty list. The argument must be an iterable if specified.