nice thread about FM synthesis using chuck/supercollider
its cool cause the intention is to compare both languages, also very simple
examples and nice tips..
most of the code is written wrongly, but will be easy for us to fix
On 5 October 2012 15:27, Kassen
On Fri, Oct 05, 2012 at 04:16:19PM +0200, Alberto Alassio wrote:
So the first part will be something like
SinOsc c => dac;
SinOsc m => blackhole;
Step centre_freq => c;
440 => centre_freq.next ;
2 => c.sync
?
Almost. We will put the signal of m into c. This is because m is affecting (modulating) c. This modulation happens in a way set by the .sync() function. So, the top two lines should be replaced by;
SinOsc m => SinOsc c => dac; //m affects what c plays. We listen to c.
All of the rest is right. If you set up m with something like;
110 => m.gain; //amplitude and thus modulation depth 3 => m.freq; //lfo frequency
Then it should work.
Once it works you can consider adding a envelope and maybe a loop that plays a melody using your new sound.
Thank you Kas for being so patient
No problem.
BTW; we do not need blackhole in this case because m is connected to c and c is connected to the DAC. Anything that connects from the DAC will be generating values because of that. We only need blackhole when we want something to generate values (for example to use with .last()) but do not need to connected (indirectly) to the DAC. I think the manual entry on blackhole should explain that.
Hope that helps explain the underlying reasoning.
Yours, Kas. _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
On Mon, Oct 08, 2012 at 11:40:23AM +0100, henrique matias wrote:
its cool cause the intention is to compare both languages, also very simple examples and nice tips..
It's a interesting case. Aren't those osc's amongst the UGens borrowed from SC? I hope so because then the sound and quality should be the same, with the emphasis on syntax (and other qualities you might like to measure, of course)
most of the code is written wrongly, but will be easy for us to fix
Hmmmm, I thought most of it was right, only the first two lines had a issue, I thought. Did I miss problems? I didn't actually try to run any of it. Kas.
sorry it wasn't supposed to come to the list, was supposed to be forwarded
to my housemate..
about the code being wrong, i meant the first examples of the thread are
wrong, but would be easy to fix based on the rest of the thread..
sorry this end up back in the list as a nonsense message :P
as soon as i get a free moment, i'll sort a comparative example, this will
be fun
On 9 October 2012 00:34, Kassen
On Mon, Oct 08, 2012 at 11:40:23AM +0100, henrique matias wrote:
its cool cause the intention is to compare both languages, also very simple examples and nice tips..
It's a interesting case. Aren't those osc's amongst the UGens borrowed from SC? I hope so because then the sound and quality should be the same, with the emphasis on syntax (and other qualities you might like to measure, of course)
most of the code is written wrongly, but will be easy for us to fix
Hmmmm, I thought most of it was right, only the first two lines had a issue, I thought. Did I miss problems? I didn't actually try to run any of it.
Kas. _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
On Tue, Oct 09, 2012 at 06:47:25PM +0100, henrique matias wrote:
sorry it wasn't supposed to come to the list, was supposed to be forwarded to my housemate..
Ah, yes, I understand. Invite them over to the list ;-) Kas.
he's invited but he still didn't try chuck on his machine ( just some stuff
on mine ), hopefully he'll come to chuck as well !
we speak soon! sorry for this confusion on the mail
On 9 October 2012 19:09, Kassen
On Tue, Oct 09, 2012 at 06:47:25PM +0100, henrique matias wrote:
sorry it wasn't supposed to come to the list, was supposed to be forwarded to my housemate..
Ah, yes, I understand. Invite them over to the list ;-)
Kas. _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (2)
-
henrique matias
-
Kassen