Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
0fd70e1
added HOAUgens
florian-grond Jun 2, 2017
2aea881
added Readme
florian-grond Jun 2, 2017
c49ebfc
compiled HOAUgens with most recent Faust
florian-grond Jun 5, 2017
dd7b4e9
removed redundant classes
florian-grond Jun 5, 2017
a36f88f
compiled up to order 4 with most recent Faust version
florian-grond Jun 26, 2017
17ac693
updated HOA Ugens and CMakelist in oder to supress debugmessages and …
florian-grond Jan 6, 2018
83ff22b
added NOT WIN32 macro for -fbracket-depth flag
florian-grond Jan 7, 2018
e3b0e5f
update readme
florian-grond Jan 12, 2018
d9ca104
update readme
florian-grond Jan 12, 2018
27d67c0
change to if(APPLE) for bracketdepth
florian-grond Jan 28, 2018
265af6f
removed binaries from sources
florian-grond Jan 28, 2018
9738aec
changing to if(APPLE AND CMAKE_COMPILER_IS_CLANG)
florian-grond Jan 29, 2018
8871723
changed fbracket test to CMAKE_COMPILER_IS_CLANG
florian-grond Jan 29, 2018
fad983d
adressing Patrick's change requests
florian-grond Jan 31, 2018
de082bc
small worrding change
florian-grond Jan 31, 2018
749ddaf
adopting Brian's change requests
florian-grond Jan 31, 2018
363cd19
edit CMakeList adopting Brian's change request
florian-grond Jan 31, 2018
dd2a61d
add target specific clang compile flag
patrickdupuis Feb 1, 2018
b6a43b4
use set_property target append property
patrickdupuis Feb 1, 2018
646cee6
Merge pull request #1 from patrickdupuis/HOAUGens
florian-grond Feb 2, 2018
1390db6
readme fix
florian-grond Feb 3, 2018
c8586bb
typo fix CPP -> C++
florian-grond Feb 3, 2018
73e04f6
minor typo
florian-grond Feb 3, 2018
18f996f
Merge branch 'master' into master
mossheim Feb 3, 2018
ea84645
move set property to after target creation (#2)
patrickdupuis Feb 4, 2018
53408c5
set property per source file (#3)
patrickdupuis Feb 4, 2018
965cf3b
integrate most recent addition fro Pierre Lecomte
florian-grond Feb 17, 2018
589c89e
Merge branch 'master' of https://github.com/florian-grond/sc3-pluginsHOA
florian-grond Feb 17, 2018
939dfe3
fix CMakeList typo
florian-grond Feb 17, 2018
2e9ba54
added beam pattern option (#4)
Apr 26, 2018
e993ad1
add option to build HOAUGens (#5)
patrickdupuis Jun 12, 2018
6a039c4
improve the option's description (#6)
patrickdupuis Jun 12, 2018
55cd622
Add a basic README (#7)
patrickdupuis Jun 18, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,118 changes: 1,118 additions & 0 deletions source/HOAUGens/HOABeamDirac2Hoa1.cpp

Large diffs are not rendered by default.

1,167 changes: 1,167 additions & 0 deletions source/HOAUGens/HOABeamDirac2Hoa2.cpp

Large diffs are not rendered by default.

1,225 changes: 1,225 additions & 0 deletions source/HOAUGens/HOABeamDirac2Hoa3.cpp

Large diffs are not rendered by default.

1,277 changes: 1,277 additions & 0 deletions source/HOAUGens/HOABeamDirac2Hoa4.cpp

Large diffs are not rendered by default.

1,356 changes: 1,356 additions & 0 deletions source/HOAUGens/HOABeamDirac2Hoa5.cpp

Large diffs are not rendered by default.

1,164 changes: 1,164 additions & 0 deletions source/HOAUGens/HOABeamHCardioid2Hoa1.cpp

Large diffs are not rendered by default.

1,258 changes: 1,258 additions & 0 deletions source/HOAUGens/HOABeamHCardioid2Hoa2.cpp

Large diffs are not rendered by default.

1,404 changes: 1,404 additions & 0 deletions source/HOAUGens/HOABeamHCardioid2Hoa3.cpp

Large diffs are not rendered by default.

1,069 changes: 1,069 additions & 0 deletions source/HOAUGens/HOAConverter1.cpp

Large diffs are not rendered by default.

1,222 changes: 1,222 additions & 0 deletions source/HOAUGens/HOAConverter2.cpp

Large diffs are not rendered by default.

1,433 changes: 1,433 additions & 0 deletions source/HOAUGens/HOAConverter3.cpp

Large diffs are not rendered by default.

1,698 changes: 1,698 additions & 0 deletions source/HOAUGens/HOAConverter4.cpp

Large diffs are not rendered by default.

2,021 changes: 2,021 additions & 0 deletions source/HOAUGens/HOAConverter5.cpp

Large diffs are not rendered by default.

1,255 changes: 1,255 additions & 0 deletions source/HOAUGens/HOADecLebedev061.cpp

Large diffs are not rendered by default.

1,557 changes: 1,557 additions & 0 deletions source/HOAUGens/HOADecLebedev261.cpp

Large diffs are not rendered by default.

1,736 changes: 1,736 additions & 0 deletions source/HOAUGens/HOADecLebedev262.cpp

Large diffs are not rendered by default.

2,037 changes: 2,037 additions & 0 deletions source/HOAUGens/HOADecLebedev263.cpp

Large diffs are not rendered by default.

1,916 changes: 1,916 additions & 0 deletions source/HOAUGens/HOADecLebedev501.cpp

Large diffs are not rendered by default.

2,140 changes: 2,140 additions & 0 deletions source/HOAUGens/HOADecLebedev502.cpp

Large diffs are not rendered by default.

2,500 changes: 2,500 additions & 0 deletions source/HOAUGens/HOADecLebedev503.cpp

Large diffs are not rendered by default.

2,988 changes: 2,988 additions & 0 deletions source/HOAUGens/HOADecLebedev504.cpp

Large diffs are not rendered by default.

3,688 changes: 3,688 additions & 0 deletions source/HOAUGens/HOADecLebedev505.cpp

Large diffs are not rendered by default.

1,058 changes: 1,058 additions & 0 deletions source/HOAUGens/HOAEncoder1.cpp

Large diffs are not rendered by default.

1,197 changes: 1,197 additions & 0 deletions source/HOAUGens/HOAEncoder2.cpp

Large diffs are not rendered by default.

1,372 changes: 1,372 additions & 0 deletions source/HOAUGens/HOAEncoder3.cpp

Large diffs are not rendered by default.

1,594 changes: 1,594 additions & 0 deletions source/HOAUGens/HOAEncoder4.cpp

Large diffs are not rendered by default.

1,875 changes: 1,875 additions & 0 deletions source/HOAUGens/HOAEncoder5.cpp

Large diffs are not rendered by default.

1,180 changes: 1,180 additions & 0 deletions source/HOAUGens/HOAMicLebedev061.cpp

Large diffs are not rendered by default.

1,446 changes: 1,446 additions & 0 deletions source/HOAUGens/HOAMicLebedev261.cpp

Large diffs are not rendered by default.

1,521 changes: 1,521 additions & 0 deletions source/HOAUGens/HOAMicLebedev262.cpp

Large diffs are not rendered by default.

1,631 changes: 1,631 additions & 0 deletions source/HOAUGens/HOAMicLebedev263.cpp

Large diffs are not rendered by default.

1,157 changes: 1,157 additions & 0 deletions source/HOAUGens/HOAMicLebedev501.cpp

Large diffs are not rendered by default.

1,187 changes: 1,187 additions & 0 deletions source/HOAUGens/HOAMicLebedev502.cpp

Large diffs are not rendered by default.

1,236 changes: 1,236 additions & 0 deletions source/HOAUGens/HOAMicLebedev503.cpp

Large diffs are not rendered by default.

1,281 changes: 1,281 additions & 0 deletions source/HOAUGens/HOAMicLebedev504.cpp

Large diffs are not rendered by default.

1,313 changes: 1,313 additions & 0 deletions source/HOAUGens/HOAMicLebedev505.cpp

Large diffs are not rendered by default.

1,045 changes: 1,045 additions & 0 deletions source/HOAUGens/HOAMirror1.cpp

Large diffs are not rendered by default.

1,075 changes: 1,075 additions & 0 deletions source/HOAUGens/HOAMirror2.cpp

Large diffs are not rendered by default.

1,117 changes: 1,117 additions & 0 deletions source/HOAUGens/HOAMirror3.cpp

Large diffs are not rendered by default.

1,171 changes: 1,171 additions & 0 deletions source/HOAUGens/HOAMirror4.cpp

Large diffs are not rendered by default.

1,237 changes: 1,237 additions & 0 deletions source/HOAUGens/HOAMirror5.cpp

Large diffs are not rendered by default.

1,300 changes: 1,300 additions & 0 deletions source/HOAUGens/HOAPanLebedev061.cpp

Large diffs are not rendered by default.

1,640 changes: 1,640 additions & 0 deletions source/HOAUGens/HOAPanLebedev261.cpp

Large diffs are not rendered by default.

1,811 changes: 1,811 additions & 0 deletions source/HOAUGens/HOAPanLebedev262.cpp

Large diffs are not rendered by default.

2,049 changes: 2,049 additions & 0 deletions source/HOAUGens/HOAPanLebedev263.cpp

Large diffs are not rendered by default.

2,058 changes: 2,058 additions & 0 deletions source/HOAUGens/HOAPanLebedev501.cpp

Large diffs are not rendered by default.

2,277 changes: 2,277 additions & 0 deletions source/HOAUGens/HOAPanLebedev502.cpp

Large diffs are not rendered by default.

2,611 changes: 2,611 additions & 0 deletions source/HOAUGens/HOAPanLebedev503.cpp

Large diffs are not rendered by default.

2,913 changes: 2,913 additions & 0 deletions source/HOAUGens/HOAPanLebedev504.cpp

Large diffs are not rendered by default.

3,266 changes: 3,266 additions & 0 deletions source/HOAUGens/HOAPanLebedev505.cpp

Large diffs are not rendered by default.

1,037 changes: 1,037 additions & 0 deletions source/HOAUGens/HOARotatorAz1.cpp

Large diffs are not rendered by default.

1,062 changes: 1,062 additions & 0 deletions source/HOAUGens/HOARotatorAz2.cpp

Large diffs are not rendered by default.

1,095 changes: 1,095 additions & 0 deletions source/HOAUGens/HOARotatorAz3.cpp

Large diffs are not rendered by default.

1,136 changes: 1,136 additions & 0 deletions source/HOAUGens/HOARotatorAz4.cpp

Large diffs are not rendered by default.

1,185 changes: 1,185 additions & 0 deletions source/HOAUGens/HOARotatorAz5.cpp

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions source/HOAUGens/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# HOAUGens

This is a collection of higher order Ambisonics (up to the 5th order) UGens based on the HOA FAUST implementation Ambitools of Pierre Lecomte:
https://github.com/sekisushai/ambitools

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOABeamDirac2Hoa1.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOABeamDirac2Hoa1 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, on(0.0), crossfade(1.0), gain(0.0), azimuth(0.0), elevation(0.0) |
^this.multiNew('audio', in1, in2, in3, in4, on, crossfade, gain, azimuth, elevation)
}

*kr { | in1, in2, in3, in4, on(0.0), crossfade(1.0), gain(0.0), azimuth(0.0), elevation(0.0) |
^this.multiNew('control', in1, in2, in3, in4, on, crossfade, gain, azimuth, elevation)
}

checkInputs {
if (rate == 'audio', {
4.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(4, rate)
}

name { ^"HOABeamDirac2Hoa1" }
}

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOABeamDirac2Hoa2.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOABeamDirac2Hoa2 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, in5, in6, in7, in8, in9, on(0.0), crossfade(1.0), gain(0.0), azimuth(0.0), elevation(0.0) |
^this.multiNew('audio', in1, in2, in3, in4, in5, in6, in7, in8, in9, on, crossfade, gain, azimuth, elevation)
}

*kr { | in1, in2, in3, in4, in5, in6, in7, in8, in9, on(0.0), crossfade(1.0), gain(0.0), azimuth(0.0), elevation(0.0) |
^this.multiNew('control', in1, in2, in3, in4, in5, in6, in7, in8, in9, on, crossfade, gain, azimuth, elevation)
}

checkInputs {
if (rate == 'audio', {
9.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(9, rate)
}

name { ^"HOABeamDirac2Hoa2" }
}

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOABeamDirac2Hoa3.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOABeamDirac2Hoa3 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, on(0.0), crossfade(1.0), gain(0.0), azimuth(0.0), elevation(0.0) |
^this.multiNew('audio', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, on, crossfade, gain, azimuth, elevation)
}

*kr { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, on(0.0), crossfade(1.0), gain(0.0), azimuth(0.0), elevation(0.0) |
^this.multiNew('control', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, on, crossfade, gain, azimuth, elevation)
}

checkInputs {
if (rate == 'audio', {
16.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(16, rate)
}

name { ^"HOABeamDirac2Hoa3" }
}

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOABeamDirac2Hoa4.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOABeamDirac2Hoa4 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, on(0.0), crossfade(1.0), gain(0.0), azimuth(0.0), elevation(0.0) |
^this.multiNew('audio', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, on, crossfade, gain, azimuth, elevation)
}

*kr { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, on(0.0), crossfade(1.0), gain(0.0), azimuth(0.0), elevation(0.0) |
^this.multiNew('control', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, on, crossfade, gain, azimuth, elevation)
}

checkInputs {
if (rate == 'audio', {
25.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(25, rate)
}

name { ^"HOABeamDirac2Hoa4" }
}

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOABeamDirac2Hoa5.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOABeamDirac2Hoa5 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, in26, in27, in28, in29, in30, in31, in32, in33, in34, in35, in36, on(0.0), crossfade(1.0), gain(0.0), azimuth(0.0), elevation(0.0) |
^this.multiNew('audio', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, in26, in27, in28, in29, in30, in31, in32, in33, in34, in35, in36, on, crossfade, gain, azimuth, elevation)
}

*kr { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, in26, in27, in28, in29, in30, in31, in32, in33, in34, in35, in36, on(0.0), crossfade(1.0), gain(0.0), azimuth(0.0), elevation(0.0) |
^this.multiNew('control', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, in26, in27, in28, in29, in30, in31, in32, in33, in34, in35, in36, on, crossfade, gain, azimuth, elevation)
}

checkInputs {
if (rate == 'audio', {
36.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(36, rate)
}

name { ^"HOABeamDirac2Hoa5" }
}

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOABeamHCardioid2Hoa1.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOABeamHCardioid2Hoa1 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, azimuth(0.0), elevation(0.0), order(0.0) |
^this.multiNew('audio', in1, in2, in3, in4, azimuth, elevation, order)
}

*kr { | in1, in2, in3, in4, azimuth(0.0), elevation(0.0), order(0.0) |
^this.multiNew('control', in1, in2, in3, in4, azimuth, elevation, order)
}

checkInputs {
if (rate == 'audio', {
4.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(16, rate)
}

name { ^"HOABeamHCardioid2Hoa1" }
}

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOABeamHCardioid2Hoa2.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOABeamHCardioid2Hoa2 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, in5, in6, in7, in8, in9, azimuth(0.0), elevation(0.0), order(0.0) |
^this.multiNew('audio', in1, in2, in3, in4, in5, in6, in7, in8, in9, azimuth, elevation, order)
}

*kr { | in1, in2, in3, in4, in5, in6, in7, in8, in9, azimuth(0.0), elevation(0.0), order(0.0) |
^this.multiNew('control', in1, in2, in3, in4, in5, in6, in7, in8, in9, azimuth, elevation, order)
}

checkInputs {
if (rate == 'audio', {
9.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(25, rate)
}

name { ^"HOABeamHCardioid2Hoa2" }
}

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOABeamHCardioid2Hoa3.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOABeamHCardioid2Hoa3 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, azimuth(0.0), elevation(0.0), order(0.0) |
^this.multiNew('audio', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, azimuth, elevation, order)
}

*kr { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, azimuth(0.0), elevation(0.0), order(0.0) |
^this.multiNew('control', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, azimuth, elevation, order)
}

checkInputs {
if (rate == 'audio', {
16.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(36, rate)
}

name { ^"HOABeamHCardioid2Hoa3" }
}

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOAConverter1.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOAConverter1 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, input(1.0), output(1.0) |
^this.multiNew('audio', in1, in2, in3, in4, input, output)
}

*kr { | in1, in2, in3, in4, input(1.0), output(1.0) |
^this.multiNew('control', in1, in2, in3, in4, input, output)
}

checkInputs {
if (rate == 'audio', {
4.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(4, rate)
}

name { ^"HOAConverter1" }
}

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOAConverter2.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOAConverter2 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, in5, in6, in7, in8, in9, input(1.0), output(1.0) |
^this.multiNew('audio', in1, in2, in3, in4, in5, in6, in7, in8, in9, input, output)
}

*kr { | in1, in2, in3, in4, in5, in6, in7, in8, in9, input(1.0), output(1.0) |
^this.multiNew('control', in1, in2, in3, in4, in5, in6, in7, in8, in9, input, output)
}

checkInputs {
if (rate == 'audio', {
9.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(9, rate)
}

name { ^"HOAConverter2" }
}

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOAConverter3.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOAConverter3 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, input(1.0), output(1.0) |
^this.multiNew('audio', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, input, output)
}

*kr { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, input(1.0), output(1.0) |
^this.multiNew('control', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, input, output)
}

checkInputs {
if (rate == 'audio', {
16.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(16, rate)
}

name { ^"HOAConverter3" }
}

30 changes: 30 additions & 0 deletions source/HOAUGens/sc/Classes/HOAConverter4.sc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
HOAConverter4 : MultiOutUGen
{
*ar { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, input(1.0), output(1.0) |
^this.multiNew('audio', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, input, output)
}

*kr { | in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, input(1.0), output(1.0) |
^this.multiNew('control', in1, in2, in3, in4, in5, in6, in7, in8, in9, in10, in11, in12, in13, in14, in15, in16, in17, in18, in19, in20, in21, in22, in23, in24, in25, input, output)
}

checkInputs {
if (rate == 'audio', {
25.do({|i|
if (inputs.at(i).rate != 'audio', {
^(" input at index " + i + "(" + inputs.at(i) +
") is not audio rate");
});
});
});
^this.checkValidInputs
}

init { | ... theInputs |
inputs = theInputs
^this.initOutputs(25, rate)
}

name { ^"HOAConverter4" }
}

Loading