Discussion:
maxIndex kind of UGen
Hanns Holger Rutz
2014-10-20 12:29:07 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi there,

anyone aware of a UGen that given

x = [a0, a1, ... , an]

where ai is a UGen, yields the index j such that x[j] == x.maxItem?

I know I can construct a cascade of BinaryOpUGens, just wondered if
there is a better approach?

Thanks, ..h.h..
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJURQATAAoJEKZFmaPaYk6Q+zMP/RnsT2DP0+3zwq34IOVfFUS8
p1GcdiuxfLnemWY6ha6iL1OS/yrb4cwVLhHTLyERWOz1F75mOiTuKGF5Gd2HaLFQ
zhHuCgFMv903YmPChndym8Lnv/U3+tCu7nQYY+Upot/nolzQ2FqeRtNA/JMhT4Gi
vsfk+8XwAAQxQ4N1MTconD7a9LT0+Ov3M+SC28HUSmsM9+BXuZNqTI2K6JM/JP/Q
s89TBTJNbE8FXMTx6FiNuSqqwi0SwM1A0Z73R2fQ+dLSQmfSInN5EGLKR0lTFfkR
qiYDb9DfJzfaOhV5y63bkfdUKUB9w2HNVSO2L4ZChVqxzSmH3e4AgMH0dqGFouJ1
d0AjsQu1gGgdEYWxW2UEb2qZDDK/OrWQhEdmqPlLUKqSyFr1jzjuhc67BuuzxkxP
M9gSU9e663gXlS3pt/5nkBQideeyTLZ/C0fPUW4lPlMOZrlumLTPrWemUWxJU+Lw
LsF+LgyMaU2uB0695J6uijwkEeZC8CMvffcRUScJ3591OGw3W3tq/BjJpJCa5hhf
T5OpGF/DMnmit1gxqZRR01rTGjMwn7mFwoZdWCEVkaVEKyEa68rt4ifO6G/wwLzG
1QD1af5L9ALhE60pgzy+i4uQTCLN1DmYU+Z9kC0+vRdgN5S/kPb3l8OkOG8itSyi
0BR88SJ/6CAsU298iD1F
=v2/Q
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Hanns Holger Rutz
2014-10-20 12:32:02 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

i.e. simpler than this:
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/maxItem-and-maxIndex-on-ugen-array-td3079557.html
Post by Hanns Holger Rutz
hi there,
anyone aware of a UGen that given
x = [a0, a1, ... , an]
where ai is a UGen, yields the index j such that x[j] ==
x.maxItem?
I know I can construct a cascade of BinaryOpUGens, just wondered
if there is a better approach?
Thanks, ..h.h..
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJURQDBAAoJEKZFmaPaYk6QKC4QAI1vryEfgxj0NbIYLMN+MWeY
HM0s/FKErYS8G+U9aS7BvX8TPS4B1tLjFAdBzNZI7ZTpmVCiofyMc0s85C97EZSv
dNXzZcgfQCVWNx450Wjfa5e9ufkgdIiIQ81onE13ieLO4wqbLWsMY6jme/XB23hF
a19exCyfzqllx0DEbMZA95tYky2TnxKfBLaC1wE2vCk3xWXifMB/JcJSpVs3kc4f
470UQ3k5b7wkPfQ5Wf4lzoVarVXv1ewilmvST3wcl793/FDcVlEyFa5FoLDKQi5G
epJLASWcrfDcmKFsgf0g4ym65oD6yULxzBS6fnJN5Vk/8BKhWineXllBWzMrkDbe
hP7+AokOt0gxxraESXA+kc467BG7z+yEPVOzXJVgxLqb4QUWBfygoQXKNKvXqVQV
TpknjZh+9R4SBIXMWj0YzF6n84JmZWD2EN2uAG/DuEKRlJ3xdq9TwEBcV67FSsLc
tRu9OBegq0AW5bE39yu2qt8qwZC9ZVy/yDdcZA7Y1S0rA8LbI1IJ18Nw9KRTNRwu
GIl5T7dqf542ilDbhBTJm/Mi1E5Cmw1bxZgBzdXwpNEKdSsqH7kYLn/0SNcKwe0x
iqNraaGYcWv0GctiPolRHBzqIN0wExOeCvBPjQrfV2GqZBh0Cx23qFEFFybf+t28
xK9jDbyxT5EsHMH2UqxW
=yQBP
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Hanns Holger Rutz
2014-10-20 12:56:24 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

MCLDUGens to the rescue: http://doc.sccode.org/Classes/ArrayMin.html

Another quick question - if I build sc3-plugins from master, and my
scsynth is 3.6.3, will I run into trouble if headers are from 3.6.6? I
assume the plugin API hasn't really changed?

