0% found this document useful (0 votes)
4 views2 pages

2 Pages

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views2 pages

2 Pages

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

PIANOPIA & TIC TAC TOE

A COMPUTER SCIENCE PROJECT REPORT

Submitted By
NISHITHA M, CLASS XII

SRIMATHI SUNDARAVALLI MEMORIAL SCHOOL

CHENNAI

Page 1 of 34
SOURCE CODE:
PIANOPIA
import pygame
from pygame import mixer
import pickle as p
left_hand = ['Z', 'S', 'X', 'D', 'C', 'V', 'G', 'B', 'H', 'N', 'J','M']
right_hand = ['R', '5', 'T', '6', 'Y', 'U', '8', 'I', '9', 'O', '0', 'P']

piano_notes = ['A0', 'A0#', 'B0', 'C1', 'C1#', 'D1', 'D1#', 'E1', 'F1', 'F1#', 'G1',
'G1#', A1', 'A1#', 'B1', 'C2', 'C2#', 'D2', 'D2#', 'E2', 'F2', 'F2#', 'G2', 'G2#', 'A2',
'A2#', 'B2', 'C3', 'C3#', 'D3', 'D3#', 'E3', 'F3', 'F3#', 'G3', 'G3#', 'A3', 'A3#', 'B3',
'C4', 'C4#', 'D4', 'D4#', 'E4', 'F4', 'F4#', 'G4', 'G4#','A4', 'A4#', 'B4', 'C5', 'C5#',
'D5', 'D5#', 'E5', 'F5', 'F5#', 'G5', 'G5#', 'A5', 'A5#', 'B5', 'C6', 'C6#', 'D6', 'D6#',
'E6', 'F6', 'F6#', 'G6', 'G6#','A6', 'A6#', 'B6', 'C7', 'C7#', 'D7', 'D7#', 'E7', 'F7',
'F7#', 'G7', 'G7#','A7', 'A7#', 'B7', 'C8']

white_notes = ['A0', 'B0', 'C1', 'D1', 'E1', 'F1', 'G1',


'A1', 'B1', 'C2', 'D2', 'E2', 'F2', 'G2',
'A2', 'B2', 'C3', 'D3', 'E3', 'F3', 'G3',
'A3', 'B3', 'C4', 'D4', 'E4', 'F4', 'G4',
'A4', 'B4', 'C5', 'D5', 'E5', 'F5', 'G5',
'A5', 'B5', 'C6', 'D6', 'E6', 'F6', 'G6',
'A6', 'B6', 'C7', 'D7', 'E7', 'F7', 'G7',
'A7', 'B7', 'C8']

black_notes = ['Bb0', 'Db1', 'Eb1', 'Gb1', 'Ab1',


'Bb1', 'Db2', 'Eb2', 'Gb2', 'Ab2',
'Bb2', 'Db3', 'Eb3', 'Gb3', 'Ab3',
'Bb3', 'Db4', 'Eb4', 'Gb4', 'Ab4',
'Bb4', 'Db5', 'Eb5', 'Gb5', 'Ab5',

Page 2 of 34

You might also like