Author |
Message |
lisarael
Joined: Feb 11, 2008 Posts: 7 Location: Belgium
|
Posted: Mon Feb 11, 2008 7:49 am Post subject:
Random Synth Generator (beta) Subject description: Just my two cents... |
|
|
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
|
|
|
blue hell
Site Admin
Joined: Apr 03, 2004 Posts: 24079 Location: The Netherlands, Enschede
Audio files: 278
G2 patch files: 320
|
Posted: Mon Feb 11, 2008 12:57 pm Post subject:
|
|
|
_________________ Jan
also .. could someone please turn down the thermostat a bit.
|
|
Back to top
|
|
|
lisarael
Joined: Feb 11, 2008 Posts: 7 Location: Belgium
|
Posted: Mon Feb 11, 2008 5:07 pm Post subject:
|
|
|
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
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Mon Feb 11, 2008 5:35 pm Post subject:
|
|
|
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
|
|
|
lisarael
Joined: Feb 11, 2008 Posts: 7 Location: Belgium
|
Posted: Mon Feb 11, 2008 5:43 pm Post subject:
|
|
|
Thanks Kassen.
I've juste corrected the negative value for Q, the sound was terrific
So i go to sleep, end coding for today
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
|
|
|
NeKro_Phyl
Joined: Jan 29, 2008 Posts: 11 Location: Berlin
|
Posted: Tue Feb 12, 2008 2:34 am Post subject:
|
|
|
Woah, cool project, thx! |
|
Back to top
|
|
|
lisarael
Joined: Feb 11, 2008 Posts: 7 Location: Belgium
|
Posted: Tue Feb 12, 2008 2:23 pm Post subject:
|
|
|
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
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Tue Feb 12, 2008 2:46 pm Post subject:
|
|
|
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
|
|
|
lisarael
Joined: Feb 11, 2008 Posts: 7 Location: Belgium
|
Posted: Wed Feb 13, 2008 12:38 am Post subject:
|
|
|
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
|
|
|
lisarael
Joined: Feb 11, 2008 Posts: 7 Location: Belgium
|
Posted: Wed Feb 13, 2008 2:23 am Post subject:
|
|
|
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
|
|
|
Kassen
Janitor
Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Wed Feb 13, 2008 8:22 am Post subject:
|
|
|
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
|
|
|
lisarael
Joined: Feb 11, 2008 Posts: 7 Location: Belgium
|
Posted: Wed Feb 13, 2008 8:35 am Post subject:
|
|
|
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
|
|
|
|