Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save patterns add pan #6

Merged
merged 2 commits into from Nov 10, 2019
Merged

Save patterns add pan #6

merged 2 commits into from Nov 10, 2019

Conversation

@catfact
Copy link
Contributor

@catfact catfact commented Nov 10, 2019

added pattern saving by the caveman method of breaking out all pattern data as parameters.

also added separate pan parameters for engine and softcut

emb added 2 commits Nov 10, 2019
- added pattern saving by breaking out length/start/data as parameters for each pattern
- add pan parameter to engine
- add pan, delay_pan parameters to script, halfsecond
@tehn tehn merged commit d3761c4 into tehn:master Nov 10, 2019
local midi_out_device
local midi_out_channel

local scale_names = {}
notes = {}
local notes = {}
local active_notes = {}

local edit_ch = 1
local edit_pos = 1

snd_sel = 1

This comment has been minimized.

@GoneCaving

GoneCaving Nov 11, 2019
Contributor

Should this also be local?

This comment has been minimized.

@catfact

catfact Nov 12, 2019
Author Contributor

actually, with recent changes to reset global enviroment between scripts (monome/norns#929), better practice would be to make none of these top-level variables local! (they will be nuked when the next script is launched, and keeping them global makes them accessible from maiden REPL.) so, my bad.

i think all the "common" patches need a good cleanup to bring in line with current recommended best practices.

(e.g. in this script, the declaration of control specs is probably redundant.)

@catfact catfact deleted the catfact:save-patterns-add-pan branch Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants