projects
/
minwii.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e6566d7
)
qq hacks.
author
pin
<pin@fe552daf-6dbe-4428-90eb-1537e0879342>
Tue, 16 Mar 2010 15:15:12 +0000
(15:15 +0000)
committer
pin
<pin@fe552daf-6dbe-4428-90eb-1537e0879342>
Tue, 16 Mar 2010 15:15:12 +0000
(15:15 +0000)
git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@95
fe552daf
-6dbe-4428-90eb-
1537e0879342
src/songs/xml2smwi.py
patch
|
blob
|
history
diff --git
a/src/songs/xml2smwi.py
b/src/songs/xml2smwi.py
index
add8024
..
136970d
100755
(executable)
--- a/
src/songs/xml2smwi.py
+++ b/
src/songs/xml2smwi.py
@@
-49,11
+49,16
@@
def main() :
lyrics.append(note.lyrics[verseIndex].syllabus())
#scale = [55, 57, 59, 60, 62, 64, 65, 67, 69, 71, 72]
lyrics.append(note.lyrics[verseIndex].syllabus())
#scale = [55, 57, 59, 60, 62, 64, 65, 67, 69, 71, 72]
- #scale = [n.midi for n in part.distinctNotes]
+ print [n.midi for n in part.distinctNotes]
+ for n in part.distinctNotes :
+ print n.midi, n.nom
+
# houlala, c'est codé en dur !!!
# houlala, c'est codé en dur !!!
- scale = [65, 67, 69, 71, 72, 74, 76, 77, 79, 81, 83]
- quarterNoteLength = 500
+ # scale = [65, 67, 69, 71, 72, 74, 76, 77, 79, 81, 83] (étoile des neiges)
+ # quarterNoteLength = 500
+ scale = [60, 62, 67, 69, 70, 72, 74, 75, 77, 79, 81] # (mon amant de saint-jean)
+ quarterNoteLength = 300
#---
lowerNote = part.distinctNotes[0].midi
#---
lowerNote = part.distinctNotes[0].midi
@@
-65,7
+70,7
@@
def main() :
noteLengths=noteLengths,
lyrics=lyrics,
name=args[0],
noteLengths=noteLengths,
lyrics=lyrics,
name=args[0],
- quarterNoteLength=
500
)
+ quarterNoteLength=
quarterNoteLength
)
dest = os.path.abspath(__file__).split(os.path.sep)[:-1]
dest.append('smwis')
dest.append('%s.smwi' % os.path.splitext(os.path.basename(song.name))[0])
dest = os.path.abspath(__file__).split(os.path.sep)[:-1]
dest.append('smwis')
dest.append('%s.smwi' % os.path.splitext(os.path.basename(song.name))[0])