Thanks + best, .h.h.
Post by Hanns Holger Rutz
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/maxItem-and-maxIndex-on-ugen-array-td3079557.html
Post by Hanns Holger Rutz
hi there,
anyone aware of a UGen that given
x = [a0, a1, ... , an]
where ai is a UGen, yields the index j such that x[j] ==
x.maxItem?
I know I can construct a cascade of BinaryOpUGens, just wondered
if there is a better approach?
Thanks, ..h.h..
_______________________________________________ sc-users mailing
list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
http://www.listarc.bham.ac.uk/lists/sc-users/search/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJURQZ4AAoJEKZFmaPaYk6Qo5UP/jSf2ysAyI4V/ZxG0T5auYZ7
emKSk0KW7SDKJcpxWwg5fL7HyJyCYdOCqVaGaQoZYefPpfpFh0LufBDxmmGOZXVx
h3I3JwZB1tqq6l47uOTaWWSxst5HTwcPpRxug4QhLHqJGW5Y6+r3FSyou9gJ73Nx
CeIxuCuao8R3f9m+YBkCdJJF+jxhpxRvUWia0AcN5bUz+1fAt7j/AcufjMH7mLv9
DBq9/GWupoeW6OaQF4WpKtA7Sjw/wSG7wl67JMPKm1sRIkQIqO/SuLXTaCtwL6Ix
GmItb5YtNmzNM4owyc+ct1mMF4I/7As052F0mTVjyWbyVkeIb+URLv9j5UtD7hXV
ToHAxBcTwJ+xUYCC95RJQ7JR4g3mVbojsNUpQEJ1bEiLO9oUvwpWM0QdD9+tElnO
+igV9vlNMh2wz8oD6b/BJn7UJpM/vOSVUafNExdKzuhY1Xdy1s7c/+QT56WYzKg7
QfeAN5YleCC5qp8bBSoompcpgayyYpGsCgQtiWmoDZ9Yu5MQ+JZsdWOGlK4kqthT
PUUvRlmlH4+mj9MTZqBj4v8hFkixD+iFSLYvu9tYPuemH52SYFr5PsuwR26i7UZe
OL3Wlk17ug2DV2npl+NbZ1Fq8IMVZSWm8TCNx8KlDUsDRcRKhj5E+/WtcFT//nNH
lhXdsuzK9b3+PGRuUgfw
=Sm2Z
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Dan Zink
2014-10-20 14:32:53 UTC
Permalink
Hi Hanns

I'm using plugins 3.6.6 and scsynth 3.6.3 on Ubuntu 14.04.

There was one plugin that did not compile, and I had to manually remove it
from the list. Go to ./sc3-plugins/source/CMakeLists.txt and comment
out TagSystemUGens on line 181 (place a hashmark # at the front of the
line).

Then, I'm not sure if this was the environment I was in (lots of power
spikes to my soundcard) or the actual plugin, but SOMETHING in dewdrop
would blow up my jackd. The plugin was more of a convenience than a
neccessity, so I turned it off and went on with my life, but like I said,
it might have been the power spikes as well.

Otherwise no issues for me.
Post by Hanns Holger Rutz
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
MCLDUGens to the rescue: http://doc.sccode.org/Classes/ArrayMin.html
Another quick question - if I build sc3-plugins from master, and my
scsynth is 3.6.3, will I run into trouble if headers are from 3.6.6? I
assume the plugin API hasn't really changed?
Thanks + best, .h.h.
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/maxItem-and-maxIndex-on-ugen-array-td3079557.html
Post by Hanns Holger Rutz
Post by Hanns Holger Rutz
hi there,
anyone aware of a UGen that given
x = [a0, a1, ... , an]
where ai is a UGen, yields the index j such that x[j] ==
x.maxItem?
I know I can construct a cascade of BinaryOpUGens, just wondered
if there is a better approach?
Thanks, ..h.h..
_______________________________________________ sc-users mailing
list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
http://www.listarc.bham.ac.uk/lists/sc-users/search/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJURQZ4AAoJEKZFmaPaYk6Qo5UP/jSf2ysAyI4V/ZxG0T5auYZ7
emKSk0KW7SDKJcpxWwg5fL7HyJyCYdOCqVaGaQoZYefPpfpFh0LufBDxmmGOZXVx
h3I3JwZB1tqq6l47uOTaWWSxst5HTwcPpRxug4QhLHqJGW5Y6+r3FSyou9gJ73Nx
CeIxuCuao8R3f9m+YBkCdJJF+jxhpxRvUWia0AcN5bUz+1fAt7j/AcufjMH7mLv9
DBq9/GWupoeW6OaQF4WpKtA7Sjw/wSG7wl67JMPKm1sRIkQIqO/SuLXTaCtwL6Ix
GmItb5YtNmzNM4owyc+ct1mMF4I/7As052F0mTVjyWbyVkeIb+URLv9j5UtD7hXV
ToHAxBcTwJ+xUYCC95RJQ7JR4g3mVbojsNUpQEJ1bEiLO9oUvwpWM0QdD9+tElnO
+igV9vlNMh2wz8oD6b/BJn7UJpM/vOSVUafNExdKzuhY1Xdy1s7c/+QT56WYzKg7
QfeAN5YleCC5qp8bBSoompcpgayyYpGsCgQtiWmoDZ9Yu5MQ+JZsdWOGlK4kqthT
PUUvRlmlH4+mj9MTZqBj4v8hFkixD+iFSLYvu9tYPuemH52SYFr5PsuwR26i7UZe
OL3Wlk17ug2DV2npl+NbZ1Fq8IMVZSWm8TCNx8KlDUsDRcRKhj5E+/WtcFT//nNH
lhXdsuzK9b3+PGRuUgfw
=Sm2Z
-----END PGP SIGNATURE-----
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Hanns Holger Rutz
2014-10-20 14:39:54 UTC
Permalink
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Dan,

