back to list

Fun with sed I

🔗Gene Ward Smith <gwsmith@svpal.org>

5/18/2005 3:40:06 AM

I made it! I was having modem troubles, so I decided to try the
infamous AOL cure--join AOL and have their setup program fix the
prolem. I hope this means I can go back to not using the darn thing.

Here is a sed file which you can test out. First, take a garden
variety, no pitch bends midi file. Have Scala convert it to a seq file
with the "write note names" option set. Then run the statements below
as a sed command file. Take the new Scala seq file thus created and
have Scala convert it to a midi file. If necessary, use MTS, and then
render the resulting file using Timidity. Enjoy!

If there is interest in this, parts II, etc will follow eventually.

1,$s/Bbb\./f@>\./
1,$s/Fb\./d@\./
1,$s/Cb\./b@<\./
1,$s/Gb\./g@)>\./

1,$s/Db\./a@#\./
1,$s/Ab\./g@\./
1,$s/Eb\./e@<\./
1,$s/Bb\./c@)>\./

1,$s/F\./d@#\./
1,$s/C\./c@\./
1,$s/G\./a@<\./
1,$s/D\./f@)>\./

1,$s/A\./g@#\./
1,$s/E\./f@\./
1,$s/B\./d@<\./
1,$s/F#\./b@(\./

1,$s/C#\./c@#\./
1,$s/G#\./b@=\./
1,$s/D#\./g@<\./
1,$s/A#\./e@(\./

1,$s/E#\./f@#\./
1,$s/B#\./e@=\./
1,$s/Fx\./c@<\./
1,$s/Cx\./a@(\./

1,$s/a@/A/
1,$s/b@/B/
1,$s/c@/C/
1,$s/d@/D/
1,$s/e@/E/
1,$s/f@/F/
1,$s/g@/G/

1,$s/=/b/
1,$s/</\\/
1,$s/>/\//

1,$s/0 notation E12/0 notation E53/
6a0 equal 53

🔗Gene Ward Smith <gwsmith@svpal.org>

5/18/2005 3:52:34 AM

--- In tuning@yahoogroups.com, "Gene Ward Smith" <gwsmith@s...> wrote:

> 1,$s/0 notation E12/0 notation E53/

Yahoo in their wisdom removed the spaces, so this line as it appears
will not work. Take my posting and use your favorite (followup or what
have you) method for getting the spaces back. Alternatively, just do
this step by hand, changing 12 equal to 53 equal notation, and adding
the line saying tune in 53 equal.