1 # -*- coding: utf-8 -*-
3 constantes de configuration
12 _here
= os
.path
.abspath(__file__
).split(os
.path
.sep
)[:-1]
14 def _computePath(path
) :
15 path
= path
.split('/')
17 path
= os
.path
.abspath(os
.path
.sep
.join(path
))
29 ON_TOP_LUMINANCE
= 0.6
30 ON_BOTTOM_LUMINANCE
= 0.9
32 ON_COLUMN_OVERSIZING
= 2
34 font_file
= _computePath('fonts/Arial Unicode.ttf')
35 NOTES_FONT
= pygame
.font
.Font(font_file
, 50)
36 LYRICS_FONT
= pygame
.font
.Font(None, 80)
38 MIDI_VELOCITY_RANGE
= (64, 127)
39 MIDI_PAN_RANGE
= (32, 96)
40 MIDI_VELOCITY_WRONG_NOTE_ATTN
= 0.5
42 SONG_FILE_PATH
= _computePath('../../chansons')
45 {'name' : 'accordeon',
80 {'name' : 'violoncelle',
87 for i
in INSTRUMENTS
:
88 i
['octave'] = i
.get('octave', 0)