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
Random Synth Generator (beta)
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [12 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
lisarael



Joined: Feb 11, 2008
Posts: 7
Location: Belgium

PostPosted: Mon Feb 11, 2008 7:49 am    Post subject: Random Synth Generator (beta)
Subject description: Just my two cents...
Reply with quote  Mark this post and the followings unread

Hi all.

(please note that english is not my native language, i'm apologize for my approximate level)

I've discovered ChucK in a few day, and i'm feel very interesting, because it's what i researched to make the link between my two passions : music an devellopment (i'm webdevelloper in the "real life").

So i begin this week-end to create a little Synth-generator in php/javascript that generate some ChucK scripts...

You can see the beta of it here.

(note that the script is hosted on a local server, so the speed can be a little slow and the page can be not displayed - i will upload the script in a good hosting when it will be ended)

Have a nice day.
Back to top
View user's profile Send private message Visit poster's website
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24079
Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320

PostPosted: Mon Feb 11, 2008 12:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

welcome
_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
lisarael



Joined: Feb 11, 2008
Posts: 7
Location: Belgium

PostPosted: Mon Feb 11, 2008 5:07 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks.

I made a little upgrade tonight : i put the parameters for all the Oscillators in the script.

Next step will be to implement filters and theirs params in the script.
Back to top
View user's profile Send private message Visit poster's website
Kassen
Janitor
Janitor


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

PostPosted: Mon Feb 11, 2008 5:35 pm    Post subject: Reply with quote  Mark this post and the followings unread

Cool project!

We're going to have to be careful with our caps to distinguish between Lisa and LiSa from now on! :¬)

More seriously; I don't think I ever saw negative values for Q, are you sure about those? What would this come down to in practice?

Anyway, cool stuff I'm curious to see where this will go, keep it up and if/when you would have the time/desire feel free to link to it on the ChucK WiKi as well.

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



Joined: Feb 11, 2008
Posts: 7
Location: Belgium

PostPosted: Mon Feb 11, 2008 5:43 pm    Post subject: Reply with quote  Mark this post and the followings unread

Thanks Kassen.

I've juste corrected the negative value for Q, the sound was terrific Wink

So i go to sleep, end coding for today Smile

Now you can add three (or less) filters in the patch, and modifiy the parameters for each of them.

All the filters is not yet listed in my database, i will put it later.
Back to top
View user's profile Send private message Visit poster's website
NeKro_Phyl



Joined: Jan 29, 2008
Posts: 11
Location: Berlin

PostPosted: Tue Feb 12, 2008 2:34 am    Post subject: Reply with quote  Mark this post and the followings unread

Woah, cool project, thx!
Back to top
View user's profile Send private message
lisarael



Joined: Feb 11, 2008
Posts: 7
Location: Belgium

PostPosted: Tue Feb 12, 2008 2:23 pm    Post subject: Reply with quote  Mark this post and the followings unread

update : adding rythm patterns to the script (i just want to change the style of the rythm patterns-section because i don't love the default styles).
Back to top
View user's profile Send private message Visit poster's website
Kassen
Janitor
Janitor


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

PostPosted: Tue Feb 12, 2008 2:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

nicer & nicer!

Suggestion;

Code:
source.freq( Std.mtof( notes[Std.rand2(0, notes.cap()-1)] ) );


This will make varying the size of notes[] far more convenient if the user later edits the resulting file and this probably also simplifies your own code.

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



Joined: Feb 11, 2008
Posts: 7
Location: Belgium

PostPosted: Wed Feb 13, 2008 12:38 am    Post subject: Reply with quote  Mark this post and the followings unread

your point of view is nice but in the script, i compute the size of Notes[] in php, so ChucK have not to compute the size on each loop (but i can compute the size one time, before the loop, i will try this).

today, if i found some free times in work, i will do the styles of the rythm-pattern section...

edit: rythm-pattern section is now styled
Back to top
View user's profile Send private message Visit poster's website
lisarael



Joined: Feb 11, 2008
Posts: 7
Location: Belgium

PostPosted: Wed Feb 13, 2008 2:23 am    Post subject: Reply with quote  Mark this post and the followings unread

For my script, i would like to add a switch to allowing the script sending all notes in MIDI format.

I search an example of script for my inspiration, but i not found any script to do this on the web, can you help me ?
Back to top
View user's profile Send private message Visit poster's website
Kassen
Janitor
Janitor


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

PostPosted: Wed Feb 13, 2008 8:22 am    Post subject: Reply with quote  Mark this post and the followings unread

lisarael wrote:
your point of view is nice but in the script, i compute the size of Notes[] in php, so ChucK have not to compute the size on each loop (but i can compute the size one time, before the loop, i will try this).

today, if i found some free times in work, i will do the styles of the rythm-pattern section...

edit: rythm-pattern section is now styled


Ah, ok, yes, that's valid. Forget I said anything then.

You could indeed define a integer right after the array and set it to .cap()-1, that might give the best of both worlds.

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



Joined: Feb 11, 2008
Posts: 7
Location: Belgium

PostPosted: Wed Feb 13, 2008 8:35 am    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
You could indeed define a integer right after the array and set it to .cap()-1, that might give the best of both worlds.


Yep, this is exactly what i've done after reading your post... It's more efficient for editing the table directly in a text-editor...
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [12 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