Skip to content

softcut lua fix - #678

Merged
catfact merged 2 commits into
monome:devfrom
catfact:dev
Dec 30, 2018
Merged

softcut lua fix#678
catfact merged 2 commits into
monome:devfrom
catfact:dev

Conversation

@catfact

@catfact catfact commented Dec 30, 2018

Copy link
Copy Markdown
Collaborator

No description provided.

@catfact

catfact commented Dec 30, 2018

Copy link
Copy Markdown
Collaborator Author

i'm not sure where to put scripts now (should there be a dust/dev?)

but this now works for controlling softcut (updated halfsecond.lua)

--- softcut test
engine.name = nil

function init()
    audio.level_adc_cut(1)
    audio.level_input_cut(0, 0, 1.0)
    audio.level_input_cut(1, 0, 1.0)
    audio.level_cut(1, 1.0)
    audio.pan_cut(1, 0.0)

    audio.cut_rate(0, 1)
    audio.cut_loop_start(0, 1)
    audio.cut_loop_end(0, 1.5)
    audio.cut_loop_flag(0, 1)
    audio.cut_fade_time(0, 0.1)
    audio.cut_rec_flag(0, 1)
    audio.cut_rec_level(0, 1)
    audio.cut_pre_level(0, 0.5)
    audio.cut_position(0, 1)
    audio.cut_enable(0, 1)

    audio.cut_filter_dry(0, 0.125);
    audio.cut_filter_fc(0, 1200);
    audio.cut_filter_lp(0, 0);
    audio.cut_filter_bp(0, 1.0);
    audio.cut_filter_rq(0, 2.0);
end
  
function redraw()
    screen.clear()
    screen.move(10,50)
    screen.text("crone-halfsecond")
    screen.update()
end

function key(n,z)
end

... note that the voice / channel numbers are zero-indexed, which is probably not good

@catfact
catfact merged commit 21d5c6f into monome:dev Dec 30, 2018
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.

1 participant