This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Set a couple of system settings | |
set_sched_ahead_time! 1 | |
use_debug false | |
#Class for playing a single note | |
class SingleNote | |
def initialize(sonic_pi, sample, rate, distance, options_hash) | |
@sonic_pi = sonic_pi | |
@sample = sample | |
@rate = rate |