
Here is the awk 'player':
- Code: Select all
#!/bin/sh
awk '{print "beep -f " $1 " -l " $2}' $1 | sh
and the first song I made is the star wars theme:
- Code: Select all
261 1000 C
392 1000 G
349 172 F
329 172 E
294 172 D
523 1000 C5
392 500 G
349 172 F
329 172 E
294 172 D
523 1000 C5
392 500 G
349 172 F
329 172 E
349 172 F
294 1000 D
196 250 G3
196 250 G3
261 1000 C
392 1000 G
349 172 F
329 172 E
294 172 D
523 1000 C5
392 500 G
349 172 F
329 172 E
294 172 D
523 1000 C5
392 500 G
349 172 F
329 172 E
349 172 F
294 1000 D
196 250 G3
196 250 G3
220 375 A3
220 250 A3
349 250 F
329 250 E
294 250 D
261 250 C
261 172 C
294 172 D
329 172 E
294 250 D
246 500 B3
196 250 G3
196 250 G3
220 375 A3
220 250 A3
349 250 F
329 250 E
294 250 D
261 250 C
392 500 G
294 1000 D
196 250 G3
196 250 G3
220 375 A3
220 250 A3
349 250 F
329 250 E
294 250 D
261 250 C
261 172 C
294 172 D
329 172 E
294 250 D
246 500 B3
392 250 G
392 250 G
523 250 C5
466 250 Bb
415 250 Ab
392 250 G
349 250 F
311 250 Eb
294 250 D
261 250 C
Now I want to make a simple 'compiler' to write only the note names and lenghts in a symbolic way and later convert it to this format to make writing easier.
Maybe later I'll go and make the speaker tell me info via morse code xD