hi list i try to play around the fm unit generator and i can't make it work although i can use class depending on the FM class (TubeBell for example). this simple code make my jack server break out : FM f => dac; 400.0 => f.freq; while(true){ 1.0 => f.noteOn; 10::ms => now; } does anyone had already met some trouble with this class?
Eun Sung, It does this on my system too. As far as I know, FM is meant to be an abstract class, only the children of it (BeeThree, FMVoices, HevyMetl, etc)... should be instantiated. Usually, things like this are caught like the compiler, and will probably happen in future versions of ChucK. Graham On Wed, 8 Mar 2006 eun.sung@no-log.org wrote:
hi list i try to play around the fm unit generator and i can't make it work although i can use class depending on the FM class (TubeBell for example). this simple code make my jack server break out :
FM f => dac; 400.0 => f.freq;
while(true){ 1.0 => f.noteOn; 10::ms => now; }
does anyone had already met some trouble with this class? _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
ok thanks
Eun Sung,
It does this on my system too.
As far as I know, FM is meant to be an abstract class, only the children of it (BeeThree, FMVoices, HevyMetl, etc)... should be instantiated.
Usually, things like this are caught like the compiler, and will probably happen in future versions of ChucK.
Graham
On Wed, 8 Mar 2006 eun.sung@no-log.org wrote:
hi list i try to play around the fm unit generator and i can't make it work although i can use class depending on the FM class (TubeBell for example). this simple code make my jack server break out :
FM f => dac; 400.0 => f.freq;
while(true){ 1.0 => f.noteOn; 10::ms => now; }
does anyone had already met some trouble with this class? _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
Hi! Graham is right. FM is an abstract base class for all the STK's FM-based instruments. We will fix it to gracefully report error without crashing in the upcoming release. There are several ways to do FM synthesis in ChucK. A straightforward approach is to move along in time, possibly every samp, and modulate the carrier in any way you like: // carrier sinosc c => dac; // modulator sinosc m => blackhole; // carrier frequency 220 => float cf; // modulator frequency 550 => float mf => m.freq; // index of modulation .5 => float index; // time-loop while( true ) { // modulate cf + (index * mf * m.last()) => c.freq; // advance time by 1 samp 1::samp => now; } Hope this helps! Best, Ge!
hi thank you very much for this support. i'm sorry cause i'm not really...hm..."skilly" in audio synthesis nor in dsp. i used to noise with commercials software but i'm really enthousiast with chucking. thanks
Hi!
Graham is right. FM is an abstract base class for all the STK's FM-based instruments. We will fix it to gracefully report error without crashing in the upcoming release.
There are several ways to do FM synthesis in ChucK. A straightforward approach is to move along in time, possibly every samp, and modulate the carrier in any way you like:
// carrier sinosc c => dac; // modulator sinosc m => blackhole;
// carrier frequency 220 => float cf; // modulator frequency 550 => float mf => m.freq; // index of modulation .5 => float index;
// time-loop while( true ) { // modulate cf + (index * mf * m.last()) => c.freq; // advance time by 1 samp 1::samp => now; }
Hope this helps!
Best, Ge! _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
You don't learn anything if you don't ask! There are a lot of great example patches that come with ChucK to help you learn. There is a lot of other great work posted on the ChucK wiki. http://wiki.cs.princeton.edu/index.php/ChucK If you would like to learn about DSP or sound synthesis then you could start with Perry Cook's book called Real Sound Synthesis for Interactive Applications. It is a great start. There is also musicdsp.org. Good luck on the journey. --art On 8-Mar-06, at 6:16 PM, eun.sung@no-log.org wrote:
hi thank you very much for this support. i'm sorry cause i'm not really...hm..."skilly" in audio synthesis nor in dsp. i used to noise with commercials software but i'm really enthousiast with chucking.
thanks
Hi!
Graham is right. FM is an abstract base class for all the STK's FM-based instruments. We will fix it to gracefully report error without crashing in the upcoming release.
There are several ways to do FM synthesis in ChucK. A straightforward approach is to move along in time, possibly every samp, and modulate the carrier in any way you like:
// carrier sinosc c => dac; // modulator sinosc m => blackhole;
// carrier frequency 220 => float cf; // modulator frequency 550 => float mf => m.freq; // index of modulation .5 => float index;
// time-loop while( true ) { // modulate cf + (index * mf * m.last()) => c.freq; // advance time by 1 samp 1::samp => now; }
Hope this helps!
Best, Ge! _______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
participants (4)
-
Adam Tindale
-
eun.sung@no-log.org
-
Ge Wang
-
Graham Coleman