1 # -*- coding: utf-8 -*-
3 constantes de configuration
12 _here
= os
.path
.abspath(__file__
).split(os
.path
.sep
)[:-1]
13 if _here
[-2].endswith('.exe') or _here
[-2].endswith('*.zip') :
16 def _computePath(path
) :
17 path
= path
.split('/')
19 path
= os
.path
.abspath(os
.path
.sep
.join(path
))
24 pygamedir
= os
.path
.split(pygame
.base
.__file
__)[0]
25 default_font_file
= os
.path
.join(pygamedir
, pygame
.font
.get_default_font())
33 ON_TOP_LUMINANCE
= 0.6
34 ON_BOTTOM_LUMINANCE
= 0.9
36 ON_COLUMN_OVERSIZING
= 2
38 font_file
= _computePath('fonts/Arial Unicode.ttf')
39 NOTES_FONT
= pygame
.font
.Font(font_file
, 50)
40 LYRICS_FONT
= pygame
.font
.Font(default_font_file
, 80)
42 MIDI_VELOCITY_RANGE
= (64, 127)
43 MIDI_PAN_RANGE
= (32, 96)
44 MIDI_VELOCITY_WRONG_NOTE_ATTN
= 0.5
46 SONG_FILE_PATH
= _computePath('../../chansons')
49 {'name' : 'accordeon',
84 {'name' : 'violoncelle',
91 for i
in INSTRUMENTS
:
92 i
['octave'] = i
.get('octave', 0)