Csound Csound-dev Csound-tekno Search About

[Csnd] 96 notes per octave

Date2010-04-17 08:33
FromStefan Thomas
Subject[Csnd] 96 notes per octave
Dear community,
I've read in the csound-manual the article aboud cpstmid
There I've read that I can define a  non standard scale in this way:
  ;          numgrades interval  basefreq basekeymidi tuning ratios (equal temp)   
  f1 0 64 -2   12       2        261        60         1  1.059463094359  1.122462048309  1.189207115003

Now I would like to create a scale with 96 notes per octave.
Off course I could do
  ;          numgrades interval  basefreq basekeymidi tuning ratios (equal temp)   
  f1 0 64 -2   96       2             261        60         1 
But then I had to calculate 96 ratios!!
Isn't there possibility to do this in a more convenient way?


Date2010-04-17 12:32
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: 96 notes per octave
If you want equal division, then cps2pch is the opcode you need


ps2pch — Converts a pitch-class value into cycles-per-second (Hz) for
equal divisions of the octave.
Description

Converts a pitch-class value into cycles-per-second (Hz) for equal
divisions of the octave.
Syntax

icps cps2pch ipch, iequal


Or is you must use MIDI....no idea
> I've read in the csound-manual the article aboud cpstmid
> There I've read that I can define a  non standard scale in this way:
>
> ;          numgrades interval  basefreq basekeymidi tuning ratios
> (equal temp)
>   f1 0 64 -2   12       2        261        60         1
> 1.059463094359  1.122462048309  1.189207115003
>
> Now I would like to create a scale with 96 notes per octave.
> Off course I could do
>
> ;          numgrades interval  basefreq basekeymidi tuning ratios
> (equal temp)
>   f1 0 64 -2   96       2             261        60         1
> But then I had to calculate 96 ratios!!
> Isn't there possibility to do this in a more convenient way?
>
> 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"

Date2010-04-17 13:28
Fromjoachim heintz
Subject[Csnd] Re: 96 notes per octave
Hi Stefan -

probably your function table supports the syntax [2^(0/96)] [2^(1/96)]  
[2^(2/96)] ...
So this is at least much better, though you still have to type a lot.

Or you script it in this way, and copy the result:



-nm0 -+max_str_len=10000


instr 1
Sout = "f1 0 64 -2 96 2 261 60"
istart = 0
loop:
ival = 2 ^ (istart/96)
Snew sprintf "%s %f", Sout, ival
Sout = Snew
loop_lt istart, 1, 96, loop
puts Sout, 1
endin


i 1 0 0
e



Ciao -

	joachim


Am 17.04.2010 um 09:33 schrieb Stefan Thomas:

> Dear community,
> I've read in the csound-manual the article aboud cpstmid
> There I've read that I can define a  non standard scale in this way:
>   ;          numgrades interval  basefreq basekeymidi tuning ratios  
> (equal temp)
>   f1 0 64 -2   12       2        261        60         1   
> 1.059463094359  1.122462048309  1.189207115003
>
> Now I would like to create a scale with 96 notes per octave.
> Off course I could do
>   ;          numgrades interval  basefreq basekeymidi tuning ratios  
> (equal temp)
>   f1 0 64 -2   96       2             261        60         1
> But then I had to calculate 96 ratios!!
> Isn't there possibility to do this in a more convenient way?
>



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"