ebca47b17c5e246cbabbf3683f87f8fa3ea75953
[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 'octave' : 1
40 },
41 {'name' : 'flute',
42 'bank' : 0,
43 'preset' : 73
44 },
45 {'name' : 'guitare',
46 'bank' : 0,
47 'preset' : 24,
48 'octave' : -1
49 },
50 {'name' : 'orgue',
51 'bank' : 0,
52 'preset' : 19
53 },
54 {'name' : 'piano',
55 'bank' : 0,
56 'preset' : 0
57 },
58 {'name' : 'tuba',
59 'bank' : 0,
60 'preset' : 58,
61 'octave' : -2
62 },
63 {'name' : 'violon',
64 'bank' : 0,
65 'preset' : 40
66 },
67 {'name' : 'violoncelle',
68 'bank' : 0,
69 'preset' : 42,
70 'octave' : -2
71 },
72 )
73
74 # cuisine : ne pas modifier
75 _here = os.path.abspath(__file__).split(os.path.sep)[:-1]
76 SONG_FILE_PATH = SONG_FILE_PATH.split('/')
77 SONG_FILE_PATH = _here + SONG_FILE_PATH
78 SONG_FILE_PATH = os.path.abspath(os.path.sep.join(SONG_FILE_PATH))
79
80