Skip to content

Instantly share code, notes, and snippets.

@kyzentun
Created September 3, 2017 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kyzentun/801eae044cb17ff047cd4fd2f8f5f6bc to your computer and use it in GitHub Desktop.
Save kyzentun/801eae044cb17ff047cd4fd2f8f5f6bc to your computer and use it in GitHub Desktop.
local function permanent(mod)
mod.start= -100
mod.length= 1000000
return mod
end
local infinity_radius= 192
local pos_input= {'*', .125, 'eval_beat'}
local x_input= pos_input
local y_input= {'*', pos_input, 2}
local x_infinity_symbol= {'*', infinity_radius * 1.75, {'cos', x_input}}
local y_infinity_symbol= {'*', infinity_radius, {'sin', y_input}}
local waver= {'*', 1.5/16, {'sin', {'*', 'music_beat', .25}}}
local x_from= {'*', -1, {'cos', {'+', waver, x_input}}}
local y_from= {'*', -1, {'sin', {'+', waver, y_input}}}
local mods= {
permanent{column= 'all', target= 'column_pos_x', sum_type= 'replace', 0},
permanent{column= 'all', target= 'reverse_offset', sum_type= 'replace', 0},
permanent{column= 'all', target= 'y_offset_vec_y', sum_type= 'replace', 0},
permanent{column= 'all', target= 'note_pos_x', sum_type= 'replace', x_infinity_symbol},
permanent{column= 'all', target= 'note_pos_y', sum_type= 'replace', y_infinity_symbol},
permanent{column= 'all', target= 'note_pos_x', {'*', 'y_offset', x_from}},
permanent{column= 'all', target= 'note_pos_y', {'*', 'y_offset', y_from}},
}
return mods
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment