Skip to content

Commit 5d9de95

Browse files
committed
Merge branch 'master' of https://github.com/Qirky/FoxDot
2 parents bc58a31 + 44586b2 commit 5d9de95

File tree

8 files changed

+5
-27
lines changed

8 files changed

+5
-27
lines changed

FoxDot/__init__.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ def boot_supercollider():
4747

4848
if(OS == "Windows"):
4949

50-
print("OS: Windows")
51-
5250
sclangloc = os.popen('where /R "C:\\Program Files" sclang.exe').read()
5351

5452
thiscwd = str(sclangloc)
@@ -75,8 +73,6 @@ def is_proc_running(name):
7573

7674
elif(OS == "Linux"):
7775

78-
print("OS: Linux")
79-
8076
def is_proc_running(name):
8177
for p in psutil.process_iter(attrs=["name","cmdline"]):
8278
#print(p);
@@ -111,7 +107,7 @@ def is_proc_running(name):
111107

112108
def main():
113109
""" Function for starting the GUI when importing the library """
114-
FoxDot = Workspace.workspace(FoxDotCode).run()
110+
FoxDot = Workspace.Editor.workspace(FoxDotCode).run()
115111

116112
def Go():
117113
""" Function to be called at the end of Python files with FoxDot code in to keep

FoxDot/__main__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from __future__ import absolute_import, division, print_function
1313

1414
from .lib import FoxDotCode, handle_stdin
15-
from .lib.Workspace import workspace
1615

1716
import argparse
1817

@@ -80,6 +79,6 @@
8079

8180
else:
8281

83-
from .lib.Workspace import workspace
82+
from .lib.Workspace.Editor import workspace
8483

8584
FoxDot = workspace(FoxDotCode).run()

FoxDot/lib/TempoClock.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ def reset(self):
182182
self.time = self.dtype(0)
183183
self.beat = self.dtype(0)
184184
self.start_time = time.time()
185-
print("resetting clock")
186185
return
187186

188187
@classmethod

FoxDot/lib/Workspace/Editor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1195,7 +1195,7 @@ def select_all(self, event=None):
11951195
def killall(self, event=None):
11961196
""" Stops all player objects """
11971197
execute("_Clock.clear()", verbose=False)
1198-
print("Clearing the scheduling clock.")
1198+
print("Clock.clear()")
11991199
return "break"
12001200

12011201
# Zoom in: Ctrl+=

FoxDot/lib/Workspace/Prompt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def __init__(self, root):
1616

1717
# TODO // sort out the name space to check for suggestions
1818

19-
keywords = list(self.root.namespace["get_keywords"]())
19+
# keywords = list(self.root.namespace["get_keywords"]())
20+
keywords = list(get_keywords())
2021
synthdefs = list(self.root.namespace["SynthDefs"])
2122
attributes = list(self.root.namespace["Player"].get_attributes())
2223
player_methods = ["every", "often", "sometimes", "rarely"]

FoxDot/lib/Workspace/__init__.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +0,0 @@
1-
from __future__ import absolute_import, division, print_function
2-
3-
from .Editor import *
Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +0,0 @@
1-
Clock.bpm=120
2-
3-
4-
5-
d1 >> play("<X{~[~X]}><[--]><..H( [ d])>", dur=1/2, cut=.8, hpf=00)
6-
7-
b1 >> bass(dur=1/2, amp=[0,1], oct=5, drive=0.5, room=0.2, tremolo=1, sus=1).spread() + var([0,5,3],[8,4,4])
8-
9-
p1 >> spark(b1.pitch + (0, P*(_,[P*(4,5),4,4]), 2), dur=[8,4,4], oct=6, tremolo=4)
10-
11-
p2 >> pulse(PRand([4,2,0,6], seed=0)[:16], dur=1/4, oct=4, formant=linvar([0,4],8)).slider().spread()
12-
13-
nextBar(Clock.clear)

FoxDot/lib/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from .SCLang import SynthDefs, Env, SynthDef, CompiledSynthDef
2424
from .Root import Root
2525
from .Scale import Scale, Tuning
26-
from .Workspace import get_keywords
2726

2827
# stdlib imports
2928

0 commit comments

Comments
 (0)