info@shuvit.org 2 years ago
parent
commit
8ce4ab4ea2

+ 1
- 1
.gitignore View File

@@ -47,4 +47,4 @@ Thumbs.db
47 47
 *__pycache__/
48 48
 lib/__pycache__/
49 49
 lib/*.pyc
50
-
50
+config.txt

+ 0
- 6
config.txt View File

@@ -1,6 +0,0 @@
1
-default_song = Roland_TR-808
2
-theme = default
3
-title = default
4
-bpm = 90
5
-volume = 10
6
-song_dir = /home/pi/zpc_ct/user/songs/drum_machines/

+ 0
- 6
defender_scores.sco View File

@@ -1,6 +0,0 @@
1
-name1 = zilla
2
-name2 = robzilla
3
-name3 = zilla
4
-score1 = 1950
5
-score2 = 2050
6
-score3 = 2050

+ 1
- 37
lib/StatesDefender.py View File

@@ -142,7 +142,6 @@ class Player:
142 142
 		self.o.draw.rectangle(((self.posx - hw), (self.posy - hh), (self.posx + hw), (self.posy + hh)), outline=self.o.light_grey, fill=self.o.light_grey)
143 143
 		self.o.draw.rectangle(((self.posx - (hw/4)), (self.posy - self.height), (self.posx + (hw/4)), (self.posy + hh)), outline=self.o.light_grey, fill=self.o.light_grey)
144 144
 
145
-
146 145
 	def check_keys(self, delta):
147 146
 		if self.o.keyState[0] == 2:
148 147
 			if self.posx > 0:
@@ -153,19 +152,9 @@ class Player:
153 152
 
154 153
 		elif self.o.keyState[1] == 1 or self.o.keyState[2] == 1:
155 154
 			self.game.bullets.append(Bullet(self.o, self.game, self.posx))
156
-
157
-
158 155
 			self.o.defender_sounds[0].set_volume(self.o.volume / 16)
159 156
 			pygame.mixer.Sound.play(self.o.defender_sounds[0])
160 157
 
161
-
162
-
163
-			# if self.file != None:
164
-			# 	if vol != 0:
165
-			# 		vol = (vol / 16) * (self.volume / 16) * (self.o.volume / 16)
166
-			# 		self.mixerSound.set_volume(vol)
167
-			# 	pygame.mixer.Sound.play(self.mixerSound)  
168
-
169 158
 class Bullet:
170 159
 	def __init__(self, o, game, x):
171 160
 		self.o = o
@@ -274,13 +263,11 @@ class Explode:
274 263
 		self.o.draw.rectangle(((c4[0] - hw), (c4[1] - hh), (c4[0] + hw), (c4[1] + hh)), outline=0, fill=self.o.light_grey)		
275 264
 
276 265
 	def update(self):
277
-		#self.posy -= self.game.bullet_speed * self.game.delta
278 266
 		self.gap += self.game.explode_speed * self.game.delta
279 267
 		self.width -= self.scale_speed * self.game.delta
280 268
 		self.height -= self.scale_speed * self.game.delta
281 269
 		if self.gap > 20:
282 270
 			self.game.explodes.remove(self)
283
-			print('killing explosion ', len(self.game.explodes))
284 271
 		self.draw()
285 272
 
286 273
 	def check_collision(self):
@@ -331,7 +318,6 @@ class Startup(State):
331 318
 		super(Startup, self).Enter()        
332 319
 		
333 320
 	def Execute(self):
334
-		print('defender startup state')
335 321
 		self.FSM.ToTransition('toIntro')
336 322
 		
337 323
 	def Exit(self):
@@ -353,7 +339,6 @@ class Intro(State):
353 339
 		
354 340
 	def Execute(self):
355 341
 		if (time.perf_counter() - self.birth) > 2:
356
-			print('time is up')
357 342
 			self.FSM.queued_state = "toMain"
358 343
 			self.FSM.ToTransition('toBlueFade')
359 344
 
@@ -369,13 +354,11 @@ class Main(State):
369 354
 		super(Main, self).__init__(FSM)    
370 355
 		
371 356
 	def Enter(self):
372
-		print('hello defender main')
373 357
 		o = self.FSM.owner 
374 358
 		o.draw.rectangle((0, 0, o.width, o.height), outline=0, fill=o.blue)
375 359
 		o.update_display(0)
376 360
 		self.game = Game(o)
377 361
 		o.game = self.game
378
-
379 362
 		super(Main, self).Enter()        
380 363
 		
381 364
 	def Execute(self):
@@ -419,6 +402,7 @@ class BlueFade(State):
419 402
 				ns = self.FSM.queued_state 
420 403
 				self.FSM.queued_state = None
421 404
 				self.FSM.ToTransition(ns)	
405
+
422 406
 	def Exit(self):
423 407
 		pass
424 408
 
@@ -438,7 +422,6 @@ class GreyFade(State):
438 422
 		self.y = self.o.height / 2
439 423
 		self.xsize = 0.0
440 424
 		self.ysize = 0.0
441
-
442 425
 		super(GreyFade, self).Enter()        
443 426
 		
444 427
 	def Execute(self):
@@ -470,12 +453,10 @@ class GameOver(State):
470 453
 		self.FSM.stateLife = 1
471 454
 		self.o = self.FSM.owner 
472 455
 		self.birth = pygame.time.get_ticks()
473
-
474 456
 		self.o.draw.rectangle((0, 0, self.o.width, self.o.height), outline=0, fill=self.o.blue)
475 457
 		self.o.center_block("Game Over", self.o.h2, [0, 0, self.o.width, self.o.height], self.o.light_grey)
476 458
 		self.o.center_block("Score: " + str(self.o.game.score), self.o.h2, [0, 20, self.o.width, self.o.height + 20], self.o.light_grey)
477 459
 		self.o.update_display(0)
478
-
479 460
 		super(GameOver, self).Enter()        
480 461
 		
481 462
 	def Execute(self):
@@ -485,11 +466,8 @@ class GameOver(State):
485 466
 
486 467
 		if (pygame.time.get_ticks() - self.birth) > 3000:
487 468
 			if self.o.game.score > self.o.game.hs_s1:
488
-				print('this is a new high score')
489 469
 				self.FSM.queued_state = "toNewHighScore"
490 470
 			else:
491
-				print('not a new high score')				
492
-			
493 471
 				self.FSM.queued_state = "toHighScore"
494 472
 			self.FSM.ToTransition('toBlueFade')
495 473
 
@@ -556,14 +534,11 @@ class EnterText(State):
556 534
 		
557 535
 	def Enter(self):
558 536
 		o = self.FSM.owner 
559
-	
560 537
 		self.input_string = ""
561
-		
562 538
 		self.last_action = pygame.time.get_ticks()
563 539
 		self.caps = False
564 540
 		self.cur_but = 18
565 541
 		self.cur_letter = ""
566
-
567 542
 		self.skips = [7, 3, 11, 12, 13, 14, 15]
568 543
 		
569 544
 		self.lc_labels = [["p", "q", "r", "s"], ["t", "u", "v"], ["w", "x", "y", "z"], ["C", "A", "P", "S"], 
@@ -581,8 +556,6 @@ class EnterText(State):
581 556
 		for l in self.labels:
582 557
 			self.cycles.append(cycle(l))
583 558
 
584
-
585
-
586 559
 		self.draw(o)
587 560
 		o.update_display(0)
588 561
 		super(EnterText, self).Enter()        
@@ -595,7 +568,6 @@ class EnterText(State):
595 568
 				o.game.hs_name = self.input_string
596 569
 
597 570
 				if o.game.score > o.game.hs_s3:
598
-					print('new first')
599 571
 					o.game.hs_s1 = o.game.hs_s2
600 572
 					o.game.hs_n1 = o.game.hs_n2
601 573
 					o.game.hs_s2 = o.game.hs_s3
@@ -604,17 +576,14 @@ class EnterText(State):
604 576
 					o.game.hs_n3 = o.game.hs_name
605 577
 
606 578
 				elif o.game.score > o.game.hs_s2:
607
-					print('new second')
608 579
 					o.game.hs_s1 = o.game.hs_s2
609 580
 					o.game.hs_n1 = o.game.hs_n2
610 581
 					o.game.hs_s2 = o.game.score
611 582
 					o.game.hs_n2 = o.game.hs_name
612 583
 				else:
613
-					print('new third')
614 584
 					o.game.hs_s1 = o.game.score
615 585
 					o.game.hs_n1 = o.game.hs_name
616 586
 
617
-				print('new high score saving')
618 587
 				self.FSM.queued_state = 'toHighScore'		
619 588
 				self.FSM.ToTransition('toBlueFade')		
620 589
 				o.game.save_highscore()
@@ -634,19 +603,15 @@ class EnterText(State):
634 603
 						o.center_block(self.input_string + self.cur_letter, o.h2, [0, 0, o.width, y_size], o.light_grey)
635 604
 
636 605
 					if _iter == 7:
637
-						
638 606
 						self.input_string = self.input_string[:-1]
639
-						print('deleting')
640 607
 						self.last_action = 100000000
641 608
 						self.draw(o)
642 609
 						o.center_block(self.input_string, o.h2, [0, 0, o.width, y_size], o.light_grey)
643 610
 
644 611
 					elif _iter == 3:
645
-						print('caps')
646 612
 						if self.caps:
647 613
 							self.caps = False
648 614
 							self.labels = self.lc_labels
649
-
650 615
 						else:
651 616
 							self.caps = True
652 617
 							self.labels = self.uc_labels
@@ -666,7 +631,6 @@ class EnterText(State):
666 631
 			self.last_action = 100000000
667 632
 			self.reset_cycles()
668 633
 			self.draw(o)
669
-
670 634
 			o.center_block(self.input_string, o.h2, [0, 0, o.width, y_size], o.light_grey)
671 635
 			o.update_display(0)
672 636
 

+ 2
- 53
lib/menus.py View File

@@ -27,16 +27,10 @@ def draw_menu1(o):
27 27
 			o.center_block("File", o.h2, [o_x, o_y, o_x + x_size, o_y - y_size], o.light_grey)
28 28
 		if _id == 5:
29 29
 			o.center_block("Util", o.h2, [o_x, o_y, o_x + x_size, o_y - y_size], o.light_grey)
30
-		# if _id == 6:
31
-		# 	o.center_block("Bank-", o.h2, [o_x, o_y, o_x + x_size, o_y - y_size], o.light_grey)
32
-		# if _id == 7:
33
-		# 	o.center_block("Bank+", o.h2, [o_x, o_y, o_x + x_size, o_y - y_size], o.light_grey)
34 30
 		if _id == 8:
35 31
 			o.center_block("Vol-", o.h2, [o_x, o_y, o_x + x_size, o_y - y_size], o.light_grey)
36 32
 		if _id == 9:
37 33
 			o.center_block("Vol+", o.h2, [o_x, o_y, o_x + x_size, o_y - y_size], o.light_grey)
38
-		#if _id == 11:
39
-			#o.center_block("", o.h2, [o_x, o_y, o_x + x_size, o_y - y_size], o.light_grey)
40 34
 		if _id == 12:
41 35
 			o.center_block("Play", o.h2, [o_x, o_y, o_x + x_size, o_y - y_size], o.light_grey)
42 36
 		if _id == 13:
@@ -245,17 +239,12 @@ def draw_menu_saveas(o):
245 239
 
246 240
 def menu1_actions(self, o):
247 241
 	if o.keyState[8] == 4 or o.keyState[8] == 3:
248
-		#print('reset repeat from menu')
249 242
 		o.button_repeater(1,[])
250 243
 
251 244
 	if o.keyState[9] == 4 or o.keyState[9] == 3:
252
-		#print('reset repeat from menu')
253 245
 		o.button_repeater(1,[])
254 246
 
255 247
 	if o.keyState[16] == 2:
256
-		#print('key 8 ', o.keyState[8])
257
-		#o.button_repeater(0, [8,9,14,15])
258
-
259 248
 		if o.keyState[0] == 1:
260 249
 			self.FSM.ToTransition('toMain')
261 250
 		elif o.keyState[1] == 1:
@@ -303,9 +292,8 @@ def menu1_actions(self, o):
303 292
 				o.volume += 1
304 293
 				u.text_center(o, "Master Volume", str(o.volume))
305 294
 				o.update_display(0)
306
-		if o.keyState[11] == 1:
307
-			#o.save_song()
308 295
 
296
+		if o.keyState[11] == 1:
309 297
 			pass
310 298
 
311 299
 		if o.keyState[10] == 2:
@@ -345,39 +333,30 @@ def menu1_actions(self, o):
345 333
 
346 334
 def menu2_actions_sample(self, o):
347 335
 	if o.keyState[6] == 4 or o.keyState[6] == 3:
348
-		#print('reset repeat from menu')
349 336
 		o.button_repeater(1,[])
350 337
 
351 338
 	if o.keyState[7] == 4 or o.keyState[7] == 3:
352
-		#print('reset repeat from menu')
353 339
 		o.button_repeater(1,[])
354 340
 
355 341
 	if o.keyState[8] == 4 or o.keyState[8] == 3:
356
-		#print('reset repeat from menu')
357 342
 		o.button_repeater(1,[])
358 343
 
359 344
 	if o.keyState[9] == 4 or o.keyState[9] == 3:
360
-		#print('reset repeat from menu')
361 345
 		o.button_repeater(1,[])
362 346
 
363 347
 	if o.keyState[10] == 4 or o.keyState[10] == 3:
364
-		#print('reset repeat from menu')
365 348
 		o.button_repeater(1,[])
366 349
 
367 350
 	if o.keyState[11] == 4 or o.keyState[11] == 3:
368
-		#print('reset repeat from menu')
369 351
 		o.button_repeater(1,[])
370 352
 
371 353
 	if o.keyState[17] == 2:
372 354
 		if o.keyState[0] == 1:
373 355
 			if o.soundSlots[o.eSound].volume > 0:
374
-				#print('copy')
375 356
 				o.soundClipboard = [o.soundSlots[o.eSound].file, o.soundSlots[o.eSound].volume, o.soundSlots[o.eSound].pitch]
376
-				#print(o.soundClipboard)
377 357
 
378 358
 		if o.keyState[1] == 1:
379 359
 			if o.soundClipboard != []:
380
-				#print('pasting ', o.soundClipboard)				
381 360
 				o.soundSlots[o.eSound].file = o.soundClipboard[0]
382 361
 				o.soundSlots[o.eSound].volume = o.soundClipboard[1]
383 362
 				o.soundSlots[o.eSound].pitch = o.soundClipboard[2]
@@ -385,15 +364,12 @@ def menu2_actions_sample(self, o):
385 364
 				o.soundSlots[o.eSound].set_pitch()
386 365
 			
387 366
 		if o.keyState[2] == 1:
388
-			#print('delete sound ', o.eSound)
389 367
 			o.soundSlots[o.eSound].file = None
390 368
 			o.soundSlots[o.eSound].volume = 16
391 369
 			o.soundSlots[o.eSound].pitch = 0
392 370
 		if o.keyState[3] == 1:
393
-			#print('load')
394 371
 			o.FSM.FSM.ToTransition("toLoadSound")
395 372
 
396
-
397 373
 		if o.keyState[4] == 1:
398 374
 			o.prev = not o.prev
399 375
 			draw_menu2_sample(o)
@@ -468,7 +444,6 @@ def menu2_actions_sample(self, o):
468 444
 					o.update_display(0)
469 445
 				o.repeater_states[10] = pygame.time.get_ticks()
470 446
 
471
-
472 447
 		if o.keyState[10] == 1:
473 448
 			if o.soundSlots[o.eSound].pitch > -10:
474 449
 				o.soundSlots[o.eSound].pitch -= 1
@@ -498,12 +473,10 @@ def menu2_actions_sample(self, o):
498 473
 		if o.keyState[12] == 1:
499 474
 			o.odub = not o.odub
500 475
 			o.undo_buf = []
501
-			#print('odub now is ', o.odub)
502 476
 			draw_menu2_sample(o)
503 477
 			o.update_display(0)
504 478
 
505 479
 		if o.keyState[13] == 1:
506
-			#print('undo something')
507 480
 			for i in o.undo_buf:
508 481
 				o.soundSlots[i[0]].notes[i[1]][i[2]][0] = 0
509 482
 				o.soundSlots[i[0]].notes[i[1]][i[2]][1] = 0
@@ -512,7 +485,6 @@ def menu2_actions_sample(self, o):
512 485
 		if o.keyState[14] == 1:
513 486
 			o.erase = not o.erase
514 487
 			o.erase_buf = []
515
-			#print('erase now is ', o.erase)
516 488
 			if o.erase:
517 489
 				o.mute = False
518 490
 				o.mute_buf = []
@@ -522,7 +494,6 @@ def menu2_actions_sample(self, o):
522 494
 		if o.keyState[15] == 1:
523 495
 			o.mute = not o.mute
524 496
 			o.mute_buf = []
525
-			#print('mute now is ', o.mute)
526 497
 			if o.mute:
527 498
 				o.erase = False
528 499
 				o.erase_buf = []
@@ -532,17 +503,14 @@ def menu2_actions_sample(self, o):
532 503
 def menu2_actions_pattern(self, o):
533 504
 	if o.keyState[17] == 2:
534 505
 		if o.keyState[0] == 1:
535
-			#print('copy')
536 506
 			o.patternClipboard = []
537 507
 			for s in o.soundSlots:
538 508
 				notes = []
539 509
 				for i in s.notes[o.ePattern]:
540 510
 					notes.append([i[0], i[1]])
541 511
 				o.patternClipboard.append(notes)
542
-				#print('adding to clip ', notes)
543 512
 			
544 513
 		elif o.keyState[1] == 1:
545
-			#print('paste')
546 514
 			if o.patternClipboard != []:
547 515
 				p = 0
548 516
 				for s in o.soundSlots:
@@ -551,15 +519,11 @@ def menu2_actions_pattern(self, o):
551 519
 						i[0] = o.patternClipboard[p][n][0]
552 520
 						i[1] = o.patternClipboard[p][n][1]
553 521
 						n += 1
554
-					#print('added ', o.patternClipboard[p])
555 522
 					p += 1
556 523
 			else:
557 524
 				pass
558
-				#print('nothing to paste')
559 525
 			
560 526
 		elif o.keyState[2] == 1:
561
-			#print('clear')
562
-			#print(o.soundSlots[o.eSound].notes[o.ePattern])
563 527
 			for s in o.soundSlots:
564 528
 				for i in s.notes[o.ePattern]:
565 529
 					i[0] = 0
@@ -605,10 +569,8 @@ def menu2_actions_pattern(self, o):
605 569
 			if o.pat_perf:
606 570
 				o.pat_buf = o.song
607 571
 				o.song = []
608
-				print('song is now ', o.song)
609 572
 			else:
610 573
 				o.song = o.pat_buf
611
-				print('song is now ', o.song)
612 574
 
613 575
 			draw_menu2_pattern(o)
614 576
 			o.update_display(0)		
@@ -626,22 +588,15 @@ def menu2_actions_song(self, o):
626 588
 				o.pat_bank += 1
627 589
 				u.text_center(o, "Pattern Bank", str(o.pat_bank))
628 590
 				o.update_display(0)		
629
-				
630
-
631
-				
632
-
591
+			
633 592
 def menu2_actions_note(self, o):
634 593
 	if o.keyState[8] == 4 or o.keyState[8] == 3:
635
-		#print('reset repeat from menu')
636 594
 		o.button_repeater(1,[])
637 595
 
638 596
 	if o.keyState[9] == 4 or o.keyState[9] == 3:
639
-		#print('reset repeat from menu')
640 597
 		o.button_repeater(1,[])
641 598
 
642 599
 	if o.keyState[17] == 2:
643
-		
644
-
645 600
 		if o.keyState[8] == 2:
646 601
 			if (o.repeater_states[8] != None and ((pygame.time.get_ticks() - o.repeater_states[8]) > 500)):
647 602
 				if o.note_vol > 0:
@@ -677,8 +632,6 @@ def menu2_actions_note(self, o):
677 632
 				o.patternFollow = False
678 633
 			else:
679 634
 				o.patternFollow = True
680
-
681
-			#print('pattern follow is ', o.patternFollow)
682 635
 			draw_menu2_note(o)
683 636
 			o.update_display(0)			
684 637
 					
@@ -686,13 +639,10 @@ def menu2_actions_note(self, o):
686 639
 def menu2_actions_saveas(self, o):
687 640
 	if o.keyState[17] == 2:
688 641
 		if o.keyState[12] == 1:
689
-			#print('select folder')
690 642
 			self.FSM.ToTransition('toSelectFolder')	
691 643
 		elif o.keyState[14] == 1:
692
-			#print('new folder')
693 644
 			self.FSM.ToTransition('toNewDir')	
694 645
 
695
-
696 646
 def util_command(self, o, command):
697 647
 	if command == "Clock":
698 648
 		self.FSM.ToTransition('toClock')		
@@ -725,7 +675,6 @@ def file_command(self, o, command):
725 675
 			o.save_song()
726 676
 		else:
727 677
 			pass
728
-			#print('cant save over blank')
729 678
 	
730 679
 	elif command == "Open":
731 680
 		self.FSM.ToTransition('toOpenSong')	

+ 0
- 18
lib/sBall.py View File

@@ -58,10 +58,6 @@ class Ball(State):
58 58
 		if o.keyState[16] > 0 or o.keyState[17] > 0:
59 59
 			pass
60 60
 		else:			
61
-			#now = datetime.now()
62
-			#current_time = time.strftime("%-I:%M %p")
63
-
64
-
65 61
 			if self.ballx < (0 + self.ball_size):
66 62
 				self.ball_x_dir = 1
67 63
 			if self.ballx > (o.width - self.ball_size):
@@ -72,15 +68,9 @@ class Ball(State):
72 68
 			if self.bally > (o.height - self.ball_size):
73 69
 				self.ball_y_dir = -1
74 70
 
75
-			# if self.ballx > (o.width - self.ball_size) or self.ballx < (0 + self.ball_size):
76
-			# 	self.ball_x_dir *= -1
77
-			# if self.bally > (o.height - self.ball_size) or self.bally < (0 + self.ball_size):
78
-			# 	self.ball_y_dir *= -1
79
-
80 71
 			self.ballx += self.ball_speed * self.ball_x_dir
81 72
 			self.bally += self.ball_speed * self.ball_y_dir
82 73
 
83
-
84 74
 			if self.ball2x < (0 + self.ball_size):
85 75
 				self.ball2_x_dir = 1
86 76
 				self.xmult = random.uniform(.6, 1.2)
@@ -93,13 +83,6 @@ class Ball(State):
93 83
 			if self.ball2y > (o.height - self.ball_size):
94 84
 				self.ball2_y_dir = -1			
95 85
 
96
-
97
-			# if self.ball2x > (o.width - self.ball_size) or self.ball2x < (0 + self.ball_size):
98
-			# 	self.ball2_x_dir *= -1
99
-			# 	self.xmult = random.uniform(.8, 1.2)
100
-			# if self.ball2y > (o.height - self.ball_size) or self.ball2y < (0 + self.ball_size):
101
-			# 	self.ball2_y_dir *= -1
102
-
103 86
 			self.ball2x += (self.ball_speed * self.ball2_x_dir) * self.xmult
104 87
 			self.ball2y += (self.ball_speed * self.ball2_y_dir) 
105 88
 
@@ -107,7 +90,6 @@ class Ball(State):
107 90
 			
108 91
 			o.draw.ellipse((self.ballx - self.ball_size, self.bally - self.ball_size, self.ballx + self.ball_size, self.bally + self.ball_size), fill = o.light_grey, outline =o.light_grey)
109 92
 			o.draw.ellipse((self.ball2x - self.ball_size, self.ball2y - self.ball_size, self.ball2x + self.ball_size, self.ball2y + self.ball_size), fill = o.light_grey, outline =o.light_grey)
110
-			#o.center_block(current_time, o.h3, [0,0,o.width,o.height], o.pink)
111 93
 			o.update_display(0)
112 94
 		
113 95
 	def ReceiveMessage(self, message):

+ 5
- 13
lib/sCalculator.py View File

@@ -64,14 +64,12 @@ class Calculator(State):
64 64
 
65 65
 	def append_num(self, num):
66 66
 		ops = ['+', '-', '*', '/']
67
-		print('appending num ', num)
68 67
 		if num in ops:
69 68
 			if self.num1 != '':
70 69
 				self.op = num
71 70
 				self.num2 = ''
72 71
 				self.result = ''
73 72
 		elif num == '=':
74
-			print('this is that')
75 73
 			if self.num2 != '':
76 74
 				if self.result == '':
77 75
 					if self.op == '+':
@@ -109,10 +107,8 @@ class Calculator(State):
109 107
 				self.result = ''
110 108
 			if self.op == '':
111 109
 				self.num1 += num
112
-				print('---append ', num)
113 110
 			else:
114 111
 				self.num2 += num
115
-				print('---append ', num)
116 112
 
117 113
 	def check_keys(self, o):
118 114
 		_iter = 0
@@ -157,7 +153,6 @@ class Calculator(State):
157 153
 			_iter += 1
158 154
 
159 155
 	def draw_main(self, o):
160
-		print('drawing ', self.num1)
161 156
 		x_size = o.width / 4
162 157
 		y_size = o.height / 5
163 158
 		og_x = 0
@@ -167,10 +162,7 @@ class Calculator(State):
167 162
 		
168 163
 		_id = 0
169 164
 		while _id < 20:
170
-			# lab = ""
171
-			# for i in self.labels[_id]:
172
-			# 	lab += i
173
-
165
+			
174 166
 			lab = self.labels[_id]
175 167
 
176 168
 			o.draw.rectangle((o_x, o_y, o_x + x_size, o_y - y_size), outline=0, fill=o.blue)
@@ -181,11 +173,11 @@ class Calculator(State):
181 173
 			if _id % 4 == 0:
182 174
 				o_y -= y_size
183 175
 				o_x = og_x
184
-		#o.draw.rectangle((0, 0, o.width, y_size), outline=0, fill=o.blue)
176
+
185 177
 		o.draw.rectangle((0, 0, x_size * 3, y_size), outline=0, fill=o.blue)
186 178
 		o.draw.rectangle((x_size * 3, 0, o.width, y_size), outline=0, fill=o.blue)
187 179
 		o.center_block("Clear", o.h2, [x_size * 3, 0, o.width, y_size], o.light_grey)
188
-		#o.center_block('where is my fucking text', o.h2, [0, 0, o.width, y_size], o.light_grey)
180
+
189 181
 		if self.num1 != '':
190 182
 			if self.result != '':
191 183
 				o.center_block(str(self.result), o.h2, [0, 0, x_size * 3, y_size], o.light_grey)
@@ -195,9 +187,9 @@ class Calculator(State):
195 187
 				o.center_block(str(self.op), o.h2, [0, 0, x_size * 3, y_size], o.light_grey)
196 188
 			else:
197 189
 				o.center_block(str(self.num1), o.h2, [0, 0, x_size * 3, y_size], o.light_grey)
198
-			print('fucking do something')
190
+
199 191
 		else:
200
-			print('num1 is empty')
192
+			pass
201 193
 		o.update_display(0)
202 194
 
203 195
 	def ReceiveMessage(self, message):

+ 1
- 9
lib/sDefender.py View File

@@ -20,10 +20,8 @@ class Defender(State):
20 20
 		super(Defender, self).__init__(FSM)    
21 21
 		
22 22
 	def Enter(self):
23
-		o = self.FSM.owner 
24
-		
23
+		o = self.FSM.owner 		
25 24
 		self.gameFSM = FSM.DefenderFSM(o)
26
-
27 25
 		super(Defender, self).Enter()        
28 26
 		
29 27
 	def Execute(self):
@@ -33,15 +31,9 @@ class Defender(State):
33 31
 			m.draw_menu1(o)
34 32
 			o.update_display(0)
35 33
 		elif o.keyState[16] == 4:
36
-			#u.draw_header(o)
37
-			#self.draw_footer(o)
38
-			#self.draw_main(o)
39
-			#o.update_display(0)		
40 34
 			pass
41 35
 
42 36
 		if o.keyState[16] > 0 or o.keyState[17] > 0:
43
-
44
-		#if o.keyState[16] > 0:
45 37
 			pass
46 38
 		else:
47 39
 			self.gameFSM.Execute()

+ 0
- 5
lib/sEnterText.py View File

@@ -99,11 +99,6 @@ class EnterText(State):
99 99
 			u.draw_header(o)
100 100
 			self.draw(o)
101 101
 			o.update_display(0)
102
-
103
-		# if o.keyState[0] == 1 or o.keyState[0] == 3 or o.keyState[1] == 1 or o.keyState[1] == 3 or o.keyState[2] == 1 or o.keyState[2] == 3 or o.keyState[3] == 1 or o.keyState[3] == 3:
104
-		# 	u.draw_header(o)
105
-		# 	self.draw(o)
106
-		# 	o.update_display(0)	
107 102
 			
108 103
 		if o.keyState[16] > 0 or o.keyState[17] > 0:
109 104
 			pass

+ 1
- 5
lib/sMain.py View File

@@ -33,7 +33,6 @@ class Main(State):
33 33
 			u.draw_header(o)
34 34
 			self.draw_square()
35 35
 			u.text_box1(o, "Pat", str(o.curPattern))
36
-			#u.text_box1(o, "Vol", str(o.soundSlots[o.eSound].volume))
37 36
 			u.text_box2(o, "BPM", str(o.bpm))
38 37
 			u.text_box4(o, "Bank", str(o.note_bank))
39 38
 			u.text_box3(o, "Pitch", str(o.soundSlots[o.eSound].pitch))
@@ -60,7 +59,6 @@ class Main(State):
60 59
 		elif o.keyState[16] == 4:
61 60
 			u.draw_header(o)
62 61
 			self.draw_square()
63
-			#u.text_box1(o, "Vol", str(o.soundSlots[o.eSound].volume))
64 62
 			u.text_box1(o, "Pat", str(o.curPattern))
65 63
 			u.text_box2(o, "BPM", str(o.bpm))
66 64
 			u.text_box4(o, "Bank", str(o.note_bank))
@@ -74,7 +72,6 @@ class Main(State):
74 72
 		elif o.keyState[17] == 4:
75 73
 			u.draw_header(o)
76 74
 			self.draw_square()
77
-			#u.text_box1(o, "Vol", str(o.soundSlots[o.eSound].volume))
78 75
 			u.text_box1(o, "Pat", str(o.curPattern))
79 76
 			u.text_box2(o, "BPM", str(o.bpm))
80 77
 			u.text_box4(o, "Bank", str(o.note_bank))
@@ -127,11 +124,11 @@ class Main(State):
127 124
 			u.draw_header(o)            
128 125
 			self.draw_square()   
129 126
 			u.text_box1(o, "Pat", str(o.curPattern))
130
-			#u.text_box1(o, "SVol", str(o.soundSlots[o.eSound].volume))
131 127
 			u.text_box2(o, "BPM", str(o.bpm))
132 128
 			u.text_box4(o, "Bank", str(o.note_bank))
133 129
 			u.text_box3(o, "Pitch", str(o.soundSlots[o.eSound].pitch))			         
134 130
 			o.update_display(0)
131
+
135 132
 		if self.record_queue != []:
136 133
 			cur_time = pygame.time.get_ticks()
137 134
 			note_pos = (cur_time - self.record_queue) - (o.half_bpm / 2)
@@ -151,7 +148,6 @@ class Main(State):
151 148
 						o.soundSlots[o.eSound].notes[message[0]][message[1]][0] = 1
152 149
 						o.soundSlots[o.eSound].notes[message[0]][message[1]][1] = o.note_vol
153 150
 						o.undo_buf.append([o.eSound, message[0], message[1]])
154
-
155 151
 		self.record_queue = []
156 152
 
157 153
 	def draw_square(self):

+ 2
- 10
lib/sNewDir.py View File

@@ -95,14 +95,7 @@ class NewDir(State):
95 95
 		elif o.keyState[17] == 4:
96 96
 			u.draw_header(o)
97 97
 			self.draw(o)
98
-			o.update_display(0)
99
-
100
-		# if o.keyState[0] == 1 or o.keyState[0] == 3 or o.keyState[1] == 1 or o.keyState[1] == 3 or o.keyState[2] == 1 or o.keyState[2] == 3 or o.keyState[3] == 1 or o.keyState[3] == 3:
101
-		# 	u.draw_header(o)
102
-		# 	self.draw(o)
103
-		# 	#self.draw_main(o)
104
-		# 	o.update_display(0)	
105
-			
98
+			o.update_display(0)			
106 99
 
107 100
 		if o.keyState[16] > 0 or o.keyState[17] > 0:
108 101
 			pass
@@ -165,8 +158,8 @@ class NewDir(State):
165 158
 		o_x = og_x
166 159
 		o_y = o.height
167 160
 		text_padding = 6
168
-		
169 161
 		_id = 0
162
+		
170 163
 		while _id < 16:
171 164
 			lab = ""
172 165
 			for i in self.labels[_id]:
@@ -174,7 +167,6 @@ class NewDir(State):
174 167
 
175 168
 			if _id == 8:
176 169
 				lab = "_12"
177
-
178 170
 			o.draw.rectangle((o_x, o_y, o_x + x_size, o_y - y_size), outline=0, fill=o.blue)
179 171
 			o.center_block(lab, o.h2, [o_x, o_y, o_x + x_size, o_y - y_size], o.light_grey)
180 172
 

+ 0
- 2
lib/sPing.py View File

@@ -45,14 +45,12 @@ class Ping(State):
45 45
 			self.draw_main(o)
46 46
 			o.update_display(0)	
47 47
 			
48
-		
49 48
 	def draw_main(self, o):
50 49
 		o.center_block(self.pinging, o.h2, [0, 0, o.width, o.height], o.light_grey)
51 50
 
52 51
 	def check_ping(self):
53 52
 		hostname = "8.8.8.8"
54 53
 		response = os.system("ping -c 1 " + hostname)
55
-		# and then check the response...
56 54
 		if response == 0:
57 55
 			pingstatus = "Network Active "
58 56
 		else:

+ 1
- 6
lib/sSelTheme.py View File

@@ -36,7 +36,7 @@ class SelTheme(State):
36 36
 			_id = self.names.index(o.mconf['theme'])
37 37
 			self.cur_el = _id
38 38
 		else:
39
-			print('nope ', o.mconf['theme'], ' - ', self.globbed)
39
+			pass
40 40
 		self.menu = self.names
41 41
 
42 42
 		if o.keyState[16] > 0 or o.keyState[17] > 0:
@@ -65,7 +65,6 @@ class SelTheme(State):
65 65
 			self.draw_footer(o)
66 66
 			self.draw_main(o)
67 67
 			o.update_display(0)	
68
-			print('draw butt')				
69 68
 
70 69
 		if o.keyState[16] > 0 or o.keyState[17] > 0:
71 70
 			pass
@@ -77,7 +76,6 @@ class SelTheme(State):
77 76
 					o.save_config()
78 77
 					o.load_config()
79 78
 					o.apply_theme()
80
-					print('cur el down is ', self.cur_el)
81 79
 
82 80
 			if o.keyState[1] == 1:
83 81
 				if self.cur_el < (len(self.menu) - 1):
@@ -86,8 +84,6 @@ class SelTheme(State):
86 84
 					o.save_config()
87 85
 					o.load_config()
88 86
 					o.apply_theme()
89
-					print('cur el up is ', self.cur_el)
90
-					print('loading theme ', self.menu[self.cur_el], '-- ', o.mconf['theme'])
91 87
 
92 88
 			if o.keyState[3] == 1:
93 89
 				m.util_command(self, o, self.menu[self.cur_el])
@@ -150,7 +146,6 @@ class SelTheme(State):
150 146
 			xpos += width
151 147
 			_iter += 1
152 148
 		
153
-
154 149
 	def ReceiveMessage(self, message):
155 150
 		o = self.FSM.owner 
156 151
 		u.play_seq(o, message)

+ 3
- 49
lib/sSelectFolder.py View File

@@ -33,7 +33,6 @@ class SelectFolder(State):
33 33
 		files = u.get_files(o.song_dir, '.zzz')
34 34
 		files_trimmed = [os.path.basename(x) for x in files]
35 35
 		files_trimmed = [os.path.splitext(x)[0] for x in files_trimmed]
36
-		print('files trimmed ', files_trimmed)
37 36
 		files_trimmed.insert(0, '..')
38 37
 		self.menu = files_trimmed
39 38
 		if '_blank' in self.menu:
@@ -49,11 +48,7 @@ class SelectFolder(State):
49 48
 		super(SelectFolder, self).Enter()    
50 49
 
51 50
 	def Execute(self):
52
-
53
-		#print('doing select folder')
54 51
 		o = self.FSM.owner 
55
-		#u.draw_header(o)
56
-		#o.update_display(0)
57 52
 		m.menu1_actions(self, o)
58 53
 		if o.keyState[16] == 1:
59 54
 			m.draw_menu1(o)
@@ -74,43 +69,26 @@ class SelectFolder(State):
74 69
 			u.draw_header(o)
75 70
 			self.draw_footer(o)
76 71
 			self.draw_main(o)
77
-			o.update_display(0)	
78
-			
72
+			o.update_display(0)				
79 73
 
80 74
 		if o.keyState[16] > 0 or o.keyState[17] > 0:
81
-
82 75
 			pass
83 76
 		else:
84 77
 			u.scroll_ud(o, self)
85
-			# if o.keyState[0] == 1:
86
-			# 	if self.cur_el > 0:
87
-			# 		self.cur_el -= 1
88
-			# 		print('cur el down is ', self.cur_el)
89
-
90
-			# if o.keyState[1] == 1:
91
-			# 	if self.cur_el < (len(self.menu) - 1):
92
-			# 		self.cur_el += 1
93
-			# 		print('cur el up is ', self.cur_el)
94 78
 
95 79
 			if o.keyState[2] == 1:
96
-				print('old song dir is ', o.song_dir)
97
-				print('new song dir is ', self.menu[self.cur_el])
98 80
 				self.FSM.ToTransition('toEnterText')
99 81
 
100 82
 			if o.keyState[3] == 1:
101 83
 				if self.menu[self.cur_el] == '..':
102
-					print('move up dir')
103 84
 					if o.song_dir == o.base_song_dir:
104 85
 						pass
105 86
 					else:
106
-						print('old song dir ', o.song_dir)
107 87
 						o.song_dir = os.path.dirname(os.path.dirname(o.song_dir))
108 88
 						o.song_dir += '/'
109
-						print('new song dir ', o.song_dir)
110 89
 						files = u.get_files(o.song_dir, '.zzz')
111 90
 						files_trimmed = [os.path.basename(x) for x in files]
112 91
 						files_trimmed = [os.path.splitext(x)[0] for x in files_trimmed]
113
-						print('files trimmed ', files_trimmed)
114 92
 						files_trimmed.insert(0, '..')
115 93
 						self.menu = files_trimmed
116 94
 						if '_blank' in self.menu:
@@ -123,33 +101,24 @@ class SelectFolder(State):
123 101
 
124 102
 				elif os.path.isdir(o.song_dir + self.menu[self.cur_el]):
125 103
 					o.song_dir += self.menu[self.cur_el] + '/'
126
-					print('new song dir is ', o.song_dir)
127
-					
128 104
 					files = u.get_files(o.song_dir, '.zzz')
129 105
 					files_trimmed = [os.path.basename(x) for x in files]
130 106
 					files_trimmed = [os.path.splitext(x)[0] for x in files_trimmed]
131
-					print('files trimmed ', files_trimmed)
132 107
 					files_trimmed.insert(0, '..')
133 108
 					self.menu = files_trimmed
134 109
 					if '_blank' in self.menu:
135 110
 						self.menu.remove('_blank')
136 111
 					u.draw_header(o)
137
-					
138 112
 					self.draw_footer(o)
139 113
 					self.draw_main(o)
140 114
 					o.update_display(0)			
141
-
142 115
 				else:
143 116
 					pass
144
-					#o.mconf['default_song'] = self.menu[self.cur_el]
145
-					#o.save_config()
146
-					#o.load_song()
147 117
 
148 118
 	def draw_main(self, o):
149 119
 		al = []
150 120
 		ypos = 30
151 121
 
152
-
153 122
 		if self.cur_el > (len(self.menu) - 1):
154 123
 			self.cur_el = 0
155 124
 		if self.cur_el == 0:
@@ -159,16 +128,6 @@ class SelectFolder(State):
159 128
 					al.append(self.menu[_iter])
160 129
 				_iter += 1
161 130
 
162
-		# print('cur el ', self.cur_el)
163
-		# if self.cur_el > (len(self.menu) - 1):
164
-		# 	self.cur_el = 0
165
-		# if self.cur_el == 0:
166
-		# 	_iter = 0
167
-		# 	while _iter < 4:
168
-		# 		if _iter < (len(self.menu)):
169
-		# 			al.append(self.menu[_iter])
170
-				
171
-		#		_iter += 1
172 131
 		elif self.cur_el == 1:
173 132
 			al.append(self.menu[self.cur_el - 1])
174 133
 			al.append(self.menu[self.cur_el])
@@ -193,7 +152,6 @@ class SelectFolder(State):
193 152
 		for i in al:
194 153
 			
195 154
 			if i == self.menu[self.cur_el]:
196
-			#if _iter == self.cur_el:
197 155
 				if os.path.isdir(o.song_dir + i):
198 156
 					i += "/"
199 157
 				o.draw.rectangle((0, ypos, o.width, ypos + 20), outline=0, fill=o.light_grey)
@@ -220,17 +178,13 @@ class SelectFolder(State):
220 178
 				o.draw.rectangle((xpos, yposa, xpos + width, yposb), outline=0, fill=o.light_grey)
221 179
 				o.center_block(opts[_iter], o.h2, [xpos,yposa,xpos + width,yposb], o.blue)
222 180
 			else:
223
-				o.center_block(opts[_iter], o.h2, [xpos,yposa,xpos + width,yposb], o.light_grey)
224
-			
181
+				o.center_block(opts[_iter], o.h2, [xpos,yposa,xpos + width,yposb], o.light_grey)			
225 182
 			xpos += width
226 183
 			_iter += 1
227 184
 		
228
-
229 185
 	def ReceiveMessage(self, message):
230 186
 		o = self.FSM.owner 
231 187
 		u.play_seq(o, message)
232 188
 		
233 189
 	def Exit(self):
234
-		print('why the fuck are we leaving')
235
-		self.FSM.owner.pub.unregister("beat", self)
236
-
190
+		self.FSM.owner.pub.unregister("beat", self)

+ 1
- 18
lib/sSelectPattern.py View File

@@ -80,20 +80,15 @@ class SelectPattern(State):
80 80
 					if k == 1:
81 81
 						if o.pat_perf:
82 82
 							this = o.ePattern = (o.pat_bank * 16) +_id 
83
-							#print('we should play ', this)	
84 83
 							o.song = [this]
85 84
 							o.songCycle = cycle(o.song)
86 85
 							o.songStart = this
87 86
 							if not o.playing:
88
-								
89
-								
90 87
 								o.start_playback()
91 88
 								u.play_seq(o, [o.curPattern, 0])
92 89
 						o.ePattern = (o.pat_bank * 16) +_id 
93
-
94 90
 						u.draw_header(o)
95 91
 						self.draw_square()
96
-						
97 92
 						u.text_box1(o, "Pat", str(o.ePattern))
98 93
 						u.text_box4(o, "Bank", str(o.pat_bank))
99 94
 						o.update_display(0)
@@ -113,17 +108,10 @@ class SelectPattern(State):
113 108
 				u.text_box1(o, "Pat", str(o.ePattern))
114 109
 				u.text_box4(o, "Bank", str(o.pat_bank))
115 110
 				o.update_display(0)
116
-			# if o.pat_odub:
117
-			# 	print('add to record queue ', o.song[0])
118
-			# else:
119
-			# 	print('not recording')
120
-		#print(message)
121 111
 		if o.pat_odub:
122 112
 			if message[1] == 0:
123 113
 				if len(o.song) > 0:
124
-					#print('adding to rec', o.song[0])
125 114
 					o.song_in.append(o.song[0])
126
-					#print('adding to song_in ', o.song_in)
127 115
 
128 116
 	def draw_square(self):
129 117
 		o = self.FSM.owner 
@@ -166,13 +154,8 @@ class SelectPattern(State):
166 154
 	def Exit(self):
167 155
 		o = self.FSM.owner 
168 156
 		o.pub.unregister("beat", self)
169
-		# if len(o.song) < 1 and len(o.pat_buf) > 0:
170
-		# 	o.song = o.pat_buf
171
-		# 	o.pat_buf = []
172 157
 		o.pat_perf = False
173
-		
174 158
 		o.song = o.pat_buf
175 159
 		o.pat_buf = []
176 160
 		o.songCycle = cycle(o.song)
177
-		o.songStart = o.song[0]
178
-		#print('song is ', o.song)
161
+		o.songStart = o.song[0]

+ 0
- 1
lib/sShutdown.py View File

@@ -28,7 +28,6 @@ class Shutdown(State):
28 28
 		o.draw.rectangle((0, 0, o.width, o.height), outline=0, fill=o.blue)			
29 29
 		o.center_block("shutting down", o.h2, [0, 0, o.width,o.height - 20], o.light_grey)
30 30
 		o.center_block("(unplug in 20s)", o.h2, [0, 10, o.width,o.height+10], o.light_grey)
31
-		#o.center_block("thank you for playing", o.h2, [0, 30, o.width,o.height+30], o.light_grey)
32 31
 		o.update_display(0)
33 32
 		command = 'bash -c "sleep 5; sudo shutdown -h now"&'
34 33
 		os.system(command)

+ 1
- 3
lib/sUtil.py View File

@@ -33,7 +33,6 @@ class Util(State):
33 33
 			self.draw_footer(o)
34 34
 			self.draw_main(o)
35 35
 			o.update_display(0)
36
-
37 36
 		super(Util, self).Enter()        
38 37
 		
39 38
 	def Execute(self):
@@ -52,8 +51,7 @@ class Util(State):
52 51
 			u.draw_header(o)
53 52
 			self.draw_footer(o)
54 53
 			self.draw_main(o)
55
-			o.update_display(0)	
56
-			print('draw butt')				
54
+			o.update_display(0)					
57 55
 
58 56
 		if o.keyState[16] > 0 or o.keyState[17] > 0:
59 57
 			pass

+ 1
- 32
lib/utils.py View File

@@ -14,38 +14,28 @@ def play_seq(o, message):
14 14
 		if s.notes[message[0]][message[1]][0] == 1:
15 15
 			if o.erase:
16 16
 				if _id in o.erase_buf:
17
-					#pass
18 17
 					s.notes[message[0]][message[1]][0] = 0
19
-					print('erasing')
20
-					#o.undo_buf.append(s.notes[message[0]][message[1]][0])
21 18
 				else:
22 19
 					o.notes_on[_id] = 1
23 20
 					o.soundSlots[_id].play(s.notes[message[0]][message[1]][1])
24 21
 			elif o.mute:
25 22
 				if _id in o.mute_buf:
26
-					#pass
27
-					#s.notes[message[0]][message[1]][0] = 0
28
-					print('muting')
29
-					#o.undo_buf.append(s.notes[message[0]][message[1]][0])
23
+					pass					
30 24
 				else:
31 25
 					o.notes_on[_id] = 1
32 26
 					o.soundSlots[_id].play(s.notes[message[0]][message[1]][1])
33 27
 			else:
34
-
35 28
 				o.notes_on[_id] = 1
36 29
 				o.soundSlots[_id].play(s.notes[message[0]][message[1]][1])
37 30
 		_id += 1
38 31
 
39 32
 def erase_note(o, message, pressed):
40 33
 	_id = 0
41
-	#o.clear_notes_on()
42
-
43 34
 	for s in o.soundSlots:
44 35
 		if s.notes[message[0]][message[1]][0] == 1:
45 36
 			o.notes_on[_id] = 1
46 37
 			o.soundSlots[_id].play(s.notes[message[0]][message[1]][1])
47 38
 		_id += 1
48
-
49 39
 			
50 40
 def text_box1(o, a, b):
51 41
 	w1 = 0
@@ -88,8 +78,6 @@ def text_center(o, a, b):
88 78
 	o.center_block(a, o.h1, [w1,h1,w2,h2], o.light_grey)
89 79
 	o.center_block(b, o.h1, [w1,h1+20,w2,h2+45], o.light_grey)
90 80
 
91
-
92
-
93 81
 def breakup_song_text(song):
94 82
 	line1 = ""
95 83
 	line2 = ""
@@ -151,21 +139,6 @@ def breakup_song_text(song):
151 139
 def get_folders(path):
152 140
 	globbed = glob.glob(path + "/*/")
