electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links  |  Store
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
Live streaming at radio.electro-music.com

  host / artist show at your time
  Faux Pas Quartet and friends Music From Last Thursday
Please visit the chat
 Forum index » DIY Hardware and Software » ChucK programming language
string concatenation !
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
lglima



Joined: Mar 05, 2007
Posts: 6
Location: Brazil

PostPosted: Mon Mar 05, 2007 6:16 pm    Post subject: string concatenation ! Reply with quote  Mark this post and the followings unread

Hi People... I am a new user and i would like to know about more chuck language. So, i read the language specification, but i can see nothing about string concatenations. i am developing a automata synthesis and i need use string concatenation .. Is it possible ? Can you help me ?? Thanks
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Mon Mar 05, 2007 7:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi, Iglima!

Welcome to ChucK! As a friendly reminder; Please be aware that our little ChucK section is a part of a much larger forum on all sorts of electronic music related things and that posting ChucK questions outside of our little area isn't of much use and will probably just confuse people.

Right, now that we got that out of the way, proper string management is on our wishlist so it's still to be implemented. Often we can get by with some trickery -for now-. Why don't you give a rough outline of the thing you'd like to do?

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kijjaz



Joined: Sep 20, 2004
Posts: 765
Location: bangkok, thailand
Audio files: 4

PostPosted: Tue Mar 06, 2007 2:28 pm    Post subject: Reply with quote  Mark this post and the followings unread

hmm.. i'm hoping to see more string operation & function in chuck very soon.

Iglima: can you implement your model by using integers?
maybe we can test it with integers right now.
i'm waiting the next season of chuck to come out also : )
fight fight Ge~
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
lglima



Joined: Mar 05, 2007
Posts: 6
Location: Brazil

PostPosted: Tue Mar 06, 2007 4:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yes.. i must implement with integers.. I will wait a new version with string concatenation...
Thanks a lot
Luis Guilherme
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Tue Mar 06, 2007 8:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

I'm not sure we'll see string management in the very next version because Ge said it depends on garbage collection which is taking some time to implement.

In the meantime; you *can* get quite advanced with arrays if you put some thought in it. For example; you could create a class consisting of a array (a very large one) and some functions for operations on it for -say- inserting elements or adding ones at the "end". You'd use a seperate integer to indicate the "end" instead of the .cap the real .cap of the arrray would be made large enough for any conceivable end result. Won't that do for now?

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
lglima



Joined: Mar 05, 2007
Posts: 6
Location: Brazil

PostPosted: Wed Mar 07, 2007 5:27 am    Post subject: With arrays of int Reply with quote  Mark this post and the followings unread

Hello,
the last night, i create one class called IntegerToBinArray. you send a integer as parameter for a Convert(int number) Method that convert a int into array of bin with 8 positions. I used a bitwise and Shift operator for computation. If you will want see the code please send me a message. Thank you,
Luis Guilherme
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Wed Mar 07, 2007 2:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

Interesting aproach!

If I understand it correctly you now want to use these arrays for Wolfram-style celular automata?

_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
lglima



Joined: Mar 05, 2007
Posts: 6
Location: Brazil

PostPosted: Wed Mar 07, 2007 3:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yes Kassen, I have implement Cellular automata using Wolfram rules with others programming languages like Matlab and C#. in matlab, i produced a very interesting sound synthesis with Cellular automata. but I did not get resulted in real time. Therefore, i am trying to migrate for the language chuck.
Thanks,
Luis Guilherme (Lglima)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [8 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
AmbiphonicDSP

Please support our site. If you click through and buy from
our affiliate partners, we earn a small commission.


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use