mirror of
https://github.com/alsa-project/alsa-tools.git
synced 2025-10-31 22:25:34 -04:00
Add ld10k1 tool
Added ld10k1 tool by Peter Zubaj.
This commit is contained in:
parent
37104ebf62
commit
2df1aa7c20
98 changed files with 19970 additions and 1 deletions
18
ld10k1/setup/Makefile.am
Normal file
18
ld10k1/setup/Makefile.am
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
SUBDIRS = effects
|
||||
|
||||
EXTRA_DIST = init_audigy.in init_live.in
|
||||
bin_SCRIPTS = init_audigy init_live
|
||||
|
||||
do_subst = sed -e 's,[@]datadir[@],$(datadir),g' \
|
||||
-e 's,[@]PERL[@],$(PERL),g' \
|
||||
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
|
||||
-e 's,[@]VERSION[@],$(VERSION),g' \
|
||||
-e 's,[@]bindir[@],$(bindir),g'
|
||||
|
||||
init_live: init_live.in
|
||||
$(do_subst) $(srcdir)/init_live.in > init_live
|
||||
|
||||
init_audigy: init_audigy.in
|
||||
$(do_subst) $(srcdir)/init_audigy.in > init_audigy
|
||||
|
||||
CLEANFILES = init_live init_audigy
|
||||
18
ld10k1/setup/effects/Makefile.am
Normal file
18
ld10k1/setup/effects/Makefile.am
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
EXTRA_DIST = README emu_constants.asm \
|
||||
simple.asm vol_master.asm tone.asm \
|
||||
vol_2.asm output.asm switch_2.asm \
|
||||
sto51.asm switch_6.asm copy_2.asm \
|
||||
prologic.asm fxbus.asm
|
||||
|
||||
|
||||
dist_effects_DATA = simple.emu10k1 vol_master.emu10k1 tone.emu10k1 \
|
||||
vol_2.emu10k1 output.emu10k1 switch_2.emu10k1 \
|
||||
sto51.emu10k1 switch_6.emu10k1 copy_2.emu10k1 \
|
||||
prologic.emu10k1 fxbus.emu10k1
|
||||
|
||||
CLEANFILES = $(dist_effects_DATA)
|
||||
|
||||
SUFFIXEC = .asm .emu10k1
|
||||
|
||||
.asm.emu10k1:
|
||||
as10k1 -o $@ $<
|
||||
1
ld10k1/setup/effects/README
Normal file
1
ld10k1/setup/effects/README
Normal file
|
|
@ -0,0 +1 @@
|
|||
Most of files in this directory is taken from emu10k1 OSS driver see opensource.creative.com
|
||||
13
ld10k1/setup/effects/copy_2.asm
Normal file
13
ld10k1/setup/effects/copy_2.asm
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
;PZU
|
||||
name "2-channel copy"
|
||||
|
||||
left IO
|
||||
right IO
|
||||
|
||||
macs left,left,$40,$40
|
||||
macs right,right,$40,$40
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
151
ld10k1/setup/effects/emu_constants.asm
Normal file
151
ld10k1/setup/effects/emu_constants.asm
Normal file
|
|
@ -0,0 +1,151 @@
|
|||
;some hardware constants C_[n]<DecimalValue>, 'n' indicates negative value
|
||||
;
|
||||
;these are in 2's complement representation
|
||||
|
||||
C_0 equ $040 ;;00000000
|
||||
C_1 equ $041 ;;00000001
|
||||
C_2 equ $042 ;;00000002
|
||||
C_3 equ $043 ;;00000003
|
||||
C_4 equ $044 ;;00000004
|
||||
C_8 equ $045 ;;00000008
|
||||
C_16 equ $046 ;;00000010
|
||||
C_32 equ $047 ;;00000020
|
||||
C_256 equ $048 ;;00000100
|
||||
C_65536 equ $049 ;;00010000
|
||||
C_2^23 equ $04A ;;00080000
|
||||
C_2^28 equ $04b ;;10000000
|
||||
C_2^29 equ $04c ;;20000000 (C_max /4) +1
|
||||
C_2^30 equ $04d ;;40000000 ( C_max / 2 ) + 1 (almost half)
|
||||
C_nmax equ $04e ;;80000000 most negative number
|
||||
C_max equ $04f ;;7fffffff most positive number
|
||||
C_n1 equ $050 ;;ffffffff -1
|
||||
C_n2 equ $051 ;;fffffffe -2
|
||||
C_n2^30 equ $052 ;;c0000000 C_nmax /2
|
||||
|
||||
C_LSshift equ $55 ;;to left shift an address by using macsints
|
||||
;;for fractional addresses
|
||||
|
||||
|
||||
ZERO equ C_0;
|
||||
ONE equ C_1;
|
||||
|
||||
;;; Hardware Registers:
|
||||
|
||||
ACCUM equ $56
|
||||
CCR equ $57
|
||||
NOISE1 equ $58
|
||||
NOISE2 equ $59
|
||||
IRQ equ $5A
|
||||
DBAC equ $5B
|
||||
|
||||
and macro dest,srcA,srcB
|
||||
andxor dest,srcA,srcB,C_0
|
||||
endm
|
||||
|
||||
xor macro dest,srcA,srcB
|
||||
andxor dest,C_n1,srcA,srcB
|
||||
endm
|
||||
|
||||
not macro dest,src
|
||||
andxor dest,src,C_n1,C_n1
|
||||
endm
|
||||
|
||||
nand macro dest,srcA,srcB
|
||||
andxor dest,srcA,srcB,C_n1
|
||||
endm
|
||||
|
||||
or macro dest,srcA,srcB
|
||||
not C_0,srcA
|
||||
andxor dest,ACCUM,srcA,srcB
|
||||
endm
|
||||
|
||||
nor macro dest,srcA,scrB
|
||||
not dest,srcA
|
||||
andxor dest,srcB,dest,srcA
|
||||
not dest,dest
|
||||
endm
|
||||
|
||||
|
||||
neg macro dest,src
|
||||
macs1 dest,C_0,C_1,C_nmax
|
||||
endm
|
||||
|
||||
;;; branch on:
|
||||
;;; ==0
|
||||
beq macro count
|
||||
skip CCR,CCR,C_8,count
|
||||
endm
|
||||
;;; !=0
|
||||
bne macro count
|
||||
skip CCR,CCR,C_256,count
|
||||
endm
|
||||
;;; <0
|
||||
blt macro count
|
||||
skip CCR,CCR,C_4,count
|
||||
endm
|
||||
;;; <=0
|
||||
ble macro count
|
||||
C___1008 con $1008
|
||||
skip CCR,CCR,C___1008,count
|
||||
endm
|
||||
;;; always branch
|
||||
bra macro count
|
||||
skip C_0,C_max,C_max,count
|
||||
endm
|
||||
;;; on saturation- for now - as10k1 can not handle more than 25 macros
|
||||
;bsa macro count
|
||||
; skip CCR,CCR,C_16,count
|
||||
; endm
|
||||
bge macro count
|
||||
C___80 con $80
|
||||
skip CCR,CCR,C___80,count
|
||||
endm
|
||||
|
||||
bgt macro count
|
||||
C___180 con $180
|
||||
skip CCR,CCR,C___180,count
|
||||
endm
|
||||
|
||||
move macro dest,src
|
||||
macs dest,src,C_0,C_0
|
||||
endm
|
||||
fracmult macro dest, src1, src2
|
||||
macs dest,$40, src1, src2
|
||||
endm
|
||||
intmult macro dest, src1, src2
|
||||
macints dest, $40, src1, src2
|
||||
endm
|
||||
add macro dest, src1, src2
|
||||
acc3 dest, $40, src1, src2
|
||||
endm
|
||||
|
||||
;;; usefull for testing values before a skip
|
||||
test macro test
|
||||
macs C_0,test,C_0,C_0
|
||||
endm
|
||||
|
||||
cmp macro src1,scr2
|
||||
macints C_0,src1,C_n1,src2
|
||||
endm
|
||||
|
||||
|
||||
;----------------------------------------
|
||||
; dest = src1 - src2
|
||||
sub macro dest, src1, src2
|
||||
macints dest, src1, src2, C_n1
|
||||
endm
|
||||
|
||||
;----------------------------------------
|
||||
; LowPassFilter
|
||||
lpf macro yy, mm, xx
|
||||
interp yy, yy, mm, xx
|
||||
endm
|
||||
|
||||
;----------------------------------------
|
||||
; HighPassFilter
|
||||
hpf macro yy, ss, mm, xx
|
||||
interp ss, ss, mm, xx
|
||||
sub yy, xx, ss
|
||||
endm
|
||||
|
||||
end
|
||||
30
ld10k1/setup/effects/fxbus.asm
Normal file
30
ld10k1/setup/effects/fxbus.asm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
name "FXBUS"
|
||||
include "emu_constants.asm"
|
||||
|
||||
;; From alsa driver pci/emu10k1/emufx.c _volume_add
|
||||
|
||||
pcm_l io
|
||||
pcm_r io
|
||||
pcm_lr io
|
||||
pcm_rr io
|
||||
midi_l io
|
||||
midi_r io
|
||||
pcm_c io
|
||||
pcm_lf io
|
||||
spdif_l io
|
||||
spdif_r io
|
||||
|
||||
;; Process FX Buses
|
||||
|
||||
macints pcm_l, C_0, pcm_l, C_4
|
||||
macints pcm_r, C_0, pcm_r, C_4
|
||||
macints pcm_lr, C_0, pcm_lr, C_4
|
||||
macints pcm_rr, C_0, pcm_rr, C_4
|
||||
macints midi_l, C_0, midi_l, C_4
|
||||
macints midi_r, C_0, midi_r, C_4
|
||||
macints pcm_c, C_0, pcm_c, C_4
|
||||
macints pcm_lf, C_0, pcm_lf, C_4
|
||||
macints spdif_l, C_0, spdif_l, C_4
|
||||
macints spdif_r, C_0, spdif_r, C_4
|
||||
|
||||
end
|
||||
61
ld10k1/setup/effects/output.asm
Normal file
61
ld10k1/setup/effects/output.asm
Normal file
|
|
@ -0,0 +1,61 @@
|
|||
;PZU
|
||||
;parts are taken from passthrough-audigy
|
||||
|
||||
name "Output patch"
|
||||
include "emu_constants.asm"
|
||||
|
||||
;inputs - and analog outputs
|
||||
Left IO
|
||||
Right IO
|
||||
LeftSurr IO
|
||||
RightSurr IO
|
||||
Center IO
|
||||
LFE IO
|
||||
; these are used for digital output
|
||||
DLeft IO
|
||||
DRight IO
|
||||
DLeftSurr IO
|
||||
DRightSurr IO
|
||||
DCenter IO
|
||||
DLFE IO
|
||||
|
||||
enableL control 0,0,1
|
||||
enableR control 0,0,1
|
||||
|
||||
tmp_a dyn
|
||||
tmp_b dyn
|
||||
mask con $ffff0000
|
||||
|
||||
|
||||
;simple copy to analog output
|
||||
macs Left, Left, C_0, C_0
|
||||
macs Right, Right, C_0, C_0
|
||||
macs LeftSurr, LeftSurr, C_0, C_0
|
||||
macs RightSurr, RightSurr, C_0, C_0
|
||||
macs Center, Center, C_0, C_0
|
||||
macs LFE, LFE, C_0, C_0
|
||||
;
|
||||
macs DLeft, Left, C_0, C_0
|
||||
macs DRight, Right, C_0, C_0
|
||||
macs C_0, enableL, C_0, C_0
|
||||
beq .endL
|
||||
macs tmp_a, DLeft, C_0, C_0
|
||||
ble .next_a
|
||||
acc3 tmp_a, C_0, C_65536, tmp_a
|
||||
.next_a
|
||||
and DLeft, tmp_a, mask
|
||||
.endL
|
||||
macs C_0, enableR, C_0, C_0
|
||||
beq .end
|
||||
macs tmp_b, DRight, C_0, C_0
|
||||
ble .next_b
|
||||
acc3 tmp_b, C_0, C_65536, tmp_b
|
||||
.next_b
|
||||
and DRight, tmp_b, mask
|
||||
.end
|
||||
macs DLeftSurr, LeftSurr, C_0, C_0
|
||||
macs DRightSurr, RightSurr, C_0, C_0
|
||||
macs DCenter, Center, C_0, C_0
|
||||
macs DLFE, LFE, C_0, C_0
|
||||
|
||||
end
|
||||
115
ld10k1/setup/effects/prologic.asm
Normal file
115
ld10k1/setup/effects/prologic.asm
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
; Surround Active Matrix for Emu10k1
|
||||
; Author: Robert Mazur <robertmazur@yahoo.com>
|
||||
; Date: Jan 14, 2002
|
||||
; Version 1.1
|
||||
|
||||
; This program is free software; you can redistribute it and/or modify
|
||||
; it under the terms of the GNU General Public License as published by
|
||||
; the Free Software Foundation; either version 2 of the License, or
|
||||
; (at your option) any later version.
|
||||
|
||||
;========================================
|
||||
|
||||
name "ProLogic"
|
||||
|
||||
include "emu_constants.asm"
|
||||
|
||||
|
||||
;========================================
|
||||
|
||||
delline delay &0.02 ; 0.02 sec delay
|
||||
write twrite delline,&0 ; write at 0 sec
|
||||
read tread delline,&0.02 ; read at 0.02 sec
|
||||
|
||||
;----------------------------------------
|
||||
ml con #0.575997 ; lpf 7000Hz
|
||||
yl sta 0
|
||||
|
||||
mlp con #0.277015 ; lpf 2500Hz
|
||||
mhp con #3.7076e-2 ; hpf 300Hz
|
||||
ylp sta 0
|
||||
shp sta 0
|
||||
|
||||
;----------------------------------------
|
||||
Lt io ; Stereo Left In
|
||||
Rt io ; Stereo Right In
|
||||
L equ Lt ; Front Left Out
|
||||
R equ Rt ; Front Right Out
|
||||
Ls io
|
||||
Rs io
|
||||
C io ; Center
|
||||
|
||||
;----------------------------------------
|
||||
tmp dyn
|
||||
|
||||
ll dyn
|
||||
rr dyn
|
||||
|
||||
vcal sta #0.5
|
||||
vcar sta #0.5
|
||||
|
||||
fl sta 0
|
||||
fr sta 0
|
||||
mf con #0.013 ; ~ 100Hz
|
||||
|
||||
;----------------------------------------
|
||||
; abs(x)
|
||||
tmp_abs dyn
|
||||
abs macro ret, xx
|
||||
sub tmp_abs, C_0, xx
|
||||
limit ret, C_0, tmp_abs, xx
|
||||
endm
|
||||
|
||||
|
||||
;========================================
|
||||
; Start
|
||||
;========================================
|
||||
|
||||
;; Servo
|
||||
|
||||
fracmult ll, vcal, Lt ; ll = vcal * Lt
|
||||
abs tmp, ll ; tmp = abs(ll)
|
||||
lpf fl, mf, tmp ; fl = LowPass((n)Hz, tmp);
|
||||
|
||||
fracmult rr, vcar, Rt ; rr = vcar * Rt
|
||||
abs tmp, rr ; tmp = abs(rr)
|
||||
lpf fr, mf, tmp ; fr = LowPass((n)Hz, tmp);
|
||||
|
||||
intmult ll, C_2, ll ; vca0 = 0.5 so we must multiply 'll' and 'rr' by 2
|
||||
intmult rr, C_2, rr
|
||||
|
||||
sub tmp, fr, fl ; serv = fr - fl
|
||||
|
||||
macints vcal, C_2^30, C_2, tmp ;vcal = vca0 + 2*serv
|
||||
macints vcar, C_2^30, C_n2, tmp ;vcar = vca0 - 2*serv
|
||||
|
||||
;; Suround
|
||||
|
||||
sub tmp, ll, rr ; delay.in = L - R
|
||||
|
||||
lpf yl, ml, tmp ; yl = LowPass(7kHz, delay.out) = rear
|
||||
|
||||
; macs L, Lt, vcar, yl ; L = Lt - vcar * S Remove Surround from front speakers
|
||||
; macs1 R, Rt, vcal, yl ; R = Rt + vcal * S
|
||||
|
||||
move write, yl ; delay surround
|
||||
|
||||
fracmult tmp, vcar, read ; Ls = 2 * vcar * rear ( 2* becouse vca0 = 0.5)
|
||||
intmult Ls,C_2,tmp
|
||||
fracmult tmp, vcal, read ; Rs = 2 * vcal * rear
|
||||
intmult Rs,C_2,tmp
|
||||
|
||||
;; Center
|
||||
|
||||
add tmp, ll, rr ; tmp = L + R
|
||||
|
||||
hpf tmp, shp, mhp, tmp ; tmp = HighPass(300Hz, tmp)
|
||||
lpf ylp, mlp, tmp ; ylp = LowPass(2.5kHz, tmp) = center
|
||||
|
||||
move C, ylp ; Center
|
||||
|
||||
sub R, Rt, read ; R = R - rear
|
||||
sub L, Lt, read ; L = L - rear
|
||||
|
||||
end
|
||||
;========================================
|
||||
39
ld10k1/setup/effects/simple.asm
Normal file
39
ld10k1/setup/effects/simple.asm
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
name "Simple 5.1 volume"
|
||||
include "emu_constants.asm"
|
||||
|
||||
inl io
|
||||
outl equ inl
|
||||
inr io
|
||||
outr equ inr
|
||||
inrl io
|
||||
outrl equ inrl
|
||||
inrr io
|
||||
outrr equ inrr
|
||||
inc io
|
||||
outc equ inc
|
||||
inlfe io
|
||||
outlfe equ inlfe
|
||||
|
||||
Left control 0,0,100
|
||||
Right control 0,0,100
|
||||
LeftSurr control 0,0,100
|
||||
RightSurr control 0,0,100
|
||||
Center control 0,0,100
|
||||
LFE control 0,0,100
|
||||
|
||||
macs outl,C_0, Left, inl
|
||||
macs outr,C_0, Right, inr
|
||||
macs outc,C_0, Center, inc
|
||||
macs outrl,C_0, LeftSurr, inrl
|
||||
macs outrr,C_0, RightSurr, inrr
|
||||
macs outlfe,C_0, LFE, inlfe
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
60
ld10k1/setup/effects/sto51.asm
Normal file
60
ld10k1/setup/effects/sto51.asm
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
;PZU
|
||||
name "Simple 5.1 for Wave"
|
||||
include "emu_constants.asm"
|
||||
|
||||
inl io
|
||||
outl equ inl
|
||||
inr io
|
||||
outr equ inr
|
||||
inrl io
|
||||
outrl equ inrl
|
||||
inrr io
|
||||
outrr equ inrr
|
||||
inc io
|
||||
outc equ inc
|
||||
inlfe io
|
||||
outlfe equ inlfe
|
||||
|
||||
Left control 0,0,100
|
||||
Right control 0,0,100
|
||||
LeftSurr control 0,0,100
|
||||
RightSurr control 0,0,100
|
||||
Center control 0,0,100
|
||||
LFE control 0,0,100
|
||||
|
||||
tmp dyn
|
||||
c40 con $40000000
|
||||
|
||||
|
||||
tmpl dyn
|
||||
tmpr dyn
|
||||
|
||||
;5.1 playback
|
||||
macs tmpl, inl, C_0, C_0
|
||||
macs tmpr, inr, C_0, C_0
|
||||
|
||||
; macs outl, inl.o, Left, tmpl
|
||||
; macs outr, inr.o, Right, tmpr
|
||||
; macs outrl, inrl.o, LeftSurr, tmpl
|
||||
; macs outrr, inrr.o, RightSurr, tmpr
|
||||
; interp tmp, tmpl, c40, tmpr
|
||||
; macs outc, inc.o, Center, tmp
|
||||
; macs outlfe, inlfe.o, LFE, tmp
|
||||
|
||||
macs outl, $40, Left, tmpl
|
||||
macs outr, $40, Right, tmpr
|
||||
macs outrl, $40, LeftSurr, tmpl
|
||||
macs outrr, $40, RightSurr, tmpr
|
||||
interp tmp, tmpl, c40, tmpr
|
||||
macs outc, $40, Center, tmp
|
||||
macs outlfe, $40, LFE, tmp
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
21
ld10k1/setup/effects/switch_2.asm
Normal file
21
ld10k1/setup/effects/switch_2.asm
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
;PZU
|
||||
name "Switch 2 - channel"
|
||||
include "emu_constants.asm"
|
||||
|
||||
Left IO
|
||||
Right IO
|
||||
|
||||
switchL control 0,0,1
|
||||
switchR control 0,0,1
|
||||
|
||||
macints Left, C_0, Left, switchL
|
||||
macints Right, C_0, Right, switchR
|
||||
; macs C_0, switchL, C_0, C_0
|
||||
; beq .left
|
||||
; macs Left, Left, C_0, C_0
|
||||
;.left
|
||||
; macs C_0, switchR, C_0, C_0
|
||||
; beq .end
|
||||
; macs Right, Right, C_0, C_0
|
||||
;.end
|
||||
end
|
||||
29
ld10k1/setup/effects/switch_6.asm
Normal file
29
ld10k1/setup/effects/switch_6.asm
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
;PZU
|
||||
name "Switch 6 - channel"
|
||||
include "emu_constants.asm"
|
||||
|
||||
Left IO
|
||||
Right IO
|
||||
LeftSurr IO
|
||||
RightSurr IO
|
||||
Center IO
|
||||
LFE IO
|
||||
|
||||
switch control 0,0,1
|
||||
|
||||
macints Left, C_0, Left, switch
|
||||
macints Right, C_0, Right, switch
|
||||
macints LeftSurr, C_0, LeftSurr, switch
|
||||
macints RightSurr, C_0, RightSurr, switch
|
||||
macints Center, C_0, Center, switch
|
||||
macints LFE, C_0, LFE, switch
|
||||
; macs C_0, switch, C_0, C_0
|
||||
; beq .end
|
||||
; macs Left, Left, C_0, C_0
|
||||
; macs Right, Right, C_0, C_0
|
||||
; macs LeftSurr, LeftSurr, C_0, C_0
|
||||
; macs RightSurr, RightSurr, C_0, C_0
|
||||
; macs Center, Center, C_0, C_0
|
||||
; macs LFE, LFE, C_0, C_0
|
||||
;.end
|
||||
end
|
||||
110
ld10k1/setup/effects/tone.asm
Normal file
110
ld10k1/setup/effects/tone.asm
Normal file
|
|
@ -0,0 +1,110 @@
|
|||
; stolen from alsa-driver
|
||||
|
||||
name "Tone - Bass, Treble"
|
||||
include "emu_constants.asm"
|
||||
|
||||
inl io
|
||||
toutl equ inl
|
||||
inr io
|
||||
toutr equ inr
|
||||
inrl io
|
||||
toutrl equ inrl
|
||||
inrr io
|
||||
toutrr equ inrr
|
||||
inc io
|
||||
toutc equ inc
|
||||
inlfe io
|
||||
toutlfe equ inlfe
|
||||
|
||||
; Tone Control - Bass
|
||||
bass0 control 20, 0, 40
|
||||
bass1 control 20, 0, 40
|
||||
bass2 control 20, 0, 40
|
||||
bass3 control 20, 0, 40
|
||||
bass4 control 20, 0, 40
|
||||
|
||||
; Tone Control - Treble
|
||||
treble0 control 20, 0, 40
|
||||
treble1 control 20, 0, 40
|
||||
treble2 control 20, 0, 40
|
||||
treble3 control 20, 0, 40
|
||||
treble4 control 20, 0, 40
|
||||
|
||||
; Tone Control - Switch
|
||||
toneonoff control 0, 0, 1
|
||||
|
||||
; temporary
|
||||
templb sta 0, 0, 0, 0, 0
|
||||
templt sta 0, 0, 0, 0, 0
|
||||
temprb sta 0, 0, 0, 0, 0
|
||||
temprt sta 0, 0, 0, 0, 0
|
||||
temprlb sta 0, 0, 0, 0, 0
|
||||
temprlt sta 0, 0, 0, 0, 0
|
||||
temprrb sta 0, 0, 0, 0, 0
|
||||
temprrt sta 0, 0, 0, 0, 0
|
||||
tempcb sta 0, 0, 0, 0, 0
|
||||
tempct sta 0, 0, 0, 0, 0
|
||||
|
||||
outl dyn
|
||||
outr dyn
|
||||
outrl dyn
|
||||
outrr dyn
|
||||
outc dyn
|
||||
outlfe dyn
|
||||
|
||||
tmp sta 0, 0
|
||||
|
||||
BT macro tempb, tempt, chn
|
||||
macs C_0, C_0, chn, bass0
|
||||
macmv tempb+1, tempb, tempb+1, bass2
|
||||
macmv tempb, chn, tempb, bass1
|
||||
macmv tempb+3, tempb+2, tempb+3, bass4
|
||||
macs tempb+2, ACCUM, tempb+2, bass3
|
||||
acc3 tempb+2, tempb+2, tempb+2, C_0
|
||||
|
||||
macs C_0, C_0, tempb+2, treble0
|
||||
macmv tempt+1, tempt, tempt+1, treble2
|
||||
macmv tempt, tempb+2, tempt, treble1
|
||||
macmv tempt+3, tempt+2, tempt+3, treble4
|
||||
macs tempt+2, ACCUM, tempt+2, treble3
|
||||
macints tempt+2, C_0, tempt+ 2, C_16
|
||||
|
||||
acc3 chn, tempt+2, C_0, C_0
|
||||
endm
|
||||
|
||||
SONOFF macro out, in
|
||||
macints tmp, C_0, out, toneonoff
|
||||
andxor tmp+1, toneonoff, C_1, C_1
|
||||
macints tmp+1, C_0, in, tmp+1
|
||||
acc3 out, tmp, tmp+1, C_0
|
||||
endm
|
||||
|
||||
;Process tone control
|
||||
macs outl, inl, C_0, C_0
|
||||
macs outr, inr, C_0, C_0
|
||||
macs outrl, inrl, C_0, C_0
|
||||
macs outrr, inrr, C_0, C_0
|
||||
macs outc, inc, C_0, C_0
|
||||
macs outlfe, inlfe, C_0, C_0
|
||||
|
||||
BT templb, templt, outl
|
||||
BT temprb, temprt, outr
|
||||
BT temprlb, temprlt, outrl
|
||||
BT temprrb, temprrt, outrr
|
||||
BT tempcb, tempct, outc
|
||||
|
||||
SONOFF outl, inl
|
||||
SONOFF outr, inr
|
||||
SONOFF outrl, inrl
|
||||
SONOFF outrr, inrr
|
||||
SONOFF outc, inc
|
||||
SONOFF outlfe, inlfe
|
||||
|
||||
macs toutl, outl, C_0, C_0
|
||||
macs toutr, outr, C_0, C_0
|
||||
macs toutrl, outrl, C_0, C_0
|
||||
macs toutrr, outrr, C_0, C_0
|
||||
macs toutc, outc, C_0, C_0
|
||||
macs toutlfe, outlfe, C_0, C_0
|
||||
|
||||
end
|
||||
15
ld10k1/setup/effects/vol_2.asm
Normal file
15
ld10k1/setup/effects/vol_2.asm
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
name "2-channel Vol"
|
||||
|
||||
Left control 0,0,100
|
||||
Right control 0,0,100
|
||||
|
||||
signal_l IO
|
||||
signal_r IO
|
||||
|
||||
macs signal_l,$40,signal_l,Left
|
||||
macs signal_r,$40,signal_r,Right
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
23
ld10k1/setup/effects/vol_master.asm
Normal file
23
ld10k1/setup/effects/vol_master.asm
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
name "Master Vol"
|
||||
|
||||
VolM control 0,0,100
|
||||
;VolM control 100,0,#1
|
||||
|
||||
left IO
|
||||
right IO
|
||||
rleft IO
|
||||
rright IO
|
||||
center IO
|
||||
lfe IO
|
||||
|
||||
macs left.o,$40,left,VolM
|
||||
macs right.o,$40,right,VolM
|
||||
macs rleft.o,$40,rleft,VolM
|
||||
macs rright.o,$40,rright,VolM
|
||||
macs center.o,$40,center,VolM
|
||||
macs lfe.o,$40,lfe,VolM
|
||||
|
||||
end
|
||||
|
||||
|
||||
|
||||
246
ld10k1/setup/init_audigy.in
Normal file
246
ld10k1/setup/init_audigy.in
Normal file
|
|
@ -0,0 +1,246 @@
|
|||
#!/bin/sh
|
||||
|
||||
LO10K1=@bindir@/lo10k1
|
||||
|
||||
#PCM Multi
|
||||
$LO10K1 -s -n --ctrl c-Left,Right:PCM\ Front\ Playback\ Volume,t-PCM\ Front\ Playback\ Volume:1,c-LeftSurr,RightSurr:PCM\ Surround\ Playback\ Volume,t-PCM\ Surround\ Playback\ Volume:1,c-Center:PCM\ Center\ Playback\ Volume,t-PCM\ Center\ Playback\ Volume:1,c-LFE:PCM\ LFE\ Playback\ Volume,t-PCM\ LFE\ Playback\ Volume:1 --patch_name PCM\ Multi\ Volume -a simple.emu10k1
|
||||
#Input
|
||||
$LO10K1 --conadd "PIN(PCM Multi Volume)=FX(8,9,2,3,6,7)"
|
||||
|
||||
#PCM switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:PCM\ Playback\ Switch,t-PCM\ Playback\ Switch:4 --patch_name PCM\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(PCM Switch,0,1)=FX(0,1)"
|
||||
#PCM
|
||||
$LO10K1 -n --ctrl c-Left,Right:PCM\ Playback\ Volume,t-PCM\ Playback\ Volume:1 --patch_name PCM\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(PCM Switch,0,1)=PIN(PCM Volume,0,1)"
|
||||
$LO10K1 --conadd "PIN(PCM Volume,0,1)=FX(0,1)"
|
||||
#PCM Capture switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:PCM\ Capture\ Switch,t-PCM\ Capture\ Switch:4 --patch_name PCM\ Cap\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(PCM Cap Switch,0,1)=FX(0,1)"
|
||||
# PCM Capture
|
||||
$LO10K1 -n --ctrl c-Left,Right:PCM\ Capture\ Volume,t-PCM\ Capture\ Volume:1 --patch_name PCM\ Cap\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(PCM Cap Switch,0,1)=PIN(PCM Cap Volume,0,1)"
|
||||
$LO10K1 --conadd "PIN(PCM Cap Volume,0,1)=FX(0,1)"
|
||||
|
||||
#Analog Mix switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Analog\ Mix\ Playback\ Switch,t-Analog\ Mix\ Playback\ Switch:4 --patch_name Analog\ Mix\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Analog Mix Switch)=IN(10,11)"
|
||||
#Analog Mix
|
||||
$LO10K1 -n --ctrl c-Left,Right:Analog\ Mix\ Playback\ Volume,t-Analog\ Mix\ Playback\ Volume:1,s-Analog\ Mix\ Playback\ Volume:100#100 --patch_name Analog\ Mix\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Analog Mix Switch)=PIN(Analog Mix Volume)"
|
||||
$LO10K1 --conadd "PIN(Analog Mix Volume)=IN(10,11)"
|
||||
#Analog Mix capture switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Analog\ Mix\ Capture\ Switch,t-Analog\ Mix\ Capture\ Switch:4 --patch_name Analog\ Mix\ Cap\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Analog Mix Cap Switch)=IN(10,11)"
|
||||
#Analog Mix Capture
|
||||
$LO10K1 -n --ctrl c-Left,Right:Analog\ Mix\ Capture\ Volume,t-Analog\ Mix\ Capture\ Volume:1 --patch_name Analog\ Mix\ Cap\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Analog Mix Cap Switch)=PIN(Analog Mix Cap Volume)"
|
||||
$LO10K1 --conadd "PIN(Analog Mix Cap Volume)=IN(10,11)"
|
||||
|
||||
#Music switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Music\ Playback\ Switch,t-Music\ Playback\ Switch:4 --patch_name Music\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Music Switch)=FX(4,5)"
|
||||
#Music
|
||||
$LO10K1 -n --ctrl c-Left,Right:Music\ Playback\ Volume,t-Music\ Playback\ Volume:1 --patch_name Music\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Music Switch)=PIN(Music Volume)"
|
||||
$LO10K1 --conadd "PIN(Music Volume)=FX(4,5)"
|
||||
#Music capture switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Music\ Capture\ Switch,t-Music\ Capture\ Switch:4 --patch_name Music\ Cap\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Music Cap Switch)=FX(4,5)"
|
||||
#Music Capture
|
||||
$LO10K1 -n --ctrl c-Left,Right:Music\ Capture\ Volume,t-Music\ Capture\ Volume:1 --patch_name Music\ Cap\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Music Cap Switch)=PIN(Music Cap Volume)"
|
||||
$LO10K1 --conadd "PIN(Music Cap Volume)=FX(4,5)"
|
||||
|
||||
#Mic switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Mic\ Playback\ Switch,t-Mic\ Playback\ Switch:4 --patch_name Mic\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Mic Switch)=IN(0,1)"
|
||||
#Mic
|
||||
$LO10K1 -n --ctrl c-Left,Right:Mic\ Playback\ Volume,t-Mic\ Playback\ Volume:1 --patch_name Mic\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Mic Switch)=PIN(Mic Volume)"
|
||||
$LO10K1 --conadd "PIN(Mic Volume)=IN(0,1)"
|
||||
#Mic capture switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Mic\ Capture\ Switch,t-Mic\ Capture\ Switch:4 --patch_name Mic\ Cap\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Mic Cap Switch)=IN(0,1)"
|
||||
#Mic Capture
|
||||
$LO10K1 -n --ctrl c-Left,Right:Mic\ Capture\ Volume,t-Mic\ Capture\ Volume:1 --patch_name Mic\ Cap\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Mic Cap Switch)=PIN(Mic Cap Volume)"
|
||||
$LO10K1 --conadd "PIN(Mic Cap Volume)=IN(0,1)"
|
||||
|
||||
#Audigy CD switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Audigy\ CD\ Playback\ Switch,t-Audigy\ CD\ Playback\ Switch:4 --patch_name Audigy\ CD\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Audigy CD Switch)=IN(2,3)"
|
||||
#Audigy CD
|
||||
$LO10K1 -n --ctrl c-Left,Right:Audigy\ CD\ Playback\ Volume,t-Audigy\ CD\ Playback\ Volume:1 --patch_name Audigy\ CD\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Audigy CD Switch)=PIN(Audigy CD Volume)"
|
||||
$LO10K1 --conadd "PIN(Audigy CD Volume)=IN(2,3)"
|
||||
#Audigy CD capture switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Audigy\ CD\ Capture\ Switch,t-Audigy\ CD\ Capture\ Switch:4 --patch_name Audigy\ CD\ Cap\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Audigy CD Cap Switch)=IN(2,3)"
|
||||
#Audigy CD Capture
|
||||
$LO10K1 -n --ctrl c-Left,Right:Audigy\ CD\ Capture\ Volume,t-Audigy\ CD\ Capture\ Volume:1 --patch_name Audigy\ CD\ Cap\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Audigy CD Cap Switch)=PIN(Audigy CD Cap Volume)"
|
||||
$LO10K1 --conadd "PIN(Audigy CD Cap Volume)=IN(2,3)"
|
||||
|
||||
#Optical & Coaxial IN switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:IEC958\ Opt\ and\ Coax\ Playback\ Switch,t-IEC958\ Opt\ and\ Coax\ Playback\ Switch:4 --patch_name Opt\ and\ Coax\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Opt and Coax Switch)=IN(4,5)"
|
||||
#Optical & Coaxial IN
|
||||
$LO10K1 -n --ctrl c-Left,Right:IEC958\ Opt\ and\ Coax\ Playback\ Volume,t-IEC958\ Opt\ and\ Coax\ Playback\ Volume:1 --patch_name Opt\ and\ Coax\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Opt and Coax Switch)=PIN(Opt and Coax Volume)"
|
||||
$LO10K1 --conadd "PIN(Opt and Coax Volume)=IN(4,5)"
|
||||
#Optical & Coaxial IN capture switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:IEC958\ Opt\ and\ Coax\ Capture\ Switch,t-IEC958\ Opt\ and\ Coax\ Capture\ Switch:4 --patch_name Opt\ and\ Coax\ Cap\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Opt and Coax Cap Switch)=IN(4,5)"
|
||||
#Optical & Coaxial IN Capture
|
||||
$LO10K1 -n --ctrl c-Left,Right:IEC958\ Opt\ and\ Coax\ Capture\ Volume,t-IEC958\ Opt\ and\ Coax\ Capture\ Volume:1 --patch_name Opt\ and\ Coax\ Cap\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Opt and Coax Cap Switch)=PIN(Opt and Coax Cap Volume)"
|
||||
$LO10K1 --conadd "PIN(Opt and Coax Cap Volume)=IN(4,5)"
|
||||
|
||||
#Line2 switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Line2\ Playback\ Switch,t-Line2\ Playback\ Switch:4 --patch_name Line2\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Line2 Switch)=IN(8,9)"
|
||||
#Line2
|
||||
$LO10K1 -n --ctrl c-Left,Right:Line2\ Playback\ Volume,t-Line2\ Playback\ Volume:1 --patch_name Line2\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Line2 Switch)=PIN(Line2 Volume)"
|
||||
$LO10K1 --conadd "PIN(Line2 Volume)=IN(8,9)"
|
||||
#Line2 capture switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Line2\ Capture\ Switch,t-Line2\ Capture\ Switch:4 --patch_name Line2\ Cap\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Line2 Cap Switch)=IN(8,9)"
|
||||
#Line2 Capture
|
||||
$LO10K1 -n --ctrl c-Left,Right:Line2\ Capture\ Volume,t-Line2\ Capture\ Volume:1 --patch_name Line2\ Cap\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Line2 Cap Switch)=PIN(Line2 Cap Volume)"
|
||||
$LO10K1 --conadd "PIN(Line2 Cap Volume)=IN(8,9)"
|
||||
|
||||
#Aux2 switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Aux2\ Playback\ Switch,t-Aux2\ Playback\ Switch:4 --patch_name Aux2\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Aux2 Switch)=IN(12,13)"
|
||||
#Aux2
|
||||
$LO10K1 -n --ctrl c-Left,Right:Aux2\ Playback\ Volume,t-Aux2\ Playback\ Volume:1 --patch_name Aux2\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Aux2 Switch)=PIN(Aux2 Volume)"
|
||||
$LO10K1 --conadd "PIN(Aux2 Volume)=IN(12,13)"
|
||||
#Aux2 capture switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Aux2\ Capture\ Switch,t-Aux2\ Capture\ Switch:4 --patch_name Aux2\ Cap\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "PIN(Aux2 Cap Switch)=IN(12,13)"
|
||||
#Aux2 Capture
|
||||
$LO10K1 -n --ctrl c-Left,Right:Aux2\ Capture\ Volume,t-Aux2\ Capture\ Volume:1 --patch_name Aux2\ Cap\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Aux2 Cap Switch)=PIN(Aux2 Cap Volume)"
|
||||
$LO10K1 --conadd "PIN(Aux2 Cap Volume)=IN(12,13)"
|
||||
|
||||
#1
|
||||
#Stereo to 5.1
|
||||
$LO10K1 -n --ctrl c-Left,Right:Front\ Playback\ Volume,t-Front\ Playback\ Volume:1,s-Front\ Playback\ Volume:100#100,c-LeftSurr,RightSurr:Surround\ Playback\ Volume,t-Surround\ Playback\ Volume:1,c-Center:Center\ Playback\ Volume,t-Center\ Playback\ Volume:1,c-LFE:LFE\ Playback\ Volume,t-LFE\ Playback\ Volume:1 --patch_name Stereo\ To\ 51 -a sto51.emu10k1
|
||||
#Input
|
||||
$LO10K1 --conadd "POUT(PCM Volume)=PIN(Stereo To 51,0,1)"
|
||||
$LO10K1 --conadd "POUT(Analog Mix Volume)>PIN(Stereo To 51,0,1)"
|
||||
$LO10K1 --conadd "POUT(Music Volume)>PIN(Stereo To 51,0,1)"
|
||||
$LO10K1 --conadd "POUT(Mic Volume)>PIN(Stereo To 51,0,1)"
|
||||
$LO10K1 --conadd "POUT(Audigy CD Volume)>PIN(Stereo To 51,0,1)"
|
||||
$LO10K1 --conadd "POUT(Opt and Coax Volume)>PIN(Stereo To 51,0,1)"
|
||||
$LO10K1 --conadd "POUT(Line2 Volume)>PIN(Stereo To 51,0,1)"
|
||||
$LO10K1 --conadd "POUT(Aux2 Volume)>PIN(Stereo To 51,0,1)"
|
||||
|
||||
|
||||
#Capture
|
||||
#$LO10K1 -n --patch_name Capture\ Copy -a copy_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(PCM Cap Volume)=PIN(Capture Copy)"
|
||||
#$LO10K1 --conadd "POUT(Analog Mix Cap Volume)>PIN(Capture Copy)"
|
||||
#$LO10K1 --conadd "POUT(Music Cap Volume)>PIN(Capture Copy)"
|
||||
#$LO10K1 --conadd "POUT(Mic Cap Volume)>PIN(Capture Copy)"
|
||||
#$LO10K1 --conadd "POUT(Audigy CD Cap Volume)>PIN(Capture Copy)"
|
||||
#$LO10K1 --conadd "POUT(Opt and Coax Cap Volume)>PIN(Capture Copy)"
|
||||
#$LO10K1 --conadd "POUT(Line2 Cap Volume)>PIN(Capture Copy)"
|
||||
#$LO10K1 --conadd "POUT(Aux2 Cap Volume)>PIN(Capture Copy)"
|
||||
#Output
|
||||
#$LO10K1 --conadd "POUT(Capture Copy)=OUT(22,23)"
|
||||
|
||||
$LO10K1 --conadd "POUT(PCM Cap Volume)=OUT(22,23)"
|
||||
$LO10K1 --conadd "POUT(Analog Mix Cap Volume)>OUT(22,23)"
|
||||
$LO10K1 --conadd "POUT(Music Cap Volume)>OUT(22,23)"
|
||||
$LO10K1 --conadd "POUT(Mic Cap Volume)>OUT(22,23)"
|
||||
$LO10K1 --conadd "POUT(Audigy CD Cap Volume)>OUT(22,23)"
|
||||
$LO10K1 --conadd "POUT(Opt and Coax Cap Volume)>OUT(22,23)"
|
||||
$LO10K1 --conadd "POUT(Line2 Cap Volume)>OUT(22,23)"
|
||||
$LO10K1 --conadd "POUT(Aux2 Cap Volume)>OUT(22,23)"
|
||||
|
||||
|
||||
#Tone
|
||||
$LO10K1 -n --ctrl c-bass0,bass1,bass2,bass3,bass4:Tone\ Control\ -\ Bass,t-Tone\ Control\ -\ Bass:2,v-Tone\ Control\ -\ Bass:1,c-treble0,treble1,treble2,treble3,treble4:Tone\ Control\ -\ Treble,t-Tone\ Control\ -\ Treble:3,v-Tone\ Control\ -\ Treble:1,c-toneonoff:Tone\ Control\ -\ Switch,t-Tone\ Control\ -\ Switch:4 --patch_name Tone\ Controls -a tone.emu10k1
|
||||
#Input
|
||||
$LO10K1 --conadd "POUT(PCM Multi Volume)=PIN(Tone Controls)"
|
||||
$LO10K1 --conadd "POUT(Stereo To 51)>PIN(Tone Controls)"
|
||||
|
||||
#Master
|
||||
$LO10K1 -n --ctrl c-VolM:Master\ Playback\ Volume,t-Master\ Playback\ Volume:1 --patch_name Master\ Volume -a vol_master.emu10k1
|
||||
#Inputs
|
||||
$LO10K1 --conadd "POUT(Tone Controls)>PIN(Master Volume)"
|
||||
|
||||
#Master switch
|
||||
#$LO10K1 -n --ctrl c-switch:Master\ Playback\ Switch,t-Master\ Playback\ Switch:4 --patch_name Master\ Switch -a switch_6.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Master Volume)=PIN(Master Switch)"
|
||||
|
||||
#Output
|
||||
$LO10K1 -n --ctrl c-enableL,enableR:IEC958\ Optical\ Raw\ Playback\ Switch,t-IEC958\ Optical\ Raw\ Playback\ Switch:4 --patch_name Output -a output.emu10k1
|
||||
#Inputs
|
||||
#$LO10K1 --conadd "POUT(Master Switch)=PIN(Output,0,1,2,3,4,5)"
|
||||
$LO10K1 --conadd "POUT(Master Volume)=PIN(Output,0,1,2,3,4,5)"
|
||||
$LO10K1 --conadd "PIN(Output,6,7)=FX(20,21)"
|
||||
#Output
|
||||
$LO10K1 --conadd "POUT(Output,0,1,2,3,4,5)=OUT(8,9,14,15,10,11)"
|
||||
#$LO10K1 --conadd "POUT(Output,2,3,4,5)=OUT(14,15,10,11)"
|
||||
$LO10K1 --conadd "POUT(Output,6,7,8,9,10,11)=OUT(0,1,6,7,2,3)"
|
||||
|
||||
#$LO10K1 -n --patch_name delay1 -a delay.emu10k1
|
||||
#$LO10K1 --conadd "POUT(delay1,0)=OUT(8)"
|
||||
#$LO10K1 --conadd "PIN(delay1,0)=POUT(Output,0)"
|
||||
|
||||
#$LO10K1 -n --patch_name delay2 -a delay.emu10k1
|
||||
#$LO10K1 --conadd "POUT(delay2,0)=OUT(9)"
|
||||
#$LO10K1 --conadd "PIN(delay2,0)=POUT(Output,1)"
|
||||
|
||||
#Headphone
|
||||
$LO10K1 -n --ctrl c-Left,Right:Headphone\ Playback\ Volume,t-Headphone\ Playback\ Volume:1 --patch_name Headphone\ Volume -a vol_2.emu10k1
|
||||
#Input
|
||||
$LO10K1 --conadd "PIN(Headphone Volume,0,1)>PIN(Stereo To 51,0,1)"
|
||||
|
||||
#Headphone switch
|
||||
#$LO10K1 -n --ctrl c-switchL,switchR:Headphone\ Playback\ Switch,t-Headphone\ Playback\ Switch:4 --patch_name Headphone\ Switch -a switch_2.emu10k1
|
||||
#Input
|
||||
#$LO10K1 --conadd "POUT(Headphone Volume)=PIN(Headphone Switch)"
|
||||
#Output
|
||||
#$LO10K1 --conadd "POUT(Headphone Switch,0,1)=OUT(4,5)"
|
||||
$LO10K1 --conadd "POUT(Headphone Volume,0,1)=OUT(4,5)"
|
||||
390
ld10k1/setup/init_live.in
Normal file
390
ld10k1/setup/init_live.in
Normal file
|
|
@ -0,0 +1,390 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Copyright (c) 2004 Mikael Magnusson <mikma@users.sourceforge.net>
|
||||
#
|
||||
|
||||
LO10K1=@bindir@/lo10k1
|
||||
|
||||
#LO10K1="valgrind --num-callers=6 ../lo10k1"
|
||||
|
||||
DEBUG=0
|
||||
|
||||
function runlo10k1
|
||||
{
|
||||
if test $DEBUG -gt 2 ; then
|
||||
echo $LO10K1 "$@"
|
||||
fi
|
||||
|
||||
$LO10K1 "$@"
|
||||
|
||||
res=$?
|
||||
|
||||
|
||||
if test $res -ne 0 ; then
|
||||
echo Failed $LO10K1 "$@"
|
||||
fi
|
||||
}
|
||||
|
||||
function connect
|
||||
{
|
||||
from=$1
|
||||
op=$2
|
||||
to=$3
|
||||
|
||||
if test $DEBUG -gt 1 ; then
|
||||
echo "connect $from $op $to"
|
||||
fi
|
||||
|
||||
runlo10k1 --conadd "$from$op$to"
|
||||
}
|
||||
|
||||
function copy
|
||||
{
|
||||
local name=$1
|
||||
local port=$2
|
||||
|
||||
if test $DEBUG -gt 0 ; then
|
||||
echo "copy \"$name\" $port"
|
||||
fi
|
||||
|
||||
# Copy
|
||||
runlo10k1 -n --patch_name "$name Copy" -a copy_2.emu10k1
|
||||
# Input
|
||||
connect "PIN($name Copy)" '=' "$port"
|
||||
}
|
||||
|
||||
function volume
|
||||
{
|
||||
local name=$1
|
||||
local port=$2
|
||||
local default=$3
|
||||
|
||||
if test $DEBUG -gt 1 ; then
|
||||
echo "volume \"$name\" $port default=$default"
|
||||
fi
|
||||
|
||||
# Volume
|
||||
runlo10k1 -n --ctrl "c-Left,Right:$name Volume,t-$name Volume:1,s-$name Volume:$default" --patch_name "$name Volume" -a vol_2.emu10k1
|
||||
# Input
|
||||
connect "PIN($name Volume)" '=' "$port"
|
||||
}
|
||||
|
||||
function master_volume
|
||||
{
|
||||
local name=$1
|
||||
local port=$2
|
||||
local default=$3
|
||||
|
||||
if test $DEBUG -gt 1 ; then
|
||||
echo "master volume \"$name\" $port default=$default"
|
||||
fi
|
||||
|
||||
# Master
|
||||
runlo10k1 -n --ctrl "c-VolM:$name Volume,t-$name Volume:1,s-$name Volume:$default" --patch_name "$name Volume" -a vol_master.emu10k1
|
||||
# Input
|
||||
connect "$port" '=' "PIN($name Volume)"
|
||||
}
|
||||
|
||||
function switch
|
||||
{
|
||||
local name=$1
|
||||
local port=$2
|
||||
local default=$3
|
||||
|
||||
if test $DEBUG -gt 1 ; then
|
||||
echo "switch \"$name\" $port default=$default"
|
||||
fi
|
||||
|
||||
# Switch
|
||||
runlo10k1 -n --ctrl "c-switchL,switchR:$name Switch,t-$name Switch:4,s-$name Switch:$default" --patch_name "$name Switch" -a switch_2.emu10k1
|
||||
# Input
|
||||
connect "PIN($name Switch)" '>' "$port"
|
||||
}
|
||||
|
||||
function master_switch
|
||||
{
|
||||
local name=$1
|
||||
local port=$2
|
||||
local default=$3
|
||||
|
||||
if test $DEBUG -gt 1 ; then
|
||||
echo "master_switch \"$name\" $port default=$default"
|
||||
fi
|
||||
|
||||
# Master switch
|
||||
runlo10k1 -n --ctrl "c-switch:$name Switch,t-$name Switch:4,s-$name Switch:$default" --patch_name "$name Switch" -a switch_6.emu10k1
|
||||
# Input
|
||||
connect "PIN($name Switch)" '=' "$port"
|
||||
}
|
||||
|
||||
function playback
|
||||
{
|
||||
name=$1
|
||||
port=$2
|
||||
|
||||
if test $DEBUG -gt 0 ; then
|
||||
echo "playback \"$name\" $port"
|
||||
fi
|
||||
|
||||
# Switch
|
||||
switch "$name Playback" "$port" "1#1"
|
||||
volume "$name Playback" "POUT($name Playback Switch)" "0#0"
|
||||
# Output
|
||||
connect "POUT($name Playback Volume)" '>' "PIN(Wave Stereo To 51,0,1)"
|
||||
}
|
||||
|
||||
function playback_noswitch
|
||||
{
|
||||
name=$1
|
||||
port=$2
|
||||
|
||||
if test $DEBUG -gt 0 ; then
|
||||
echo "playback_noswitch \"$name\" $port"
|
||||
fi
|
||||
|
||||
# Switch
|
||||
volume "$name Playback" "$port" "0#0"
|
||||
# Output
|
||||
connect "POUT($name Playback Volume)" '>' "PIN(Wave Stereo To 51,0,1)"
|
||||
}
|
||||
|
||||
function capture
|
||||
{
|
||||
name=$1
|
||||
port=$2
|
||||
|
||||
if test $DEBUG -gt 0 ; then
|
||||
echo "capture \"$name\" $port"
|
||||
fi
|
||||
|
||||
# Capture switch
|
||||
switch "$name Capture" "$port" "0#0"
|
||||
volume "$name Capture" "POUT($name Capture Switch)" "100#100"
|
||||
# Output
|
||||
connect "POUT($name Capture Volume)" '>' "OUT(OUT_PCM_Capture_Left,OUT_PCM_Capture_Right)"
|
||||
}
|
||||
|
||||
function capture_noswitch
|
||||
{
|
||||
name=$1
|
||||
port=$2
|
||||
|
||||
if test $DEBUG -gt 0 ; then
|
||||
echo "capture_noswitch \"$name\" $port"
|
||||
fi
|
||||
|
||||
# Capture switch
|
||||
volume "$name Capture" "$port" "100#100"
|
||||
# Output
|
||||
connect "POUT($name Capture Volume)" '>' "OUT(OUT_PCM_Capture_Left,OUT_PCM_Capture_Right)"
|
||||
}
|
||||
|
||||
function master
|
||||
{
|
||||
local name=$1
|
||||
local port=$2
|
||||
|
||||
if test $DEBUG -gt 0 ; then
|
||||
echo "master \"$name\" $port"
|
||||
fi
|
||||
|
||||
# Switch
|
||||
master_volume "$name Playback" "$port" "100"
|
||||
master_switch "$name Playback" "POUT($name Playback Volume)" "1"
|
||||
}
|
||||
|
||||
function dump_patches
|
||||
{
|
||||
num=$1
|
||||
|
||||
for (( i=0; $i < $num; i=$i+1 )); do
|
||||
p=$(( $i + 100))
|
||||
runlo10k1 --debug $p
|
||||
done
|
||||
|
||||
|
||||
exit
|
||||
}
|
||||
|
||||
|
||||
function simple_stereo_to_51
|
||||
{
|
||||
local name=$1
|
||||
local port=$2
|
||||
|
||||
if test $DEBUG -gt 1 ; then
|
||||
echo "simple_stereo_to_51 \"$name\" $port"
|
||||
fi
|
||||
|
||||
# Stereo to 5.1
|
||||
runlo10k1 -n --ctrl "c-Left,Right:$name Playback Volume,t-$name Playback Volume:1,s-$name Playback Volume:100#100,c-LeftSurr,RightSurr:$name Surround Playback Volume,t-$name Surround Playback Volume:1,c-Center:$name Center Playback Volume,t-$name Center Playback Volume:1,c-LFE:$name LFE Playback Volume,t-$name LFE Playback Volume:1" --patch_name "$name Stereo To 51" -a sto51.emu10k1
|
||||
# Input
|
||||
connect "$port" '>' "PIN($name Stereo To 51,0,1)"
|
||||
|
||||
# Output
|
||||
connect "POUT($name Stereo To 51,0,1,2,3,4)" '>' "PIN(Tone Control,0,1,2,3,4)"
|
||||
}
|
||||
|
||||
function prologic
|
||||
{
|
||||
local name=$1
|
||||
local port=$2
|
||||
|
||||
if test $DEBUG -gt 1 ; then
|
||||
echo "prologic \"$name\" $port"
|
||||
fi
|
||||
|
||||
# Stereo to 5.1
|
||||
runlo10k1 -n --ctrl "" --patch_name "$name Stereo To 51" -a prologic.emu10k1
|
||||
# Input
|
||||
connect "PIN($name Stereo To 51,0,1)" '>' "$port"
|
||||
|
||||
# PCM Multi
|
||||
runlo10k1 -n --ctrl "c-Left,Right:$name Playback Volume,t-$name Playback Volume:1,c-LeftSurr,RightSurr:$name Surround Playback Volume,t-$name Surround Playback Volume:1,c-Center:$name Center Playback Volume,t-$name Center Playback Volume:1,c-LFE:$name LFE Playback Volume,t-LFE Playback Volume:1" --patch_name "$name Multi Volume" -a simple.emu10k1
|
||||
# Input
|
||||
connect "POUT($name Stereo To 51)" '=' "PIN($name Multi Volume,0,1,2,3,4)"
|
||||
|
||||
# Output
|
||||
connect "POUT($name Multi Volume,0,1,2,3,4)" '>' "PIN(Tone Control,0,1,2,3,4)"
|
||||
}
|
||||
|
||||
function stereo_to_51
|
||||
{
|
||||
local name=$1
|
||||
local port=$2
|
||||
|
||||
if test $DEBUG -gt 0 ; then
|
||||
echo "stereo_to_51 \"$name\" $port"
|
||||
fi
|
||||
|
||||
# simple_stereo_to_51 "$name" "$port"
|
||||
prologic "$name" "$port"
|
||||
|
||||
}
|
||||
|
||||
function tone
|
||||
{
|
||||
local name=$1
|
||||
local port=$2
|
||||
|
||||
if test $DEBUG -gt 0 ; then
|
||||
echo "tone \"$name\" $port"
|
||||
fi
|
||||
|
||||
#
|
||||
# Tone
|
||||
#
|
||||
runlo10k1 -n --ctrl "c-bass0,bass1,bass2,bass3,bass4:$name - Bass,t-$name - Bass:2,v-$name - Bass:1,c-treble0,treble1,treble2,treble3,treble4:$name - Treble,t-$name - Treble:3,v-$name - Treble:1,c-toneonoff:$name - Switch,t-$name - Switch:4" --patch_name "${name}" -a tone.emu10k1
|
||||
}
|
||||
|
||||
function multi_playback
|
||||
{
|
||||
local name=$1
|
||||
local port=$2
|
||||
|
||||
if test $DEBUG -gt 0 ; then
|
||||
echo "multi_playback \"$name\" $port"
|
||||
fi
|
||||
|
||||
# PCM Multi
|
||||
runlo10k1 -n --ctrl "c-Left,Right:PCM Front Playback Volume,t-PCM Front Playback Volume:1,c-LeftSurr,RightSurr:Surround Playback Volume,t-Surround Playback Volume:1,c-Center:Center Playback Volume,t-Center Playback Volume:1,c-LFE:LFE Playback Volume,t-LFE Playback Volume:1" --patch_name "$name Multi Volume" -a simple.emu10k1
|
||||
# Input
|
||||
connect "PIN($name Multi Volume)" '>' "$port"
|
||||
# Output
|
||||
connect "POUT($name Multi Volume)" '>' "PIN(Tone Control)"
|
||||
}
|
||||
|
||||
function fxbus
|
||||
{
|
||||
runlo10k1 --patch_name "FX Bus" -a fxbus.emu10k1
|
||||
connect "PIN(FX Bus)" '=' "FX(FX_PCM_Left,FX_PCM_Right,FX_PCM_Surr_Left,FX_PCM_Surr_Right,FX_MIDI_Left,FX_MIDI_Right,FX_Center,FX_LFE,8,9)"
|
||||
|
||||
fx_multi="POUT(FX Bus,0,1,2,3,6,7)"
|
||||
fx_front="POUT(FX Bus,0,1)"
|
||||
fx_rear="POUT(FX Bus,2,3)"
|
||||
fx_midi="POUT(FX Bus,4,5)"
|
||||
fx_pcm="POUT(FX Bus,8,9)"
|
||||
}
|
||||
|
||||
#dump_patches 16
|
||||
|
||||
runlo10k1 -s
|
||||
|
||||
tone "Tone Control"
|
||||
|
||||
fxbus
|
||||
|
||||
#copy "FX89" "FX(8,9)"
|
||||
stereo_to_51 "Wave" "$fx_pcm"
|
||||
|
||||
#
|
||||
# FXBUS
|
||||
#
|
||||
multi_playback "PCM" "$fx_multi"
|
||||
|
||||
capture "PCM Front" "$fx_front"
|
||||
capture "Wave" "$fx_pcm"
|
||||
capture "Surround" "$fx_rear"
|
||||
|
||||
playback "Music" "$fx_midi"
|
||||
capture "Music" "$fx_midi"
|
||||
|
||||
|
||||
#
|
||||
# INPUTS
|
||||
#
|
||||
playback "AC97" "IN(IN_AC97_Left,IN_AC97_Right)"
|
||||
capture_noswitch "AC97" "IN(IN_AC97_Left,IN_AC97_Right)"
|
||||
|
||||
# playback "IEC958 TTL" "IN(IN_TTL_IEC958_Left,IN_TTL_IEC958_Right)"
|
||||
# capture "IEC958 TTL" "IN(IN_TTL_IEC958_Left,IN_TTL_IEC958_Right)"
|
||||
|
||||
# playback "Zoom Video" "IN(IN_Zoom_Video_Left,IN_Zoom_Video_Right)"
|
||||
# capture "Zoom Video" "IN(IN_Zoom_Video_Left,IN_Zoom_Video_Right)"
|
||||
|
||||
# playback "IEC958 LiveDrive" "IN(IN_Optical_IEC958_Left,IN_Optical_IEC958_Right)"
|
||||
# capture "IEC958 LiveDrive" "IN(IN_Optical_IEC958_Left,IN_Optical_IEC958_Right)"
|
||||
|
||||
# playback "Line LiveDrive" "IN(IN_Line_Mic_1_Left,IN_Line_Mic_1_Right)"
|
||||
# capture "Line LiveDrive" "IN(IN_Line_Mic_1_Left,IN_Line_Mic_1_Right)"
|
||||
|
||||
# playback "IEC958 Coaxial" "IN(IN_Coax_IEC958_Left,IN_Coax_IEC958_Right)"
|
||||
# capture "IEC958 Coaxial" "IN(IN_Coax_IEC958_Left,IN_Coax_IEC958_Right)"
|
||||
|
||||
# playback "Line2 LiveDrive" "IN(IN_Line_Mic_2_Left,IN_Line_Mic_2_Right)"
|
||||
# capture "Line2 LiveDrive" "IN(IN_Line_Mic_2_Left,IN_Line_Mic_2_Right)"
|
||||
|
||||
|
||||
master_volume="Master_2 Playback Volume"
|
||||
master_switch="Master_2 Playback Switch"
|
||||
|
||||
master "Master_2" "POUT(Tone Control)"
|
||||
connect "POUT($master_switch)" '>' "OUT(OUT_AC97_Left,OUT_AC97_Right,OUT_Analog_Surr_Left,OUT_Analog_Surr_Right,OUT_AC97_Center,OUT_AC97_LFE)"
|
||||
|
||||
exit
|
||||
# Headphone
|
||||
|
||||
# Headphone Switch
|
||||
runlo10k1 -n --ctrl "c-switchL:Headphone Center Playback Switch,c-switchR:Headphone LFE Playback Switch,t-Headphone Center Playback Switch:4,t-Headphone LFE Playback Switch:4,i-Headphone Center Playback Switch:1,i-Headphone LFE P\
|
||||
layback Switch:1" --patch_name "Headphone Center Playback Switch" -a switch_2.emu10k1
|
||||
#Input
|
||||
#connect "POUT(Headphone Playback Volume)" '' "PIN(Headphone Center Playback Switch)"
|
||||
#Output
|
||||
#connect "POUT(Headphone Center Playback Switch,0,1)" '' "OUT(OUT_Headphone_Left,OUT_Headphone_Right)"
|
||||
|
||||
# Headphone Volume
|
||||
runlo10k1 -n --ctrl "c-Left,Right:Headphone Playback Volume,t-Headphone Playback Volume#1:1,i-Headphone Playback Volume:1" --patch_name "Headphone Playback Volume" -a vol_2.emu10k1
|
||||
#Input
|
||||
#runlo10k1 --conadd "PIN(Headphone Playback Volume,0,1)>PIN(Wave Stereo To 51,0,1)"
|
||||
#connect "POUT(Headphone Playback Volume,0,1)" '>' "PIN(Wave Stereo To 51,0,1)"
|
||||
#connect "POUT(Tone Control,0,1)" '=' "PIN(Headphone Playback Volume,0,1)"
|
||||
#connect "POUT(Headphone Playback SwitchTone Control,0,1)" '=' "PIN(Headphone Playback Volume,0,1)"
|
||||
|
||||
#Output
|
||||
runlo10k1 -n --ctrl "c-enableL,enableR:IEC958 Optical Raw Playback Switch,t-IEC958 Optical Raw Playback Switch:4" --patch_name "Output" -a output.emu10k1
|
||||
#Inputs
|
||||
runlo10k1 --conadd "POUT(Master Switch)=PIN(Output,0,1,2,3,4,5)"
|
||||
#runlo10k1 --conadd "PIN(Output,6,7)=FX(20,21)"
|
||||
#Output
|
||||
runlo10k1 --conadd "POUT(Output,0,1,2,3,4,5)=OUT(0,1,8,9,17,18)"
|
||||
runlo10k1 --conadd "POUT(Output,6,7,8,9,10,11)=OUT(0,1,2,3,4,5)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue