This shows you the differences between two versions of the page.
playing_20an_20arpeggio [2018/03/31 13:19] 127.0.0.1 external edit |
playing_20an_20arpeggio [2018/04/15 12:38] richardrussell Added syntax highlighting |
||
---|---|---|---|
Line 1: | Line 1: | ||
=====Playing an arpeggio===== | =====Playing an arpeggio===== | ||
- | //by Richard Russell, December 2014//\\ \\ If you want to play a sequence of short, rising, notes (for example from the chromatic scale) the most obvious way is something like this:\\ | + | //by Richard Russell, December 2014//\\ \\ If you want to play a sequence of short, rising, notes (for example from the chromatic scale) the most obvious way is something like this: |
+ | |||
+ | <code bb4w> | ||
ENVELOPE 1,1,0,0,0,0,0,0,126,-4,0,-1,126,0 | ENVELOPE 1,1,0,0,0,0,0,0,126,-4,0,-1,126,0 | ||
Line 9: | Line 11: | ||
pitch += 4 | pitch += 4 | ||
NEXT | NEXT | ||
- | The problem with this technique is that when each note is sounded the previous one is suddenly truncated, even though an ENVELOPE was used to give it a long release time. This happens because all the notes are played on the same **channel**, and it gives the end result a 'staccato' effect.\\ \\ To reduce this effect you can take advantage of the multiple SOUND channels available, for example the first note can be played on channel 1, the second on channel 2 etc.:\\ | + | </code> |
+ | |||
+ | The problem with this technique is that when each note is sounded the previous one is suddenly truncated, even though an ENVELOPE was used to give it a long release time. This happens because all the notes are played on the same **channel**, and it gives the end result a 'staccato' effect.\\ \\ To reduce this effect you can take advantage of the multiple SOUND channels available, for example the first note can be played on channel 1, the second on channel 2 etc.: | ||
+ | |||
+ | <code bb4w> | ||
ENVELOPE 1,1,0,0,0,0,0,0,126,-4,0,-1,126,0 | ENVELOPE 1,1,0,0,0,0,0,0,126,-4,0,-1,126,0 | ||
Line 20: | Line 26: | ||
pitch += 4 | pitch += 4 | ||
NEXT | NEXT | ||
- | Each note is played for two 'sound periods' (normally 1/20 second each) and then allowed to decay for 4 'sound periods'; this is achieved by setting the 'hold' bit (H). To ensure that the notes are correctly 'interleaved' an initial period of silence is played on channels two and three, of 2 and 4 'sound periods' respectively.\\ \\ If you want to improve the effect even further, you can switch SOUND channel 0 from its normal 'noise' functionality to become a fourth tone channel:\\ | + | </code> |
+ | |||
+ | Each note is played for two 'sound periods' (normally 1/20 second each) and then allowed to decay for 4 'sound periods'; this is achieved by setting the 'hold' bit (H). To ensure that the notes are correctly 'interleaved' an initial period of silence is played on channels two and three, of 2 and 4 'sound periods' respectively.\\ \\ If you want to improve the effect even further, you can switch SOUND channel 0 from its normal 'noise' functionality to become a fourth tone channel: | ||
+ | |||
+ | <code bb4w> | ||
*TEMPO 133 | *TEMPO 133 | ||
ENVELOPE 1,1,0,0,0,0,0,0,126,-4,0,-1,126,0 | ENVELOPE 1,1,0,0,0,0,0,0,126,-4,0,-1,126,0 | ||
Line 33: | Line 43: | ||
pitch += 4 | pitch += 4 | ||
NEXT | NEXT | ||
- | \\ (//My apologies to musical purists who may not feel that this is an arpeggio in the strict sense.//) | + | </code> |
+ | |||
+ | (//My apologies to musical purists who may not feel that this is an arpeggio in the strict sense.//) |