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
obs = obslua | |
source_name = "" | |
file_name = "" | |
teletype_delay_ds = 1 | |
full_display_s = 10 | |
lines_stack = {} | |
current_delay = 0 | |
current_line = 1 |
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
#This is the file that will be run manually in the Sonic Pi editor window. | |
run_file "~/something/RunThis.rb" | |
#Expected behavior: the code in RunThis.rb should be treated as if it is in the same file/buffer as this | |
#Observed behavior: the code is loaded into a virtual buffer, and thus a different execution context and begins execution simultaneously | |
play 50 | |
sleep 1 | |
#Expected behavior: the play 60 and sleep 1 in RunThis.rb should be played and completed before reaching this play/sleep call | |
#Observed behavior: the play 50/sleep 1 and this play 60/sleep 1 are played simultaneously |