Generating Music With SageMath And Sonic Pi - Examples - 2
1 Blues Loop
An approximate translation of the Blues Loop illustrated at mathematica.SE. (Listen to the Blues Loop)
Sync the OSC URL in Sonic Pi
And send the notes from Sage
2 Morse Code
Let's make a dynamic worksheet to generate morse code beeps. Only alpha-numeric symbols are used here, and timings are taken from a Sonic Pi example
In Sonic Pi,
live_loop :foo do use_synth :saw use_real_time t1, t2 = sync "/osc/trigger/morse" cue t1, t2 play :C6, sustain: t1*0.9, release: t2*0.1 sleep t1 end |
and in SageMath,