From d64f4dd592bc22831bd2272278897776023578b4 Mon Sep 17 00:00:00 2001 From: klemek Date: Mon, 16 Nov 2026 22:44:05 +0100 Subject: [PATCH] feat: add alternate forge project for computer use --- project/forge_project.alt.cfg | 304 ++++++++++++++++++++++++++++++++++ 1 file changed, 304 insertions(+) create mode 100644 project/forge_project.alt.cfg diff --git a/project/forge_project.alt.cfg b/project/forge_project.alt.cfg new file mode 100644 index 0000000..b80b22d --- /dev/null +++ b/project/forge_project.alt.cfg @@ -0,0 +1,304 @@ +################################ +## FORGE INVAR PROJECT CONFIG ## +################################ +# Your reading a FORGE configuration file, don't panic +# Everything here is designed to link elements between them +# (shaders, video devices, textures, midi inputs, etc.) +# Every number based constant will be "one-based" (1,2,3,etc.) +# To read more, go to +# https://git.klemek.fr/klemek/forge-invar + + +# ================ +# FRAGMENT SHADERS +# ================ + + +# === UNIFORMS === +# GLSL uniform names or prefixes +# Prefixed uniforms are "iVariableX" with a number + +# --- uniform float --- + +# Elapsed time +UNIFORM_TIME=iTime +# Current tempo +UNIFORM_TEMPO=iTempo +# Current total beats +UNIFORM_BEATS=iBeats + +# --- uniform int --- + +# Output frame per second +UNIFORM_FPS=iFPS +# Input X frame per second +UNIFORM_IN_FPS_PREFIX=iInputFPS +# 0/1 if demo +UNIFORM_DEMO=iDemo +# 0/1 if auto random +UNIFORM_AUTORAND=iAutoRand +# auto random cycle length +UNIFORM_AUTORANDCYCLE=iAutoRandCycle +# Current page +UNIFORM_PAGE=iPage +# Current selected shader +UNIFORM_SELECTED=iSelected +# Seed for shader X +UNIFORM_SEED_PREFIX=iSeed +# State for shader X +UNIFORM_STATE_PREFIX=iState +# Midi group X active layer number +UNIFORM_ACTIVE_PREFIX=iActive + +# --- uniform vec2 --- + +# Output resolution +UNIFORM_RESOLUTION=iResolution +# Internal textures resolution +UNIFORM_TEX_RESOLUTION=iTexResolution + +# --- uniform vec3 --- + +# Midi group X layer Y (beware of group size) +# Injected as "iGroupX_Y[Z]" +UNIFORM_GROUP_PREFIX=iGroup + +# --- uniform sampler2D --- + +# Internal texture X +UNIFORM_TEX_PREFIX=iTex + +# =========== +# TEXTURE I/O +# =========== + + +# Total number of internal textures +TEX_COUNT=6 + +# === FRAGMENT SHADERS +# Fragment shaders will be read from the CLI directory as "fragX.glsl" + +# Prefix of fragment shaders to detect +FRAG_FILE_PREFIX=frag + +# Total number of fragment shaders (excluding frag0.glsl) +FRAG_COUNT=8 + +# To which texture will the shader fragX.glsl will render to +FRAG_1_OUT=1 +FRAG_2_OUT=2 +FRAG_3_OUT=3 +FRAG_4_OUT=4 +FRAG_5_OUT=5 +FRAG_6_OUT=0 +# Which fragment shader renders to output window +FRAG_OUTPUT=7 +# Which fragment shader renders to monitor window +FRAG_MONITOR=8 + + +# ========== +# I/O Inputs +# ========== +# Each code either maps to a midi event or a key code +# 0 - 999 -> midi event +# Keyboard modifiers are encoded like this: +# 1000 -> keyboard event +# 10000 -> shift +# 100000 -> control +# 1000000 -> alt +# This means 111082 is control+alt+R + +# The recognized ALSA name of the midi device +MIDI_HW=hw:CARD=nanoKONTROL2 + +# === TYPES OF EVENTS +# FORGE needs to differentiate between fader and buttons +# In the next configurations, when an event is not configured, +# it will be skipped + +# Total number of faders +FADER_COUNT=16 +# Midi codes of faders +FADER_1=0 +FADER_2=1 +FADER_3=2 +FADER_4=3 +FADER_5=4 +FADER_6=5 +FADER_7=6 +FADER_8=7 +FADER_9=16 +FADER_10=17 +FADER_11=18 +FADER_12=19 +FADER_13=20 +FADER_14=21 +FADER_15=22 +FADER_16=23 +# Midi code for tap tempo +TAP_TEMPO=46 + +# === FRAGMENT SUBROUTINE SELECT +# You can manipulate which subroutine is sent to which fragment shader + +# Midi codes to select fragment X +SELECT_FRAG_1=32 +SELECT_FRAG_2=64 +SELECT_FRAG_3=36 +SELECT_FRAG_4=68 +SELECT_FRAG_6=52 +# Total number of pages (can be 1) +SELECT_PAGE_COUNT=3 +# Midi codes to select page X +SELECT_PAGE_1=60 +SELECT_PAGE_2=61 +SELECT_PAGE_3=62 +# Total number of items per page +SELECT_ITEM_COUNT=5 +# Midi codes to select item Y on page X +SELECT_ITEM_1=43 +SELECT_ITEM_2=44 +SELECT_ITEM_3=42 +SELECT_ITEM_4=41 +SELECT_ITEM_5=45 + +# === GROUP INPUT STATES +# Inputs will control FORGE's state as follows +# X groups of Y layers sized Z +# You can manipulate only 1 layer at a time +# Every layer of every groups will be send as uniforms +# Each active layer will be sent back to the device +# with the same codes for nice display + +# Total number of groups +GROUP_COUNT=3 + +# Total number of layers of group 1 +GROUP_1_ACTIVE_COUNT=2 +# Midi codes to change layer of group 1 +GROUP_1_ACTIVE_1=32 +GROUP_1_ACTIVE_2=64 + +# Size of group 1 +GROUP_1_COUNT=6 +# Every code of active layer manipulation of group 1 +GROUP_1_1_X=33 +GROUP_1_1_Y=49 +GROUP_1_1_Z=65 +GROUP_1_2_X=1 +GROUP_1_2_Y=17 +GROUP_1_2_Z= +GROUP_1_3_X=34 +GROUP_1_3_Y=50 +GROUP_1_3_Z=66 +GROUP_1_4_X=2 +GROUP_1_4_Y=18 +GROUP_1_4_Z= +GROUP_1_5_X=35 +GROUP_1_5_Y=51 +GROUP_1_5_Z=67 +GROUP_1_6_X=3 +GROUP_1_6_Y=19 +GROUP_1_6_Z= + +# Same for group 2 +GROUP_2_ACTIVE_COUNT=3 +GROUP_2_ACTIVE_1=36 +GROUP_2_ACTIVE_2=68 +GROUP_2_ACTIVE_3=52 +GROUP_2_COUNT=7 +GROUP_2_1_X=37 +GROUP_2_1_Y=53 +GROUP_2_1_Z=69 +GROUP_2_2_X=5 +GROUP_2_2_Y=21 +GROUP_2_2_Z= +GROUP_2_3_X=38 +GROUP_2_3_Y=54 +GROUP_2_3_Z=70 +GROUP_2_4_X=6 +GROUP_2_4_Y=22 +GROUP_2_4_Z= +GROUP_2_5_X=39 +GROUP_2_5_Y=55 +GROUP_2_5_Z=71 +GROUP_2_6_X=7 +GROUP_2_6_Y=23 +GROUP_2_6_Z= +GROUP_2_7_X=4 +GROUP_2_7_Y=20 +GROUP_2_7_Z=59 + +# Same for group 3 +GROUP_3_COUNT=2 +GROUP_3_1_X=48 +GROUP_3_1_Y=58 +GROUP_3_1_Z= +GROUP_3_2_X=0 +GROUP_3_2_Y=16 +GROUP_3_2_Z= + +# Auto-Random Ignore (ARI) prefixes +ARI_COUNT=2 +ARI_1=GROUP_3_1_Y +ARI_2=GROUP_3_2_Z + +# ===== +# OTHER +# ===== + +# === SAVE FILES +# When loading/saving from last run or using save states +SAVE_FILE_PREFIX=forge_default_save + +# === HOTKEYS +# You can change the default keycodes used on runtime + +# R on (qwerty) +KEY_RANDOMIZE=1082 +# SHIFT+R (qwerty) +KEY_RESET=11082 +# D (qwerty) +KEY_DEMO=1068 +# A (qwerty) +KEY_AUTORAND=1065 +# Left arrow +KEY_AUTORAND_DOWN=1263 +# Right arrow +KEY_AUTORAND_UP=1262 +# Down arrow +KEY_TEMPO_DOWN=1264 +# Up arrow +KEY_TEMPO_UP=1265 + +# Number of load states keys +KEY_LOAD_COUNT=10 + +# 1 to 9 then 0 keys +KEY_LOAD_1=1049 +KEY_LOAD_2=1050 +KEY_LOAD_3=1051 +KEY_LOAD_4=1052 +KEY_LOAD_5=1053 +KEY_LOAD_6=1054 +KEY_LOAD_7=1055 +KEY_LOAD_8=1056 +KEY_LOAD_9=1057 +KEY_LOAD_10=1048 + +# Number of save states keys +KEY_SAVE_COUNT=10 + +# 1 to 9 then 0 keys with shift +KEY_SAVE_1=11049 +KEY_SAVE_2=11050 +KEY_SAVE_3=11051 +KEY_SAVE_4=11052 +KEY_SAVE_5=11053 +KEY_SAVE_6=11054 +KEY_SAVE_7=11055 +KEY_SAVE_8=11056 +KEY_SAVE_9=11057 +KEY_SAVE_10=11048