Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions FoxDot/lib/Effects/Util.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def __repr__(self):
return "<'{}': keyword='{}'{}>".format(self.synthdef, self.name, other_args)

def __str__(self):
s = "SynthDef.new(\{},\n".format(self.synthdef)
s = "SynthDef.new(\\{},\n".format(self.synthdef)
s += "{" + "|bus, {}|\n".format(", ".join(self.args))
s += "var {};\n".format(",".join(self.vars))
s += self.input
Expand Down Expand Up @@ -169,7 +169,7 @@ def __init__(self):
Effect.__init__(self, 'startSound', 'startSound')
self.save()
def __str__(self):
s = "SynthDef.new(\startSound,\n"
s = "SynthDef.new(\\startSound,\n"
s += "{ arg bus, rate=1, sus; var osc;\n"
s += " ReplaceOut.kr(bus, rate)}).add;\n"
return s
Expand All @@ -180,7 +180,7 @@ def __init__(self):
Effect.__init__(self, 'makeSound', 'makeSound')
self.save()
def __str__(self):
s = "SynthDef.new(\makeSound,\n"
s = "SynthDef.new(\\makeSound,\n"
s += "{ arg bus, sus; var osc;\n"
s += " osc = In.ar(bus, 2);\n"
s += " osc = EnvGen.ar(Env([1,1,0],[sus * {}, 0.1]), doneAction: 14) * osc;\n".format(self.max_duration)
Expand Down
2 changes: 1 addition & 1 deletion FoxDot/lib/Patterns/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,7 @@ def startswith(self, prefix):

def all(self, func=(lambda x: bool(x))):
""" Returns true if all of the patterns contents satisfies func(x) - default is nonzero """
if len(self.data) is 0:
if len(self.data) == 0:
return False

for item in self.data:
Expand Down
2 changes: 1 addition & 1 deletion FoxDot/lib/SCLang/SynthDef.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def __exit__(self, exc_type, exc_value, traceback):
# ---------------------

def __str__(self):
Def = "SynthDef.new(\{},\n".format(self.name)
Def = "SynthDef.new(\\{},\n".format(self.name)
Def += "{}|{}|\n".format("{", format_args(kwargs=self.defaults, delim='='))
Def += "{}\n".format(self.get_base_class_variables())
Def += "{}\n".format(self.get_base_class_behaviour())
Expand Down