Skip to content

Commit d99aebb

Browse files
committed
Re-org
- Gather 3rd party sketches into their own folder. - Remove unported sketches. - Move CircleMusic and PBallDroppings out of `Demo` folder.
1 parent 7fd0c89 commit d99aebb

File tree

242 files changed

+297
-614
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

242 files changed

+297
-614
lines changed

Contributed Libraries in Python/MSAFluid/MSAFluid.pyde renamed to 3rd party/Contributed Libraries in Python/MSAFluid/MSAFluid.pyde

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,15 @@
4242
add_library('MSAFluid')
4343
from particle_system import ParticleSystem
4444

45-
FLUID_WIDTH = 120
46-
invWidth = 0
47-
invHeight = 0
48-
fluidSolver = None
49-
particleSystem = None
5045
drawFluid = True
5146
drawSparks = True
52-
imgFluid = None
53-
aspectRatio = 0
5447

5548

5649
def setup():
50+
global invWidth, invHeight, fluidSolver
51+
global particleSystem, imgFluid, aspectRatio
5752
size(784, 484, OPENGL)
53+
FLUID_WIDTH = 120
5854
invWidth = 1.0 / width
5955
invHeight = 1.0 / height
6056
aspectRatio = (width * invHeight) ** 2
@@ -94,6 +90,7 @@ def draw():
9490

9591

9692
def mousePressed():
93+
global drawFluid, drawSparks
9794
if mouseButton == LEFT:
9895
drawFluid = not drawFluid
9996
elif mouseButton == RIGHT:

Contributed Libraries in Python/Minim/Basics/SynthesizeSound/SynthesizeSound.pyde renamed to 3rd party/Contributed Libraries in Python/Minim/Basics/SynthesizeSound/SynthesizeSound.pyde

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,9 @@ def draw():
2323
# draw the waveform of the output
2424
for i in range(out.bufferSize() - 1):
2525
line(i, 50 - out.left.get(i) * 50,
26-
i + 1, 50 - out.left.get(i + 1) * 50)
27-
line(
28-
i, 150 - out.right.get(i) * 50,
29-
i + 1, 150 - out.right.get(i + 1) * 50)
26+
i + 1, 50 - out.left.get(i + 1) * 50)
27+
line(i, 150 - out.right.get(i) * 50,
28+
i + 1, 150 - out.right.get(i + 1) * 50)
3029

3130
# draw the waveform we are using in the oscillator
3231
stroke(128, 0, 0)
Binary file not shown.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
add_library('minim')
2+
3+
minim = Minim(this)
4+
5+
def setup():
6+
size(500, 200)
7+
player = minim.loadFile("chord.wav")
8+
player.play()
9+
10+
def draw():
11+
pass

0 commit comments

Comments
 (0)