[Csnd] random pch
| Date | 2011-10-26 10:26 |
| From | francesco |
| Subject | [Csnd] random pch |
Again hello All,
i needed to randomly choice a pch number.
I have solved this but could not possible to have an opcode for this?
If not yet present!
Thanks,
ciao,
francesco.
--
View this message in context: http://csound.1045644.n5.nabble.com/random-pch-tp4939213p4939213.html
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-10-26 10:35 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] random pch |
rand ?
On 26 Oct 2011, at 10:26, francesco wrote:
> Again hello All,
> i needed to randomly choice a pch number.
> I have solved this but could not possible to have an opcode for this?
> If not yet present!
>
> Thanks,
> ciao,
> francesco.
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/random-pch-tp4939213p4939213.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body
> "unsubscribe csound"
>
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-10-26 10:44 |
| From | francesco |
| Subject | [Csnd] Re: random pch |
Yes, but for pch i need a octave number and a number (after a dot) in range
0 to 11. I can do it, but, if i'm not wrong, i need to do something like:
ioct random 5, 7
idec random 0, 11
ioct = int(ioct) + int(idec)*0.01
or there is other way?
thanks,
ciao,
francesco.
--
View this message in context: http://csound.1045644.n5.nabble.com/random-pch-tp4939213p4939255.html
Sent from the Csound - General mailing list archive at Nabble.com.
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-10-26 11:07 |
| From | jpff@cs.bath.ac.uk |
| Subject | Re: [Csnd] Re: random pch |
That is more or les what I have done. If you want notes from a scale i
use a table and 0dec selects from that.
==John ff
> Yes, but for pch i need a octave number and a number (after a dot) in
> range
> 0 to 11. I can do it, but, if i'm not wrong, i need to do something like:
>
> ioct random 5, 7
>
> idec random 0, 11
>
> ioct = int(ioct) + int(idec)*0.01
>
> or there is other way?
>
> thanks,
> ciao,
> francesco.
>
>
> --
> View this message in context:
> http://csound.1045644.n5.nabble.com/random-pch-tp4939213p4939255.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
> csound"
>
>
>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-10-26 11:40 |
| From | Victor Lazzarini |
| Subject | Re: [Csnd] Re: random pch |
k1 randh 400, 1
k1 = abs(k1) + 400
k1 = cpspch(400)
Victor
On 26 Oct 2011, at 10:44, francesco wrote:
> Yes, but for pch i need a octave number and a number (after a dot)
> in range
> 0 to 11. I can do it, but, if i'm not wrong, i need to do something
> like:
>
> ioct random 5, 7
>
> idec random 0, 11
>
> ioct = int(ioct) + int(idec)*0.01
>
> or there is other way?
>
> thanks,
> ciao,
> francesco.
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/random-pch-tp4939213p4939255.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body
> "unsubscribe csound"
>
Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|
| Date | 2011-10-26 11:58 |
| From | joachim heintz |
| Subject | Re: [Csnd] Re: random pch |
yes, you can use pchoct:
ioct random 5,7 ;returns an equal distributed random value from octave 5
and 6
ipch = pchoct(ioct) ;converts to the pitch-class notation
prints "ioct = %f, ipch = %f, ifreq = %f\n", ioct, ipch, cpsoct(ioct)
;prints the values
for instance:
ioct = 6.765746, ipch = 6.091889, ifreq = 111.197823
best -
joachim
Am 26.10.2011 11:44, schrieb francesco:
> Yes, but for pch i need a octave number and a number (after a dot) in range
> 0 to 11. I can do it, but, if i'm not wrong, i need to do something like:
>
> ioct random 5, 7
>
> idec random 0, 11
>
> ioct = int(ioct) + int(idec)*0.01
>
> or there is other way?
>
> thanks,
> ciao,
> francesco.
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/random-pch-tp4939213p4939255.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|