A = “path/to/A4.wav”
B = “path/to/B4.wav”
C = “path/to/B4.wav”
How to play the above samples with play_pattern_timed
A = "path/to/A4.wav"
B = "path/to/B4.wav"
C = "path/to/B4.wav"
n1 = [sample A,sample B,sample C,sample A]
d1 = [0.5,0.5,0.5,0.5]
in_thread do
play_pattern_timed n1,d1
end
Giving error
Runtime Error: [buffer 6, line 905] - SyntaxError
Thread death!
workspace_six:7: syntax error, unexpected constant, expecting `do' or '{' or '('
n1 = [sample A,sample B,sample C,sample C...
^~
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/runtime.rb:905:in `eval'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/runtime.rb:905:in `block (2 levels) in __spider_eval'
C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/runtime.rb:1169:in `block (2 levels) in __in_thread'