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 November 11, 2019 04:04
- 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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this also be local?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 save-patterns-add-pan branch November 12, 2019 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants