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
  Various Artists ~ 2014 Autumnal Equinox ~ live streaming radio ~
Please visit the chat
 Forum index » DIY Hardware and Software » ChucK programming language
STK segfault
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [2 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
stefansjs



Joined: Apr 03, 2011
Posts: 2
Location: University of Miami

PostPosted: Sun Jan 29, 2012 1:51 pm    Post subject: STK segfault
Subject description: running any STK instrumet causes ChucK to segfault
Reply with quote  Mark this post and the followings unread

Hello all,
I've been teaching myself ChucK for a little bit now. So far it's lots of fun and I'm pretty impressed. However, I have a problem every time I try to use something from STK. I've got miniAudicle installed on Windows and Ubuntu 10.10 (32-bit), and I've also run the commands in the terminal in Ubuntu. I've tried loading the STK examples and tried my own very basic code:
Code:
FM freqmod => dac;
1::second => now;

OR
Code:
FM freqmod => dac;
440 => freqmod.freq;

In any case the output I get is:

Quote:
[chuck](via STK): error : FM tick is virtual!
Segmentation fault


I've never used STK before, so I'm not sure if I'm missing some really obvious initialization or something else, or if I really have a bug in my chuck code. I'm running ChucK 1.2.1.3.

Has anyone seen problems with STK? Does anybody have suggestions where I go from here?
thanks
Back to top
View user's profile Send private message
stefansjs



Joined: Apr 03, 2011
Posts: 2
Location: University of Miami

PostPosted: Tue Jan 31, 2012 2:45 pm    Post subject: Reply with quote  Mark this post and the followings unread

Well, it turns out I was missing something really basic. FM is an abstract base class - not supposed to be instantiated. Not really a decision I agree with, but it explains why my code was causing a crash.

Hope this helps somebody other than myself
cheers
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 [2 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
e-m mkii

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