Introducing myself and a question.
Date | 2015-06-10 20:44 |
From | Gabriele Battaglia |
Subject | Introducing myself and a question. |
Attachments | None None |
Hi All. I’m Gabriel, a totally blind user living in Italy. I’ve just subscribed the list and wanted to say hello to everybody. I don’t want to go of topic, so my very first question on Sound is: as a beginner, I’m trying to understand this software writing small CSD project. I’ve my first script and it doesn’t run as I expect from it. Could I post it here in order to get help from your kind experience? Thanks and, apologize if I break some list rules. Gabriel. —
Namasté! Sent from my iMac27. (Libero) |
Date | 2015-06-10 21:03 |
From | jpff |
Subject | Re: Introducing myself and a question. |
Attachments | None None |
Sure post it here. That is one of the purposes of this list ==John ffitch On Wed, 10 Jun 2015, Gabriele Battaglia wrote: > Hi All.I’m Gabriel, a totally blind user living in Italy. > I’ve just subscribed the list and wanted to say hello to everybody. > > I don’t want to go of topic, so my very first question on Sound is: as a > beginner, I’m trying to understand this software writing small CSD project. > I’ve my first script and it doesn’t run as I expect from it. Could I post it > here in order to get help from your kind experience? > > Thanks and, apologize if I break some list rules. > > Gabriel. > —Namasté! > Sent from my iMac27. (Libero) > > > |
Date | 2015-06-10 21:47 |
From | Gabriele Battaglia |
Subject | Re: Introducing myself and a question. |
> Il giorno 10/giu/2015, alle ore 22:03, jpff |
Date | 2015-06-10 22:12 |
From | Victor Lazzarini |
Subject | Re: Introducing myself and a question. |
rand is white noise, which modulates your frequency generating lots of components and aliasing too. Try using randh (for steady held values) or randi (for linearly interpolated values) with 1/0.3 for frequency (so the rand value is drawn every .3 secs) Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland > On 10 Jun 2015, at 21:47, Gabriele Battaglia |
Date | 2015-06-11 09:10 |
From | Gabriele Battaglia |
Subject | Re: Introducing myself and a question. |
Reply to the Victor Lazzarini's message, wrote on 10/06/2015 at 23:12: > rand is white noise, which modulates your frequency generating lots of components and aliasing too. Try using randh (for steady held values) or randi (for linearly interpolated values) with 1/0.3 for frequency (so the rand value is drawn every .3 secs) > Hi Victor and thanks. Now in fact, there is no more white noise and I can hear a single, clean sine wave. But, unfortunately it seems I have not correctly understood the timed jump mecanism: the sound passes from left to right but it remains at the same frequence. Could you please help me to understand how to force jumps using time? The script right now is the following: |
Date | 2015-06-11 10:40 |
From | Victor Lazzarini |
Subject | Re: Introducing myself and a question. |
Hi Gabriele, I think you’ve misunderstood what timout + reinit is used for. If you remove that bit of code, I think you will get what you want: |
Date | 2015-06-11 10:52 |
From | Gabriele Battaglia |
Subject | Re: Introducing myself and a question. |
Reply to the Victor Lazzarini's message, wrote on 11/06/2015 at 11:40: > Hi Gabriele, > > I think you’ve misunderstood what timout + reinit is used for. If you remove that bit of code, > I think you will get what you want: > > |
Date | 2015-06-11 11:46 |
From | jpff |
Subject | Re: Introducing myself and a question. |
On Thu, 11 Jun 2015, Gabriele Battaglia wrote: >> kfr randh 250, 2 > GB: now I'm more confused than before. > How many time per second, kfr is changed? > I think it shlud be every 1/4410 (K-rate) isn't it? > Instead it seems to keep its value for a longer period of time. > How can I force it to assume a new randh value each, .1 secs, for instance. the 2 is twice a second. It cecks each k-cycle to see if it is time yet for a change ==John ff ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-06-11 12:20 |
From | hlolli |
Subject | Re: Introducing myself and a question. |
Try this for random 250Hz 1-2 times a second. |
Date | 2015-06-11 19:01 |
From | joachim heintz |
Subject | Re: Introducing myself and a question. |
hi gabriele - i send you a suggestion, without any reference to your code, and you can see if that helps. some remarks: 1. to add/subtract 50 Hz is not quite correct in respect to the way we hear. if you have a tone with frequency of 200 Hz, and you add 100 Hz, you have a fifth higher. but if you subtract 100 Hz from the same tone, you have an octave lower. so it would be better to think in intervals or cents (which you can easily apply with the cent opcode). 2. although the code uses "random", it is the same result on each run. if you want a different one, you must give a different seed to the randh opcode by kFreqDev randh 50, 3, 2 3. randi instead of randh may be more interesting. 4. the amplitude should not be constant for good musical results, so we should use something like iDb random -18, 0 aSine poscil ampdb(iDb), kFreq 5. poscil is better than oscil because it is much more precise (my mission in csound =). regards - joachim |
Date | 2015-06-11 20:12 |
From | Gabriele Battaglia |
Subject | Re: Introducing myself and a question. |
> Il giorno 11/giu/2015, alle ore 20:01, joachim heintz |
Date | 2015-06-11 21:58 |
From | luis jure |
Subject | Re: Introducing myself and a question. |
el 2015-06-11 a las 21:12 Gabriele Battaglia escribió: > I’ve just tried the code you wrote and there is no output sound from my > system. mmm... this is strange. apart from his very valuable suggestions, joachim's orchestra works flawlessly. there's nothing wrong with the and it produces the expected output. so it is strange that you don't get any sound. and you don't get any error message either? just out of curiosity, what version of csound are you using? and operating system? ciao, lj ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-06-11 22:36 |
From | Gabriele Battaglia |
Subject | Re: Introducing myself and a question. |
> Il giorno 11/giu/2015, alle ore 22:58, luis jure |
Date | 2015-06-12 08:48 |
From | Wolf Peuker |
Subject | Re: Introducing myself and a question. |
Hi Joachim, also I have problems getting sound output from your example (with Csound5, Win8 64bit), but I got at least a message (which is strange because the poscil opcode documentation states that only 2 parameters would be required), here is it: Csound version 5.19.02 (double samples) Jan 27 2013 Reading options from $CSOUNDRC: C:\Program Files (x86)\Csound\.csoundrc UnifiedCSD: example-2015-6-11.csd Creating options Creating orchestra Creating score graph init using callback interface Parsing successful! error: insufficient required arguments for opcode poscil.kk on line 23 1 syntax errors in orchestra. compilation invalid Best, Wolf Am 11.06.2015 um 20:01 schrieb joachim heintz: > hi gabriele - > > i send you a suggestion, without any reference to your code, and you can > see if that helps. > > some remarks: > 1. to add/subtract 50 Hz is not quite correct in respect to the way we > hear. if you have a tone with frequency of 200 Hz, and you add 100 Hz, > you have a fifth higher. but if you subtract 100 Hz from the same tone, > you have an octave lower. so it would be better to think in intervals > or cents (which you can easily apply with the cent opcode). > 2. although the code uses "random", it is the same result on each run. > if you want a different one, you must give a different seed to the randh > opcode by > kFreqDev randh 50, 3, 2 > 3. randi instead of randh may be more interesting. > 4. the amplitude should not be constant for good musical results, so we > should use something like > iDb random -18, 0 > aSine poscil ampdb(iDb), kFreq > 5. poscil is better than oscil because it is much more precise (my > mission in csound =). > > regards - > joachim > > > |
Date | 2015-06-12 08:54 |
From | Gabriele Battaglia |
Subject | Re: Introducing myself and a question. |
> Il giorno 12/giu/2015, alle ore 09:48, Wolf Peuker |
Date | 2015-06-12 09:03 |
From | Victor Lazzarini |
Subject | Re: Introducing myself and a question. |
Hi Wolff, your version of Csound is quite old. Joachim’s examples are for Csound 6.00 at least (current version is 6.05). ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 12 Jun 2015, at 08:48, Wolf Peuker |
Date | 2015-06-12 09:19 |
From | Gabriele Battaglia |
Subject | Solved. Re: Introducing myself and a question. |
Sorry all. The joachim’s example works. It was my fault forgetting to copy the 0dbfs = 1 statement. Gabriel. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-06-12 09:30 |
From | Gabriele Battaglia |
Subject | What I wanted. Was: Re: Introducing myself and a question. |
Ok, here is the example sounding how I wanted. Again thanks to Joachim for he’s precious suggestions and teaching. |
Date | 2015-06-12 09:36 |
From | Wolf Peuker |
Subject | Re: Introducing myself and a question. |
Hi Victor, I just upgraded to the latest version of Csound6, and it works. Thanks for the "gentle pressure" :-) But *why* is this example not working with Csound5 (I don't see any Cs6 requirements here), could you explain it? Thanks in advance, Wolf Am 12.06.2015 um 10:03 schrieb Victor Lazzarini: > Hi Wolff, > > your version of Csound is quite old. Joachim’s examples are for Csound 6.00 at least > (current version is 6.05). > ======================== > Dr Victor Lazzarini > Dean of Arts, Celtic Studies and Philosophy, > Maynooth University, > Maynooth, Co Kildare, Ireland > Tel: 00 353 7086936 > Fax: 00 353 1 7086952 > >> On 12 Jun 2015, at 08:48, Wolf Peuker |
Date | 2015-06-12 09:44 |
From | Victor Lazzarini |
Subject | Re: Introducing myself and a question. |
It was only in Csound 6 that we introduced the optional table parameter for oscil, poscil etc ======================== Dr Victor Lazzarini Dean of Arts, Celtic Studies and Philosophy, Maynooth University, Maynooth, Co Kildare, Ireland Tel: 00 353 7086936 Fax: 00 353 1 7086952 > On 12 Jun 2015, at 09:36, Wolf Peuker |
Date | 2015-06-12 11:16 |
From | jpff |
Subject | Re: Introducing myself and a question. |
Attachments | None None |
The introduction of the default sie table ws introdced in csound6 I think. Certiny recent On Fri, 12 Jun 2015, Wolf Peuker wrote: > Hi Victor, > > I just upgraded to the latest version of Csound6, and it works. Thanks > for the "gentle pressure" :-) > But *why* is this example not working with Csound5 (I don't see any Cs6 > requirements here), could you explain it? > > Thanks in advance, > Wolf > > Am 12.06.2015 um 10:03 schrieb Victor Lazzarini: >> Hi Wolff, >> >> your version of Csound is quite old. Joachim’s examples are for Csound 6.00 at least >> (current version is 6.05). >> ======================== >> Dr Victor Lazzarini >> Dean of Arts, Celtic Studies and Philosophy, >> Maynooth University, >> Maynooth, Co Kildare, Ireland >> Tel: 00 353 7086936 >> Fax: 00 353 1 7086952 >> >>> On 12 Jun 2015, at 08:48, Wolf Peuker |
Date | 2015-06-12 11:48 |
From | Wolf Peuker |
Subject | Re: Introducing myself and a question. |
Am 12.06.2015 um 12:16 schrieb jpff: > The introduction of the default sie table ws introdced in csound6 I > think. Certiny recent > Ah, now I see. The manual isn't clear about this, but I confess dealing with version-dependent *optionality* isn't really easy. I'm still a beginner and also new to this list. That's why I didn't realize that there was such an important change for the *oscil opcodes. @Victor: Sorry, I starred on the word *table* in your email and didn't get your message. Thanks for clarifying :-) Wolf ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-06-12 19:53 |
From | jpff |
Subject | Re: Introducing myself and a question. |
Attachments | None None |
On Fri, 12 Jun 2015, Wolf Peuker wrote: > Hi Victor, > > I just upgraded to the latest version of Csound6, and it works. Thanks > for the "gentle pressure" :-) > But *why* is this example not working with Csound5 (I don't see any Cs6 > requirements here), could you explain it? > > Thanks in advance, > Wolf > > Am 12.06.2015 um 10:03 schrieb Victor Lazzarini: >> Hi Wolff, >> >> your version of Csound is quite old. Joachim’s examples are for Csound 6.00 at least >> (current version is 6.05). >> ======================== >> Dr Victor Lazzarini >> Dean of Arts, Celtic Studies and Philosophy, >> Maynooth University, >> Maynooth, Co Kildare, Ireland >> Tel: 00 353 7086936 >> Fax: 00 353 1 7086952 >> >>> On 12 Jun 2015, at 08:48, Wolf Peuker |
Date | 2015-06-12 19:54 |
From | jpff |
Subject | Re: Introducing myself and a question. |
>From the manual |
Date | 2015-06-15 10:59 |
From | Gabriele Battaglia |
Subject | Re2: Introducing myself and a question. |
Reply to the joachim heintz's message, wrote on 11/06/2015 at 20:01: > hi gabriele - Hello again Joachim. > > i send you a suggestion, without any reference to your code, and you can > see if that helps. Thanks, it helped a lot. > > some remarks: > 1. to add/subtract 50 Hz is not quite correct in respect to the way we > hear. if you have a tone with frequency of 200 Hz, and you add 100 Hz, > you have a fifth higher. but if you subtract 100 Hz from the same tone, > you have an octave lower. so it would be better to think in intervals > or cents (which you can easily apply with the cent opcode). Ok, I read the guide for cent and understood how it works. > 2. although the code uses "random", it is the same result on each run. > if you want a different one, you must give a different seed to the randh > opcode by > kFreqDev randh 50, 3, 2 I've implemented it on my CSD file, it works now and all sounds change in a different way from the preview one but CSound gives me a warning: "WARNING: Seeding from current time... followed by an integer number. What does it mean and is it something I must fix? > 3. randi instead of randh may be more interesting. Totally agree! The played sound is nicer. > 4. the amplitude should not be constant for good musical results, so we > should use something like > iDb random -18, 0 > aSine poscil ampdb(iDb), kFreq Ok, I think I have to left this concept for further investigation because right know I believe to be ... to much beginner to understand. :) My dubt is: if a set and instrument to play at 0.5 volume, why I would decrease it at -18dB? > 5. poscil is better than oscil because it is much more precise (my > mission in csound =). Thanks: I'm going to use poscil instead. Do you know some case in which oscil would be preferable to poscil? And why? > > regards - To you too, all the best from Italy. Gabriel. ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2015-06-15 19:44 |
From | joachim heintz |
Subject | Re: Re2: Introducing myself and a question. |
hi back - the warning message for seed is ok. i understand it as kind of service for us, telling us the particular seed value here. and a warning is not an error. the usage of oscil is, i think, due to historical reasons. there was a time where the way oscil works was cheaper in terms of cpu usage. now we should use the more precise oscillator, to avoid bad surprises in certain situations (like very low frequencies). this is at least the mission to which i dedicated my life ... =) tschüss - joachim Am 15.06.2015 um 11:59 schrieb Gabriele Battaglia: > > > Reply to the joachim heintz's message, wrote on 11/06/2015 at 20:01: >> hi gabriele - > Hello again Joachim. > >> >> i send you a suggestion, without any reference to your code, and you can >> see if that helps. > Thanks, it helped a lot. > >> >> some remarks: >> 1. to add/subtract 50 Hz is not quite correct in respect to the way we >> hear. if you have a tone with frequency of 200 Hz, and you add 100 Hz, >> you have a fifth higher. but if you subtract 100 Hz from the same tone, >> you have an octave lower. so it would be better to think in intervals >> or cents (which you can easily apply with the cent opcode). > Ok, I read the guide for cent and understood how it works. > >> 2. although the code uses "random", it is the same result on each run. >> if you want a different one, you must give a different seed to the randh >> opcode by >> kFreqDev randh 50, 3, 2 > I've implemented it on my CSD file, it works now and all sounds change > in a different way from the preview one but CSound gives me a warning: > > "WARNING: Seeding from current time... followed by an integer number. > What does it mean and is it something I must fix? > >> 3. randi instead of randh may be more interesting. > Totally agree! The played sound is nicer. > >> 4. the amplitude should not be constant for good musical results, so we >> should use something like >> iDb random -18, 0 >> aSine poscil ampdb(iDb), kFreq > Ok, I think I have to left this concept for further investigation > because right know I believe to be ... to much beginner to understand. > :) My dubt is: if a set and instrument to play at 0.5 volume, why I > would decrease it at -18dB? > >> 5. poscil is better than oscil because it is much more precise (my >> mission in csound =). > Thanks: I'm going to use poscil instead. Do you know some case in which > oscil would be preferable to poscil? And why? > >> >> regards - > To you too, all the best from Italy. > > Gabriel. > > ------------------------------------------------------------------------------ > _______________________________________________ > Csound-users mailing list > Csound-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-users > Send bugs reports to > https://github.com/csound/csound/issues > Discussions of bugs and features can be posted here > ------------------------------------------------------------------------------ _______________________________________________ Csound-users mailing list Csound-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/csound-users Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |