electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Articles  |  Radio
 |  Media  |  Forum  |  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
ChucK based text editor
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [17 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
vadimred13



Joined: Mar 09, 2009
Posts: 17
Location: Albany, NY

PostPosted: Mon Mar 30, 2009 10:27 pm    Post subject: ChucK based text editor Reply with quote  Mark this post and the followings unread

Hey all,

I started working on a ChucK based editor with context sensitive code completion (because I'm a lazy bastard who doesn't like to reference API documentation while writing code), and hopefully I can integrate a shell for running shreds as well. Here's a couple of screenies.

Posted Image, might have been reduced in size. Click Image to view fullscreen.

Posted Image, might have been reduced in size. Click Image to view fullscreen.

Posted Image, might have been reduced in size. Click Image to view fullscreen.


Cheers.
Back to top
View user's profile Send private message
kijjaz



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

PostPosted: Mon Mar 30, 2009 11:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

Oh.. it looks like it's gonna be a very nice editor for all chuckers. especially for starters. fight fight vadimred13 !
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Kassen
Janitor
Janitor


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

PostPosted: Tue Mar 31, 2009 12:21 am    Post subject: Reply with quote  Mark this post and the followings unread

That looks totally lovely! What is this written in? Is there any chance of merging this with the MiniAudicle?
_________________
Kassen
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kijjaz



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

PostPosted: Tue Mar 31, 2009 1:07 am    Post subject: Reply with quote  Mark this post and the followings unread

That definitely looks like it's in Windows. I really wanna see this tool go multiplatform, if possible. But if the editor is on Windows only, I'd like to try running with Wine on Linux & Mac OS.
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
Inventor



Joined: Oct 13, 2007
Posts: 5457
Location: San Antonio, Tx, USA
Audio files: 236

PostPosted: Tue Mar 31, 2009 4:12 am    Post subject: Reply with quote  Mark this post and the followings unread

That's impressive!
_________________
No matter how much society beats it out of me, I STILL want to make the world a better place. I am sick of the abuse yet I am powerless to stop it.
Back to top
View user's profile Send private message Send e-mail
vadimred13



Joined: Mar 09, 2009
Posts: 17
Location: Albany, NY

PostPosted: Tue Mar 31, 2009 10:05 pm    Post subject: Reply with quote  Mark this post and the followings unread

It's being written in C#. For now it's Windows only, but once I get it running, I'd like to try to port it for Linux/Mac. Though it would be my first foray into cross platform development, it would give me a good excuse to learn more about Mono (I think Mono 2.4 was just released today).
Back to top
View user's profile Send private message
Inventor



Joined: Oct 13, 2007
Posts: 5457
Location: San Antonio, Tx, USA
Audio files: 236

PostPosted: Tue Mar 31, 2009 10:55 pm    Post subject: Reply with quote  Mark this post and the followings unread

vadimred13, do you have any ChucK programs that you would like to share?
_________________
No matter how much society beats it out of me, I STILL want to make the world a better place. I am sick of the abuse yet I am powerless to stop it.
Back to top
View user's profile Send private message Send e-mail
vadimred13



Joined: Mar 09, 2009
Posts: 17
Location: Albany, NY

PostPosted: Sun Apr 05, 2009 10:01 am    Post subject: Reply with quote  Mark this post and the followings unread

I don't really have anything worth sharing at the moment, and I'm spending most of my "computer" time working on the editor.
Back to top
View user's profile Send private message
Inventor



Joined: Oct 13, 2007
Posts: 5457
Location: San Antonio, Tx, USA
Audio files: 236

PostPosted: Sun Apr 05, 2009 10:10 am    Post subject: Reply with quote  Mark this post and the followings unread

OK, coolness...
_________________
No matter how much society beats it out of me, I STILL want to make the world a better place. I am sick of the abuse yet I am powerless to stop it.
Back to top
View user's profile Send private message Send e-mail
vadimred13



Joined: Mar 09, 2009
Posts: 17
Location: Albany, NY

PostPosted: Tue Jun 02, 2009 12:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

Here's the first version:

www.vadimnuniyants.com/ckEdit_0.1.zip

Have at you!
Back to top
View user's profile Send private message
vadimred13



Joined: Mar 09, 2009
Posts: 17
Location: Albany, NY

PostPosted: Tue Jun 02, 2009 2:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

Already broken. If you happened to grab it already, please regrab it.
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


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

PostPosted: Sun Jun 07, 2009 7:34 am    Post subject: Reply with quote  Mark this post and the followings unread

I'll have a good look at this as soon as possible. One thing that might help; you wrote in your README;

Quote:
it has its limitations; the biggest one being lack of hanging shred detection (thats what you get for writing endless while loops without advancing the time!). the workaround for that is a panic function which resets the VM.


I believe there is a command to get ChucK to abort the shred that's currently claiming the CPU, in the case of a stuck VM that will be the offending Shred. "Panic" is still good as well as you can also get a stuck UGen, for example the FM instruments can get stuck when fed infinitely high frequencies and LiSa can get stuck with infinitely short loops.

At any rate I'm quite interested in this project.

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



Joined: Mar 09, 2009
Posts: 17
Location: Albany, NY

PostPosted: Sun Jun 07, 2009 10:50 am    Post subject: Reply with quote  Mark this post and the followings unread

Ah, great idea, Kassen! After rooting around the ChucK source this morning, I found a couple of useful command line switches: --watchdog lets you specify how long a shred will run for until it times out, and when it does - it sends a message. And the command you're talking about is --abort.shred which aborts the current shred. I can use both of these to address the hanging shreds dilemma... Oh, and I've set up a blog where I can post updates to the project without wasting space on the forum.

-Vadim
Back to top
View user's profile Send private message
Kassen
Janitor
Janitor


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

PostPosted: Mon Jun 08, 2009 5:32 am    Post subject: Reply with quote  Mark this post and the followings unread

I subscribed to your RSS.

Blogging is very nice as well, of course, but please do know that nobody will feel work like yours here is "wasting space". You're more than welcome to post and debate your progress, maybe people will inspire you, maybe you'll inspire others, it's win/win for everybody.

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



Joined: Oct 07, 2006
Posts: 63
Location: Bern Switzerland

PostPosted: Tue Jun 16, 2009 12:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

hey vadimred13

back from a long absent i've just saw your post here about your new IDE.
it looks truly incredible and implements what i was really missing in the mini - code completion. Very Happy

I did some little development for the mini in the past, namely a File Browser:
http://electro-music.com/forum/topic-23179.html

I would be interested in porting it to your IDE and also to help you implementing other things as well,
if you could imagine to count me in as a code monkey?

if you're intersted, please contact me using a PM here or by sending an email to (moudi at gmx dot net).

cheers
/moudi
Back to top
View user's profile Send private message Visit poster's website
vadimred13



Joined: Mar 09, 2009
Posts: 17
Location: Albany, NY

PostPosted: Wed Jul 01, 2009 8:54 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hey guys,

Me and moudi have been working on a new release. Grab it here and let us know what you think. We've also got a bug tracker up at the Google Code Project page, so feel free to post a bug if you're up for it.

Cheers,
Vadim
Back to top
View user's profile Send private message
MusicMan11712



Joined: Aug 08, 2009
Posts: 286
Location: Upstate New York USA
Audio files: 46

PostPosted: Sun Aug 16, 2009 9:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

I am new to Chuck (less than 48 hrs) and gave your editor a try with some scripts I had written with miniAudicle and with some of the midi demos (mandolin and clarinet). After I figured out where to point the editor to find ChucK, it worked great!!!

So far I am playing around/teaching myself the language by developing a MIDI router. See sample output below from 2 MIDI echo scripts (simple In to Out; no data filtering, complex mapping, etc. yet).

I am looking forward to giving your ChucK Editor a try for actual code development. One thing I wish miniAudicle had was a search/replace feature (for text, not shreds). I found I had to rename some variables and kept wishing I could search for each place I used it.

A very nice feature of your editor is the ability to turn the output off with the touch of a button. With that, I was able to see if ChucK can play tones with real-time midi input without choking.

Thanks for developing the editor and posting it.

Steve

SAMPLE OUTPUT FROM CHICK EDITOR:
------------------------------------------------
[chuck]Sad2:SYSTEM): running virtual machine...
[chuck](VM): sporking incoming shred: 1 (echoUSBtoP2500rev1.ck)...
MIDI device: 2 -> MK-449C USB MIDI In
MIDI device: 1 -> MT4 Out 01
echoing 90 48 53 from MK-499C to P2500
echoing 90 48 00 from MK-499C to P2500

[chuck](VM): sporking incoming shred: 2 (echoDM2toXL-1rev1.ck)...
MIDI device: 3 -> In From MIDI Yoke: 1
MIDI device: 24 -> Port 7 on MXPXT
echoing 95 4A 7F from DM2MIDI to XL-1 Orchestral
echoing 85 4A 00 from DM2MIDI to XL-1 Orchestral
echoing 95 4A 7F from DM2MIDI to XL-1 Orchestral
echoing 85 4A 00 from DM2MIDI to XL-1 Orchestral

==================================
Footnotes for the curious:
1. Two of my goals were (1) to get midi output in hex (I don't understand it in decimal) and (2) to use "friendly names" for the midi devices, instead of the names of the midi ports.

2. If ChucK can handle it, it might be nice to have ChucK scripts as midi routing patches so that 3 or 4 controllers can be re-routed on-the-fly with minimal effort.
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 [17 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
Niio2

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