Thanks, I have installed the third-party plugins now, they run fine
(some MCLD tested so far).

Best, .h.h.
Post by Dan Zink
Hi Hanns
I'm using plugins 3.6.6 and scsynth 3.6.3 on Ubuntu 14.04.
There was one plugin that did not compile, and I had to manually
remove it from the list. Go to ./sc3-plugins/source/CMakeLists.txt
and comment out TagSystemUGens on line 181 (place a hashmark # at
the front of the line).
Then, I'm not sure if this was the environment I was in (lots of
power spikes to my soundcard) or the actual plugin, but SOMETHING
in dewdrop would blow up my jackd. The plugin was more of a
convenience than a neccessity, so I turned it off and went on with
my life, but like I said, it might have been the power spikes as
well.
Otherwise no issues for me.
On Mon, Oct 20, 2014 at 8:56 AM, Hanns Holger Rutz
http://doc.sccode.org/Classes/ArrayMin.html
Another quick question - if I build sc3-plugins from master, and
my scsynth is 3.6.3, will I run into trouble if headers are from
3.6.6? I assume the plugin API hasn't really changed?
Thanks + best, .h.h.
Post by Hanns Holger Rutz
http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/maxItem-and-maxIndex-on-ugen-array-td3079557.html
Post by Hanns Holger Rutz
hi there,
anyone aware of a UGen that given
x = [a0, a1, ... , an]
where ai is a UGen, yields the index j such that x[j] ==
x.maxItem?
I know I can construct a cascade of BinaryOpUGens, just
wondered if there is a better approach?
Thanks, ..h.h..
_______________________________________________ sc-users mailing
list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
_______________________________________________ sc-users mailing
list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
http://www.listarc.bham.ac.uk/lists/sc-users/search/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBAgAGBQJURR66AAoJEKZFmaPaYk6Q48EP/jcpFLO/x2+fcoBoKBtWAdXy
v6WuYosxBpCFHwvCDtau7Ghi9WMKNgjz3AfIcBxr+RMcOUTGEuPcKF9cKbulQGcL
lIrsP25rF6ZWtowiYaY8HBcBG8QpnZIwKtx7+Lq+YN1M4Bi/AINs1tH2jEiraFcE
PBol/FHZRQZFjdhqbr9xMtDS8U+4U+T8PgJdDS6rAPA8Ttsv9cX6xQgD2wJKLhwN
T9maIajJCCioPCq3+HTq1AqEpufyPLe6xt6oH5RsoGMYRrKfmVrTf71jqgd2RjRg
d6OFqmU59kFOrLttKdsNjRF93qL6IG0AVj1dySDKeDioI9QevFom9kC8tUz9gYxf
nxEHbBAWthe4jdD3nsouDw9Qi8tfarqDtNRJfuL+67F5kF8qR039lucBV2N19wLk
M9iFLANtvjkaxFa4MB0V9EmML9u4VaopvjgL8cSGva1foPdibgeULPM5zBDsk89D
FcNW4NQJxQTIwEmSI8gkN+G7JMRGywIdz1bf2lVXPKasKXSAqksLgZlmoGeSay51
YOKs+AsYlIj0eOe8CylYkYAr/IZJ/+mWZOqXAptcUDZN6/Etnfz7CIb+14NGdeDO
WWnY0h21aWb9hS8M8HmCAahUzJ5pR2Yso89X0E7ek7T7CN3yoGcca8vukn84hWkX
OLe46u6shpJarL28z/Zl
=Ek0C
-----END PGP SIGNATURE-----

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Julian Rohrhuber
2014-10-20 19:35:42 UTC
Permalink
Post by Dan Zink
There was one plugin that did not compile, and I had to manually remove it
from the list. Go to ./sc3-plugins/source/CMakeLists.txt and comment
out TagSystemUGens on line 181 (place a hashmark # at the front of the
line).
What was the problem? Did you get an error message?

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Dan Zink
2014-10-20 19:42:28 UTC
Permalink
Unfortunately I don't remember. There was definitely an error message
during compile, which was how I tracked down that this Quark was the
culprit.

For future reference, is mixing two different (but close) versions and
having a problem an appropriate time for a bug report?

On Mon, Oct 20, 2014 at 3:35 PM, Julian Rohrhuber <
Post by Julian Rohrhuber
Post by Dan Zink
There was one plugin that did not compile, and I had to manually remove
it
Post by Dan Zink
from the list. Go to ./sc3-plugins/source/CMakeLists.txt and comment
out TagSystemUGens on line 181 (place a hashmark # at the front of the
line).
What was the problem? Did you get an error message?
_______________________________________________
sc-users mailing list
http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
Loading...