00d0b89b6123db76bbcdb5ba7042fde28831cf39
[minwii.git] / src / app / config.py
1 # -*- coding: utf-8 -*-
2 """
3 constantes de configuration
4
5 $Id$
6 $URL$
7 """
8
9 import pygame
10 import os.path
11 pygame.font.init()
12
13
14 # playingscreen
15 FRAMERATE = 50
16 BORDER = 0 # 5px
17 FIRST_HUE = 0.6
18 OFF_LUMINANCE = 0.2
19 OFF_SATURATION = 1
20 ON_TOP_LUMINANCE = 0.6
21 ON_BOTTOM_LUMINANCE = 0.9
22 ON_SATURATION = 1
23 ON_COLUMN_OVERSIZING = 2
24 ON_COLUMN_ALPHA = 1
25 FONT = pygame.font.Font(None, 80)
26 FONT_COLOR = (0,0,0)
27 DEFAULT_MIDI_VELOCITY = 96
28
29 SONG_FILE_PATH = '../../chansons'
30
31 INSTRUMENTS = (
32 {'name' : 'accordeon',
33 'bank' : 0,
34 'preset' : 23
35 },
36 {'name' : 'celesta',
37 'bank' : 0,
38 'preset' : 8
39 },
40 {'name' : 'flute',
41 'bank' : 0,
42 'preset' : 74
43 },
44 {'name' : 'guitare',
45 'bank' : 0,
46 'preset' : 24
47 },
48 {'name' : 'orgue',
49 'bank' : 0,
50 'preset' : 19
51 },
52 {'name' : 'piano',
53 'bank' : 0,
54 'preset' : 0
55 },
56 {'name' : 'tuba',
57 'bank' : 0,
58 'preset' : 58
59 },
60 {'name' : 'violon',
61 'bank' : 0,
62 'preset' : 40
63 },
64 {'name' : 'violoncelle',
65 'bank' : 0,
66 'preset' : 42
67 },
68 )
69
70 # cuisine : ne pas modifier
71 _here = os.path.abspath(__file__).split(os.path.sep)[:-1]
72 SONG_FILE_PATH = SONG_FILE_PATH.split('/')
73 SONG_FILE_PATH = _here + SONG_FILE_PATH
74 SONG_FILE_PATH = os.path.abspath(os.path.sep.join(SONG_FILE_PATH))
75
76