[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] SC truncate the command in ".....".runInTerminal
- To: <sc-users@xxxxxxxxxxxxxxxx>
- Subject: Re: [sc-users] SC truncate the command in ".....".runInTerminal
- From: PyoungRyang Ko <pyoungryang.ko@xxxxxxxxxxxxxx>
- Date: Mon, 20 Sep 2010 09:09:02 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:user-agent:date:subject:from :to:message-id:thread-topic:thread-index:in-reply-to:mime-version :content-type:content-transfer-encoding; bh=QzajwlrUTPU1GGx9szrxSbGPrDuGcnQYAfV6shxR8bc=; b=W/77c85LTnFJtvARGp2mAYHBVHqSMEp3t+0QQUKMJIGVCbAYdwSJ7zwaCtjojeAzLQ 7Hrp0lrvwKm6mj4gs8AVgHdNv9GtoyQ8k05XpQYsnBLHEnLpW+ApKYGj5QawBfzC12ha ww8LQB3Kqp9j7xeHOg17h+hlpOWEXGl4X4ygo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=user-agent:date:subject:from:to:message-id:thread-topic :thread-index:in-reply-to:mime-version:content-type :content-transfer-encoding; b=liTsXkZiJ5FJfXjWPoBOUfgA7TYYlt5VUc3P+WLaG75IBcrAsENqP3egakb41OC6Fg QtPWYeRTKwlUuPfuwq+X27W4aNGLnqKQbBSNn/WrEw8I6+T6UxO7zgfM24H9RxePMH04 Hn/nhJmm3gPatE2RkTmm3CRjqj6f5D58GjIoU=
- In-reply-to: <4C96F94F.9000409@xxxxxxxxxxxxxxxxx>
- List-id: SuperCollider users mailing list <sc-users.create.ucsb.edu>
- Reply-to: sc-users@xxxxxxxxxxxxxxxx
- Sender: owner-sc-users@xxxxxxxxxxxxxxxx
- Thread-index: ActYkrQV9gwQXeSiLkiNZXmSJtLQIQ==
- Thread-topic: [sc-users] SC truncate the command in ".....".runInTerminal
- User-agent: Microsoft-Entourage/12.26.0.100708
Dear James,
Thanks. Here is my solution!
(
~jack_connect = CollStream.new;
(
(1..4).do { |i| ~jack_connect << "jack_connect system:capture_%
scsynth:in%;\n".format(i, i)};
(1..64).do { |i| ~jack_connect << "jack_connect scsynth:out%
scsynth-01:in%;\n".format(i, i)};
(1..64).do { |i| ~jack_connect << "jack_connect scsynth-01:out%
scsynth-02:in%;\n".format(i, i);};
(1..64).do { |i| ~jack_connect << "jack_connect scsynth-02:out%
scsynth-03:in%;\n".format(i, i);};
(1..64).do { |i| a = i - 1 % 8 + 1 ; ~k_connect << "jack_connect
scsynth-03:out% system-playback_:in%;\n".format(i, a);};
~jack_connect.collection.runInTerminal
)
)
I would be very practical for JackOsX user, since the Jack in Quarks does
not work in OsX.
Sincerely,
prko
On 9/20/10 8:03 AM, "James Harkins" <jamshark70@xxxxxxxxx> wrote:
> Shortening the code: String:format is your friend.
>
> c = CollStream.new;
>
> (1..4).do { |i|
> c << "jack_connect system:capture_% scsynth:in%;\n".format(i, i);
> };
>
> (1..64).do { |i|
> c << "jack_connect scsynth:out% scsynth-01:in%;\n".format(i, i);
> };
>
> (1..64).do { |i|
> c << "jack_connect scsynth-01:out% scsynth-02:in%;\n".format(i, i);
> };
>
> // etc. etc.
>
> Now "c.collection" is your command sequence.
>
> On 9/20/10 12:52 PM, PyoungRyang Ko wrote:
>> Dear advanced users,
>>
>> When excuting the following commands, I realise that there is a limitation
>> of the number of the characters within two quotation marks.
>> Can anyone explain the reason?
>
> Possibly a restriction with string literals. Concatenating smaller
> strings to make bigger ones (which CollStream does with <<, or String
> does with ++) can go past whatever limitation you've seen. (In my
> example, c.collection is not truncated.)
>
> hjh
>
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/