Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
lynx:abcmusic [2021/01/25 08:45] – Karri Kaksonen | lynx:abcmusic [2021/01/25 11:59] – Karri Kaksonen | ||
---|---|---|---|
Line 61: | Line 61: | ||
When we combine these three sounds we get an irritating background tune that will annoy you just as much as the Flappy Bird game. | When we combine these three sounds we get an irritating background tune that will annoy you just as much as the Flappy Bird game. | ||
+ | In Atari Lynx we use proprietary ABC codes to set the hardware for the tune. I try to describe the recognized operators. | ||
+ | |||
+ | '' | ||
+ | T10 - number of VBL interrupts that makes up a single time slot. The smaller you set this number, the faster the music plays. | ||
+ | Waveform: | ||
+ | X7 - waveform. This describes how the feedback links are connected to the polyphonic sound generator. - I don't get it either. | ||
+ | Square wave or not: | ||
+ | I0 - a letter I plus zero means a square wave, a one means a triangle wave | ||
+ | |||
+ | |||
+ | '' | ||
In ABCmusic we need to code every one of these 3 melodies to a string. You can omit white space and bar lines without repeats to save space. | In ABCmusic we need to code every one of these 3 melodies to a string. You can omit white space and bar lines without repeats to save space. | ||
- | char *melody = "G2 z2 g2 z2 | G2 z2 g2 z2 | G2 g2 G2 g2..."; | + | '' |
char *bass = "D,4 G,4 | D,4 G,4 | D,4 G,4 | D,4 G, | char *bass = "D,4 G,4 | D,4 G,4 | D,4 G,4 | D,4 G, | ||
char *percussion = "D2 G G D2 G2 | D2 G G D2 G2 | D2 G G D2 G2..." | char *percussion = "D2 G G D2 G2 | D2 G G D2 G2 | D2 G G D2 G2..." | ||
+ | '' | ||
After this we can play the combined tune by making a call to abcplay() | After this we can play the combined tune by making a call to abcplay() | ||