X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/blobdiff_plain/46f3ffd7fdde386f41020171b5733e55a8e64a85..7e9fbde50470d21c516ca07526a99c82bec0f7cd:/src/minwii/config.py diff --git a/src/minwii/config.py b/src/minwii/config.py index f98238b..f45ef84 100755 --- a/src/minwii/config.py +++ b/src/minwii/config.py @@ -10,6 +10,7 @@ import pygame import os.path _here = os.path.abspath(__file__).split(os.path.sep)[:-1] + def _computePath(path) : path = path.split('/') path = _here + path @@ -38,7 +39,7 @@ MIDI_VELOCITY_RANGE = (64, 127) MIDI_PAN_RANGE = (32, 96) MIDI_VELOCITY_WRONG_NOTE_ATTN = 0.5 -SONG_FILE_PATH = _computePath('../../chansons') +SONG_FILE_PATH = _computePath('../chansons') INSTRUMENTS = ( {'name' : 'accordeon', @@ -84,4 +85,4 @@ INSTRUMENTS = ( ) for i in INSTRUMENTS : - i['octave'] = i.get('octave', 0) \ No newline at end of file + i['octave'] = i.get('octave', 0)