153 141
 	globbed.sort()
154
-
155
-
156
-		# dirs = os.listdir(o.load_sound_dir)
157
-		# dirs.sort()
158
-		# for i in dirs:
159
-		# 	if os.path.isdir(o.load_sound_dir + i):
160
-		# 		i += "/asdfasdfasf"
161
-		# 		print(i, ' is a directory')
162
-		# 	else:
163
-		# 		print(i, ' is not a directory')
164
-		# print(dirs)
165
-		# return dirs
166
-
167
-
168
-
169 142
 	return globbed
170 143
 
171 144
 def get_files(path, ext):
@@ -173,13 +146,11 @@ def get_files(path, ext):
173 146
 	out = []
174 147
 	files = os.listdir(path)
175 148
 	files.sort()
176
-	print('from utils ', files)
177 149
 	for file in files:
178 150
 	    if os.path.isdir(path + file):
179 151
 	        out.append(file)
180 152
 	    else:
181 153
 	    	pass
182
-
183 154
 	for file in files:
184 155
 	    if file.lower().endswith(ext):
185 156
 	    	if os.path.isdir(path + file):
@@ -188,14 +159,12 @@ def get_files(path, ext):
188 159
 	        	out.append(file)
189 160
 	    else:	 
190 161
 	    	pass
191
-	
192 162
 	out2 = []
193 163
 	for f in out:
194 164
 		if f[0] == '.':
195 165
 			pass
196 166
 		else:
197 167
 			out2.append(f)
198
-
199 168
 	return out2
200 169
 
201 170
 def scroll_ud(o, self):

BIN
user/sounds/drum_machines/Roland_CR-1000/.goutputstream-FH11C1 View File


Loading…
Cancel
Save