songleash

generate chansons en laisse
git clone https://a3nm.net/git/songleash/
Log | Files | Refs

print.sh (413B)


      1 #!/bin/bash
      2 
      3 ./printcycle.py output 0 < graph > song
      4 ./printcycle.py output 1 < graph | tr -d ',' | sed '$d' > lyrics
      5 
      6 N=$(wc -l < lyrics)
      7 echo > 3chatsrep.txt
      8 for i in `seq $(($N/2))`
      9 do
     10   cat 3chats.txt >> 3chatsrep.txt
     11 done
     12 cat lyrics | tr ' ' '\n' | grep -v '^ *$' |
     13   ./arrange.py <(grep -v '^$' 3chatsrep.txt) 120 |
     14   sed 's/Fs/Gb/g;s/As\([1-9]\)/Bb\1/g;s/Cs/Db/g;s/Ds/Eb/g' |
     15   sed 's/"Gs/"Ab/' > song.xml