diff --git a/custom_wav/acquiring_signal.wav b/custom_wav/acquiring_signal.wav new file mode 100644 index 0000000..79cd05c Binary files /dev/null and b/custom_wav/acquiring_signal.wav differ diff --git a/world-o-techno.rb b/world-o-techno.rb index 0b4c5f1..36c9876 100755 --- a/world-o-techno.rb +++ b/world-o-techno.rb @@ -116,23 +116,32 @@ load_sample :bd_haus define :playSatelliteCount do # More satellites, more thumps, so we can hear the process of acquisition - i = 0 - print ":playSatelliteCount" - 4.times do - c = gpsSatelliteCount() - if i == 0 - sample :bd_boom, amp:10 - else - if i <= c - sample :bd_fat, amp: 6 - else - sample :bd_haus, amp: 1 - end - end - - sleep 0.5 - i = i+1 + use_synth :noise + i = 0 + print ":playSatelliteCount" + sample "~/world-o-techno/custom_wav/acquiring_signal.wav" + 16.times do + c = gpsSatelliteCount() + if i == 8 + sample "~/world-o-techno/custom_wav/acquiring_signal.wav", start: 0.6 end + if [4,6,10,12].include? i + sample "~/world-o-techno/custom_wav/acquiring_signal.wav", start: 0.6, end: 0.61, attack: 0, release: 0, sustain: 0.18 + end + if i % 4 == 0 + sample :bd_boom, amp:10 + else + if i <= c + sample :bd_fat, amp: 6 + else + sample :bd_haus, amp: 1 + + end + end + + sleep 0.5 + i = i+1 +end end