implémentation du sélecteur d'instrument (début).
[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 # cuisine : ne pas modifier
32 _here = os.path.abspath(__file__).split(os.path.sep)[:-1]
33 SONG_FILE_PATH = SONG_FILE_PATH.split('/')
34 SONG_FILE_PATH = _here + SONG_FILE_PATH
35 SONG_FILE_PATH = os.path.abspath(os.path.sep.join(SONG_FILE_PATH))
36
37