Module:Check for unknown parameters and Studio Technology: Difference between pages

From EMC23 - Satellite Of Love
(Difference between pages)
Jump to navigation Jump to search
(Created page with "-- This module may be used to compare the arguments passed to the parent -- with a list of arguments, returning a specified result if an argument is -- not on the list local p...")
 
 
Line 1: Line 1:
-- This module may be used to compare the arguments passed to the parent
= Software =
-- with a list of arguments, returning a specified result if an argument is
-- not on the list
local p = {}


local function trim(s)
== DAWs ==
return s:match('^%s*(.-)%s*$')
* Ableton Live
end
* Reaper
* Ardour


local function isnotempty(s)
== Editors and Utilities ==
return s and s:match('%S')
* Audacity
end
* Sox
*


local function clean(text)
== Instruments ==
-- Return text cleaned for display and truncated if too long.
=== [[Digital Instruments]] ===
-- Strip markers are replaced with dummy text representing the original wikitext.
=== [[Analog Instruments]] ===
local pos, truncated
=== [[Virtual Instruments]] ===
local function truncate(text)
if truncated then
return ''
end
if mw.ustring.len(text) > 25 then
truncated = true
text = mw.ustring.sub(text, 1, 25) .. '...'
end
return mw.text.nowiki(text)
end
local parts = {}
for before, tag, remainder in text:gmatch('([^\127]*)\127[^\127]*%-(%l+)%-[^\127]*\127()') do
pos = remainder
table.insert(parts, truncate(before) .. '<' .. tag .. '>...</' .. tag .. '>')
end
table.insert(parts, truncate(text:sub(pos or 1)))
return table.concat(parts)
end


function p._check(args, pargs)
== Effects ==
if type(args) ~= "table" or type(pargs) ~= "table" then
* Delay
-- TODO: error handling
* Reverb
return
* Phaser
end
* Flanger


-- create the list of known args, regular expressions, and the return string
= Hardware =
local knownargs = {}
local regexps = {}
for k, v in pairs(args) do
if type(k) == 'number' then
v = trim(v)
knownargs[v] = 1
elseif k:find('^regexp[1-9][0-9]*$') then
table.insert(regexps, '^' .. v .. '$')
end
end


-- loop over the parent args, and make sure they are on the list
== [[Modular synthesizer]] ==
local ignoreblank = isnotempty(args['ignoreblank'])
* Eurorack
local showblankpos = isnotempty(args['showblankpositional'])
* AE modular
local values = {}
for k, v in pairs(pargs) do
if type(k) == 'string' and knownargs[k] == nil then
local knownflag = false
for _, regexp in ipairs(regexps) do
if mw.ustring.match(k, regexp) then
knownflag = true
break
end
end
if not knownflag and ( not ignoreblank or isnotempty(v) )  then
table.insert(values, clean(k))
end
elseif type(k) == 'number' and
knownargs[tostring(k)] == nil and
( showblankpos or isnotempty(v) )
then
table.insert(values, k .. ' = ' .. clean(v))
end
end


-- add results to the output tables
== Mixing Desks ==
local res = {}
* Allen & Heath QU-16
if #values > 0 then
* Prosunus
local unknown_text = args['unknown'] or 'Found _VALUE_, '
* SSL


if mw.getCurrentFrame():preprocess( "{{REVISIONID}}" ) == "" then
== Drum Machines ==
local preview_text = args['preview']
* Drum brute
if isnotempty(preview_text) then
* TR-8
preview_text = require('Module:If preview')._warning({preview_text})
* TR-8 S
elseif preview == nil then
* Volca Sample
preview_text = unknown_text
* Volca Sample +
end
unknown_text = preview_text
end
for _, v in pairs(values) do
-- Fix odd bug for | = which gets stripped to the empty string and
-- breaks category links
if v == '' then v = ' ' end


-- avoid error with v = 'example%2' ("invalid capture index")
== Synths ==
local r = unknown_text:gsub('_VALUE_', {_VALUE_ = v})
* Roland JP 8000
table.insert(res, r)
* Roland 303
end
* Novation Basstation Rack
end
* Korg Prophecy
* Korg Prologue
* Korg Minilogue


return table.concat(res)
== Midi Controllers ==
end
* Push
* Push 2
* Beat Step Pro
* Launch Control
* LaunchKey 25


function p.check(frame)
==Others ==
local args = frame.args
* [[MIO Midi Network Manager]]
local pargs = frame:getParent().args
* [[RTL-SDR]]
return p._check(args, pargs)
end


return p
= Acoustic Space =
 
=== [[DIY]] ===
* Bass traps
* Erourack cases
* Net Tape labels
* Electronics
* Fanzines
 
=== [[Visuals]] ===
* Graphics
* Video
* Collage
* Livestreaming
* Set Design
* Album covers
* Merch

Revision as of 17:06, 2 September 2021

Software[edit]

DAWs[edit]

  • Ableton Live
  • Reaper
  • Ardour

Editors and Utilities[edit]

  • Audacity
  • Sox

Instruments[edit]

Digital Instruments[edit]

Analog Instruments[edit]

Virtual Instruments[edit]

Effects[edit]

  • Delay
  • Reverb
  • Phaser
  • Flanger

Hardware[edit]

Modular synthesizer[edit]

  • Eurorack
  • AE modular

Mixing Desks[edit]

  • Allen & Heath QU-16
  • Prosunus
  • SSL

Drum Machines[edit]

  • Drum brute
  • TR-8
  • TR-8 S
  • Volca Sample
  • Volca Sample +

Synths[edit]

  • Roland JP 8000
  • Roland 303
  • Novation Basstation Rack
  • Korg Prophecy
  • Korg Prologue
  • Korg Minilogue

Midi Controllers[edit]

  • Push
  • Push 2
  • Beat Step Pro
  • Launch Control
  • LaunchKey 25

Others[edit]

Acoustic Space[edit]

DIY[edit]

  • Bass traps
  • Erourack cases
  • Net Tape labels
  • Electronics
  • Fanzines

Visuals[edit]

  • Graphics
  • Video
  • Collage
  • Livestreaming
  • Set Design
  • Album covers
  • Merch