electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
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 
go to the radio page Live at electro-music.com radio 1 Please visit the chat
poster
 Forum index » DIY Hardware and Software » ChucK programming language
File-handling under Chuck
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [4 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
vitorgr



Joined: Feb 20, 2014
Posts: 2
Location: Portugal

PostPosted: Thu Feb 20, 2014 6:34 pm    Post subject:  File-handling under Chuck
Subject description: File-handling under Chuck, equivalent way for Java InputStream
Reply with quote  Mark this post and the followings unread

Is there a Chuck equivalent way for Java InputStream and OutputStream? Or like c++ fopen()?
Back to top
View user's profile Send private message
fretless



Joined: Nov 29, 2009
Posts: 19
Location: Boston

PostPosted: Thu Feb 20, 2014 6:45 pm    Post subject: Reply with quote  Mark this post and the followings unread

There are file examples in the example folder of the ChucK installation ChucK\examples\io
Back to top
View user's profile Send private message
vitorgr



Joined: Feb 20, 2014
Posts: 2
Location: Portugal

PostPosted: Fri Feb 28, 2014 1:35 pm    Post subject: File-handling under Chuck
Subject description: File-handling under Chuck
Reply with quote  Mark this post and the followings unread

Dear fretless,

Thank you for your fast answer!

My code is running now. I am able to read integers (notes) from a ascii file.

However, when I chuck some time to now (to play the notes), I get the following error at some point during execution:


(JACK) the JACK server is shutting down this client...
... stream stopped and closed!
^C[chuck]: cleaning up...
terminate called after throwing an instance of 'RtError'
what(): RtApi:: a stream is not open!
Aborted (core dumped)

Any clues?

Thank you, for your attention!
vitorgr
Back to top
View user's profile Send private message
GrandJu



Joined: Jul 04, 2010
Posts: 32
Location: Rennes France

PostPosted: Wed Mar 05, 2014 9:10 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi vitorgr,

I suppose you are using Jack1.
Try Jack2, I don't know why but it works better with ChucK.

Since I use it I had no disconnect from Jack server anymore.

Have fun
Ju
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 [4 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


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