diff --git a/patches/organ/Rode_Man3Open_01.ogg b/patches/organ/Rode_Man3Open_01.ogg deleted file mode 100644 index 8410cf2..0000000 Binary files a/patches/organ/Rode_Man3Open_01.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_04.ogg b/patches/organ/Rode_Man3Open_04.ogg deleted file mode 100644 index d9fb697..0000000 Binary files a/patches/organ/Rode_Man3Open_04.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_07.ogg b/patches/organ/Rode_Man3Open_07.ogg deleted file mode 100644 index b04eb34..0000000 Binary files a/patches/organ/Rode_Man3Open_07.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_10.ogg b/patches/organ/Rode_Man3Open_10.ogg deleted file mode 100644 index aed659a..0000000 Binary files a/patches/organ/Rode_Man3Open_10.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_13.ogg b/patches/organ/Rode_Man3Open_13.ogg deleted file mode 100644 index 2d0d25e..0000000 Binary files a/patches/organ/Rode_Man3Open_13.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_16.ogg b/patches/organ/Rode_Man3Open_16.ogg deleted file mode 100644 index cf3c4ff..0000000 Binary files a/patches/organ/Rode_Man3Open_16.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_19.ogg b/patches/organ/Rode_Man3Open_19.ogg deleted file mode 100644 index 0b77bac..0000000 Binary files a/patches/organ/Rode_Man3Open_19.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_22.ogg b/patches/organ/Rode_Man3Open_22.ogg deleted file mode 100644 index 6775f90..0000000 Binary files a/patches/organ/Rode_Man3Open_22.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_25.ogg b/patches/organ/Rode_Man3Open_25.ogg deleted file mode 100644 index 73f7066..0000000 Binary files a/patches/organ/Rode_Man3Open_25.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_28.ogg b/patches/organ/Rode_Man3Open_28.ogg deleted file mode 100644 index 0b69f78..0000000 Binary files a/patches/organ/Rode_Man3Open_28.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_31.ogg b/patches/organ/Rode_Man3Open_31.ogg deleted file mode 100644 index 36ee2ea..0000000 Binary files a/patches/organ/Rode_Man3Open_31.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_34.ogg b/patches/organ/Rode_Man3Open_34.ogg deleted file mode 100644 index f4563bd..0000000 Binary files a/patches/organ/Rode_Man3Open_34.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_37.ogg b/patches/organ/Rode_Man3Open_37.ogg deleted file mode 100644 index f3d70c8..0000000 Binary files a/patches/organ/Rode_Man3Open_37.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_40.ogg b/patches/organ/Rode_Man3Open_40.ogg deleted file mode 100644 index 23b0b13..0000000 Binary files a/patches/organ/Rode_Man3Open_40.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_43.ogg b/patches/organ/Rode_Man3Open_43.ogg deleted file mode 100644 index 2adcce1..0000000 Binary files a/patches/organ/Rode_Man3Open_43.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_46.ogg b/patches/organ/Rode_Man3Open_46.ogg deleted file mode 100644 index e612495..0000000 Binary files a/patches/organ/Rode_Man3Open_46.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_49.ogg b/patches/organ/Rode_Man3Open_49.ogg deleted file mode 100644 index 5dbf160..0000000 Binary files a/patches/organ/Rode_Man3Open_49.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_52.ogg b/patches/organ/Rode_Man3Open_52.ogg deleted file mode 100644 index 3ef7ab2..0000000 Binary files a/patches/organ/Rode_Man3Open_52.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_55.ogg b/patches/organ/Rode_Man3Open_55.ogg deleted file mode 100644 index 734a90b..0000000 Binary files a/patches/organ/Rode_Man3Open_55.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_58.ogg b/patches/organ/Rode_Man3Open_58.ogg deleted file mode 100644 index 359109a..0000000 Binary files a/patches/organ/Rode_Man3Open_58.ogg and /dev/null differ diff --git a/patches/organ/Rode_Man3Open_61.ogg b/patches/organ/Rode_Man3Open_61.ogg deleted file mode 100644 index a27c552..0000000 Binary files a/patches/organ/Rode_Man3Open_61.ogg and /dev/null differ diff --git a/patches/organ/Rode_Pedal_10.ogg b/patches/organ/Rode_Pedal_10.ogg deleted file mode 100644 index 2df8358..0000000 Binary files a/patches/organ/Rode_Pedal_10.ogg and /dev/null differ diff --git a/patches/organ/Rode_Pedal_13.ogg b/patches/organ/Rode_Pedal_13.ogg deleted file mode 100644 index 1687385..0000000 Binary files a/patches/organ/Rode_Pedal_13.ogg and /dev/null differ diff --git a/patches/organ/Rode_Pedal_16.ogg b/patches/organ/Rode_Pedal_16.ogg deleted file mode 100644 index da772e7..0000000 Binary files a/patches/organ/Rode_Pedal_16.ogg and /dev/null differ diff --git a/patches/organ/Rode_Pedal_19.ogg b/patches/organ/Rode_Pedal_19.ogg deleted file mode 100644 index cc409f0..0000000 Binary files a/patches/organ/Rode_Pedal_19.ogg and /dev/null differ diff --git a/patches/organ/Rode_Pedal_22.ogg b/patches/organ/Rode_Pedal_22.ogg deleted file mode 100644 index 05ef9f0..0000000 Binary files a/patches/organ/Rode_Pedal_22.ogg and /dev/null differ diff --git a/patches/organ/Rode_Pedal_25.ogg b/patches/organ/Rode_Pedal_25.ogg deleted file mode 100644 index f117854..0000000 Binary files a/patches/organ/Rode_Pedal_25.ogg and /dev/null differ diff --git a/patches/organ/Rode_Pedal_28.ogg b/patches/organ/Rode_Pedal_28.ogg deleted file mode 100644 index 2817614..0000000 Binary files a/patches/organ/Rode_Pedal_28.ogg and /dev/null differ diff --git a/patches/organ/Rode_Pedal_31.ogg b/patches/organ/Rode_Pedal_31.ogg deleted file mode 100644 index 644b05a..0000000 Binary files a/patches/organ/Rode_Pedal_31.ogg and /dev/null differ diff --git a/patches/organ/organ.lua b/patches/organ/organ.lua deleted file mode 100644 index 9038a59..0000000 --- a/patches/organ/organ.lua +++ /dev/null @@ -1,96 +0,0 @@ -local patch = {} -patch.__index = patch - -local sampler = require('sampler') -local hexgrid = require('hexgrid') -local keyboard = require('hexpad') -local efx = require('efx') -local l = require('lume') - -local colorScheme = { - pipe = {l.rgba(0xccad00ff)}, - shade = {l.rgba(0xffffff50)}, - lip = {l.rgba(0x4e480cff)}, - background = {0,0,0}, -} - - -function patch.load() - local self = setmetatable({}, patch) - self.layout = keyboard.new(true, 0, 10, 2) - self.manOp = sampler.new({ - {path='patches/organ/Rode_Man3Open_04.ogg', note= -9}, - {path='patches/organ/Rode_Man3Open_07.ogg', note= -6}, - {path='patches/organ/Rode_Man3Open_10.ogg', note= -3}, - {path='patches/organ/Rode_Man3Open_13.ogg', note= 0}, - {path='patches/organ/Rode_Man3Open_16.ogg', note= 3}, - {path='patches/organ/Rode_Man3Open_19.ogg', note= 6}, - {path='patches/organ/Rode_Man3Open_22.ogg', note= 9}, - {path='patches/organ/Rode_Man3Open_25.ogg', note= 12}, - {path='patches/organ/Rode_Man3Open_28.ogg', note= 15}, - {path='patches/organ/Rode_Man3Open_31.ogg', note= 18}, - {path='patches/organ/Rode_Man3Open_34.ogg', note= 21}, - envelope = { attack = 0.1, decay = 0.50, sustain = 0.85, release = 0.4 }, - }) - self.pedal = sampler.new({ - {path='patches/organ/Rode_Pedal_10.ogg', note= -3}, - {path='patches/organ/Rode_Pedal_13.ogg', note= 0}, - {path='patches/organ/Rode_Pedal_16.ogg', note= 3}, - {path='patches/organ/Rode_Pedal_19.ogg', note= 6}, - {path='patches/organ/Rode_Pedal_22.ogg', note= 9}, - {path='patches/organ/Rode_Pedal_25.ogg', note= 12}, - {path='patches/organ/Rode_Pedal_28.ogg', note= 15}, - {path='patches/organ/Rode_Pedal_31.ogg', note= 18}, - looped = true, - envelope = { attack = 0.1, decay = 0.50, sustain = 0.85, release = 0.4 }, - }) - self.efx = efx.load() - self.efx:setDryVolume(0.5) - self.efx:addEffect(self.efx.tremolo) - self.efx.tremolo.volume = .7 - self.efx.reverb.decaytime = 4 - - love.graphics.setBackgroundColor(colorScheme.background) - self.layout.colorScheme.background = {l.rgba(0x000000ff)} - self.layout.colorScheme.highlight = {l.rgba(0xd3660aff)} - self.layout.colorScheme.text = {l.rgba(0x3e3c23ff)} - self.layout.colorScheme.surface = {l.rgba(0x302e19ff)} - self.layout.colorScheme.surfaceC = {l.rgba(0x2a2510ff)} - return self -end - - -function patch:process(s) - self.layout:interpret(s) - self.efx.tremolo.frequency = l.remap(s.tilt.lp[1],-.3, .3, 0, 4, 'clamp') - self.pedal.masterVolume = l.remap(s.tilt.lp[2], .6, 0, 0, .7, 'clamp') - self.manOp.masterVolume = l.remap(s.tilt.lp[2], .1, .3, 0, .9, 'clamp') - self.efx:process() - self.pedal:processTouches(s.dt, s.touches, self.efx) - self.manOp:processTouches(s.dt, s.touches, self.efx) - return s -end - - -function patch:draw(s) - self.layout:draw(s) -end - - -function patch.icon(time) - local width = 0.6 - local off = math.cos(time) * 0.05 - for x=-1.1, 1.1, width do - -- pipe - love.graphics.setColor(colorScheme.pipe) - love.graphics.rectangle('fill', x, -1, width*0.9, 2) - -- shading - love.graphics.setColor(colorScheme.shade) - love.graphics.rectangle('fill', x + width * 0.05, -1, width * 0.3 + off, 2) - -- lip - love.graphics.setColor(colorScheme.lip) - love.graphics.ellipse('fill', x + width * 0.5, 0.5 + math.sin(x + time)*0.05, width * 0.35, width * 0.15) - end -end - -return patch \ No newline at end of file