text

If you hate the note C you can now replace it

New in git: search and replace. Now you can replace every occurrence of the note C in Beethovens music with a rest, assuming you hate Cs. And it is just one line of python spaghetti code with lambdas! api.replace(lambda i, c: "" in i.exportLilypond(), lambda i: api._insertRest(i.duration*2)) Explanation: Go through the whole music and for every note which would export as lilypond "”, a single note c’ of any duration, delete it and replace it with a rest which is twice as long as the original notes duration. I am not sure yet how to build this into the GUI. And of course you have to type in Beethovens music into Laborejo first :)

Comments

Speak up!

Notify me when others comment on this post