add mini grand

This commit is contained in:
interfisch 2022-01-26 20:32:48 +01:00
parent 2029b26905
commit 64f84ea50d
26 changed files with 30 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

32
Pi/s.py
View File

@ -4,8 +4,8 @@ import serial
import pygame import pygame
serialmode=True #True for Raspberry Pi with Arduino connected, False for testing with keyboard serialmode=True #True for Raspberry Pi with Arduino connected, False for testing with keyboard
serialport="/dev/ttyS0" # Raspberry Pi #serialport="/dev/ttyS0" # Raspberry Pi
#serialport="/dev/ttyUSB0" serialport="/dev/ttyUSB0"
pygame.mixer.pre_init(buffer=32) pygame.mixer.pre_init(buffer=32)
pygame.init() pygame.init()
@ -14,6 +14,8 @@ if not serialmode:
pygame.mixer.quit() pygame.mixer.quit()
pygame.mixer.init(buffer=32) pygame.mixer.init(buffer=32)
'''
# Guitar C Dur
Sound = [pygame.mixer.Sound('guitar/guitar_C3_very-long_forte_normal.wav'), Sound = [pygame.mixer.Sound('guitar/guitar_C3_very-long_forte_normal.wav'),
pygame.mixer.Sound('guitar/guitar_D3_very-long_forte_normal.wav'), pygame.mixer.Sound('guitar/guitar_D3_very-long_forte_normal.wav'),
pygame.mixer.Sound('guitar/guitar_E3_very-long_forte_normal.wav'), pygame.mixer.Sound('guitar/guitar_E3_very-long_forte_normal.wav'),
@ -23,6 +25,32 @@ Sound = [pygame.mixer.Sound('guitar/guitar_C3_very-long_forte_normal.wav'),
pygame.mixer.Sound('guitar/guitar_B3_very-long_forte_normal.wav'), pygame.mixer.Sound('guitar/guitar_B3_very-long_forte_normal.wav'),
pygame.mixer.Sound('guitar/guitar_C4_very-long_forte_normal.wav') pygame.mixer.Sound('guitar/guitar_C4_very-long_forte_normal.wav')
] ]
'''
# Mini Grand C Dur
Sound = [pygame.mixer.Sound('mini_grand/mini_grand-001.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-003.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-005.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-006.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-008.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-010.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-012.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-013.wav')
]
'''
# Wellerman
Sound = [pygame.mixer.Sound('mini_grand/mini_grand-001.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-003.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-004.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-006.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-008.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-009.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-011.wav'),
pygame.mixer.Sound('mini_grand/mini_grand-013.wav')
]
'''
Soundplaying=[False,False,False,False,False,False,False,False] Soundplaying=[False,False,False,False,False,False,False,False]