Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List can't be used in Synth arg list #2096

Closed
jamshark70 opened this issue May 18, 2016 · 1 comment
Closed

List can't be used in Synth arg list #2096

jamshark70 opened this issue May 18, 2016 · 1 comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: class library SC class library fix proposed
Milestone

Comments

@jamshark70
Copy link
Contributor

OK, here is the kind of interface screwup that drives me absolutely bonkers.

Array.findRespondingMethodFor(\asOSCArgArray);
-> Array:asOSCArgArray

List.findRespondingMethodFor(\asOSCArgArray);
-> Object:asOSCArgArray

"Lists are supposed to be more-or-less interchangeable with Arrays," my eye.

(
a = {
    var freqs = NamedControl.kr(\freqs, (100, 200 .. 400)),
    pulse = Impulse.kr(0);
    freqs.poll(pulse);
    FreeSelf.kr(pulse <= 0);
    Silent.ar(1)
}.play(args: [freqs: List[300, 600, 900, 1200]]);
)
-->
UGen Array [0]: 100
UGen Array [1]: 200
UGen Array [2]: 300
UGen Array [3]: 400

(
a = {
    var freqs = NamedControl.kr(\freqs, (100, 200 .. 400)),
    pulse = Impulse.kr(0);
    freqs.poll(pulse);
    FreeSelf.kr(pulse <= 0);
    Silent.ar(1)
}.play(args: [freqs: [300, 600, 900, 1200]]);
)
-->
UGen Array [0]: 300
UGen Array [1]: 600
UGen Array [2]: 900
UGen Array [3]: 1200

le sigh

@jamshark70 jamshark70 added the comp: class library SC class library label May 18, 2016
@jamshark70 jamshark70 added this to the 3.8 milestone May 18, 2016
@telephon telephon added the bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. label May 18, 2016
telephon added a commit to telephon/supercollider that referenced this issue May 18, 2016
All SequenceableCollections should be adequate as arguments to synth
args.

This fixes supercollider#2096.
@telephon
Copy link
Member

le sigh

c'est la vie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues that relate to unexpected/unwanted behavior. Don't use for PRs. comp: class library SC class library fix proposed
Projects
None yet
Development

No branches or pull requests

2 participants