Basic synth parameters
To write basic music you’ll need to specify in the synth function, such as…
Note durations dur
The length of each note creating rhythms. Try:
Parameter amp
, the “volume” of each note
Parameter oct
changing the height/octave
Combination of multiple list parameters (Patterns)
If the second list, the amp in this example, is too long, then the first list (the degree) just loops, and are matched with the remaining elements from the second list (the amplitude).
More generally, all the lists are traversed regardless of their length.
Arguments can be integers, floating points, fractions, lists, tuples, or a mix