Skip to content

Instantly share code, notes, and snippets.

View pmzeitler's full-sized avatar

Phoebe Zeitler pmzeitler

View GitHub Profile
@pmzeitler
pmzeitler / teletype_news_ticker.lua
Created September 15, 2018 19:21
OBS Studio Lua Script: Teletype News Ticker
obs = obslua
source_name = ""
file_name = ""
teletype_delay_ds = 1
full_display_s = 10
lines_stack = {}
current_delay = 0
current_line = 1
@pmzeitler
pmzeitler / Main.rb
Created May 26, 2018 15:44
Sonic Pi - The two notes play simultaneously instead of in sequence. Additionally functions defined in the external file are not usable in the calling file.
#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