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
))
31 ON_TOP_LUMINANCE
= 0.6
32 ON_BOTTOM_LUMINANCE
= 0.9
34 ON_COLUMN_OVERSIZING
= 2
36 font_file
= _computePath('fonts/Arial Unicode.ttf')
37 NOTES_FONT
= pygame
.font
.Font(font_file
, 50)
38 default_font_file
= _computePath('fonts/freesansbold.ttf')
39 LYRICS_FONT
= pygame
.font
.Font(default_font_file
, 80)
41 MIDI_VELOCITY_RANGE
= (64, 127)
42 MIDI_PAN_RANGE
= (32, 96)
43 MIDI_VELOCITY_WRONG_NOTE_ATTN
= 0.5
45 SONG_FILE_PATH
= _computePath('../../chansons')
48 {'name' : 'accordeon',
83 {'name' : 'violoncelle',
90 for i
in INSTRUMENTS
:
91 i
['octave'] = i
.get('octave', 0)