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 
 Forum index » DIY Hardware and Software » ChucK programming language
Framework for break-slicing from Kassen
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [6 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
jirko



Joined: Dec 15, 2009
Posts: 59

PostPosted: Fri Jan 08, 2010 8:10 am    Post subject: Framework for break-slicing from Kassen
Subject description: arguments type(s) do not match
Reply with quote  Mark this post and the followings unread

Im trying to check out the Framework for break-slicing from Kassen but I get
this on the console;

[slicer kassen.ck]:line(127): arguments type(s) do not match:
[slicer kassen.ck]:line(127): ... for function 'dur[].cap(...)' ...
[slicer kassen.ck]:line(127): ...(please check the argument types)

in reference to this line:

dur_index.cap(peak_index.cap());


I cant figured out where the problem is.. Someone can help?
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 Jan 11, 2010 9:48 am    Post subject: Reply with quote  Mark this post and the followings unread

Yes, I ran into that too a few days ago when I was revisiting that code.
The issue is that the array implementation changed. To get that stuff to run back then I had to abuse the arrays a bit; back then .cap( int ) would work but it wasn't documented and would flush the array. Now I wouldn't write it like that any more (and wouldn't have to!). Until I get around to a more modern and cleaner version this might help;

dur_index.size(peak_index.cap());

Hope that gets you further, there may be one or two more lines like that.

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



Joined: Dec 15, 2009
Posts: 59

PostPosted: Fri Jan 15, 2010 4:24 am    Post subject: Reply with quote  Mark this post and the followings unread

the error disappears but I cant get sound of it. anyway, thanks for the reply.
Back to top
View user's profile Send private message
alexbarbed



Joined: Apr 09, 2011
Posts: 14
Location: UK

PostPosted: Fri May 20, 2011 4:31 pm    Post subject: Reply with quote  Mark this post and the followings unread

This is great - I was just starting to work on my own code when I thought "I'll just check the forum..."

This does just what I wanted. Many thanks indeed. Very happy.
Back to top
View user's profile Send private message
GrandJu



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

PostPosted: Mon May 23, 2011 5:52 am    Post subject: Reply with quote  Mark this post and the followings unread

Hi Chuckers,

Where can I find this framework?
I cannot find it with a "search" Embarassed

Thanks
Ju
Back to top
View user's profile Send private message
alexbarbed



Joined: Apr 09, 2011
Posts: 14
Location: UK

PostPosted: Mon May 23, 2011 12:32 pm    Post subject: Reply with quote  Mark this post and the followings unread

if you scroll down this link a bit, you'll find an attached file called breaking.ck from Kassen. It's that.

http://www.electro-music.com/forum/viewtopic.php?highlight=beat+slice&t=33705
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 [6 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