Way to start multiple buffers at the same time

Hi, is there a way to start buffer at the same time? in my instance, I would like to use multiple different instruments at the same time, and I can’t seem to find a way to do it. I am, however, a total beginner, so is there anything I’m overlooking that would solve me problem?

A good place to start would be the “threads” and “live loop” sections of the help, 5.7 and 9.3 respectively. Those are both ways that you can have multiple instruments playing together at the same time.

This is an example of using in_thread to play a finite number of times with two sounds playing simultaneously.

  in_thread do
    8.times do
      play scale(:c4, :major).tick
      sleep 0.5
    end
  end
  
    4.times do
      sample :bd_haus
      sleep 1
    end

This is an example of using live loops to play two sounds simultaneously in an on going loop. You can also make changes on the fly in a live loop without stopping the program from running.

  live_loop :scale do
    8.times do
      play scale(:c4, :major).tick
      sleep 0.5
    end
  end
  
 live_loop :kick, sync: :scale do
      sample :bd_haus
      sleep 1
  end

In this example the kick will come in after one iteration through the scale loop. There are several way to use cue and sync which can also be found in the help section for multiple live loops.

Hope this helps.

2 Likes