Csound Csound-dev Csound-tekno Search About

[Csnd] Re: Re: Re: Re: Re: Re: 96 notes per octave

Date2010-05-16 13:57
From"vallste@libero.it"
Subject[Csnd] Re: Re: Re: Re: Re: Re: 96 notes per octave
I also think that ftgen is the way to go, table numbers must be unique.
If you want to modify the file to generate "numbers" separated by a comma 
change this line:

fail.write(str(multip)+"\n")

to

fail.write(", " + str(multip))

than you can do something like this (by renaming the output file to 96tet.
inc):

gitable96tet ftgen 1, 0, -128, -2 #include "/pathtotherightfolder/96tet.inc"

I suppose...

----Messaggio originale----
Da: kontrapunktstefan@googlemail.com
Data: 16/05/2010 14.33
A: 
Ogg: [Csnd] Re: Re: Re: Re: Re: 96 notes per octave

Dear John, 
thanks. I've also found good advices at 
http://www.csounds.com/journal/2006winter/encapsulatedInstruments.html

2010/5/16  
Use ftgen in instrument zero and it wilkk return a table number you can
put in a global
==John ff

> Dear Vallste,
> thanks for Your great tool, I tried it now, it works fine.
> Know I would like to build a tuning-library.
> I know I can build a table like
>
>> f10 0 128 -2 96 2 261.63  60 1.00  \
>> 1.00724641222 1.01454533494 1.02189714865 1.02930223664 1.03676098495 \
>> ;etc
>>
> but my problem is:
> I guess the number of the tuningtable will not always be 10.
> Is it possible to create a unique lable for such a scale (e.g."96tet.inc")
> so that I can later write:
> #include "/pathtotherightfolder/96tet.inc" ?
> This would be great, I think.
>
> 2010/4/17 vallste@libero.it 
>
>> Hello,
>> I've created a python program that can calculate the multiplication
>> ratios
>> for
>> equal spaced temperament (how many intervals you want with the
>> multiplication
>> factor that could be different than 2) and save them in a txt file. You
>> can
>> download it here:
>> http://triceratupuz.altervista.org/_altervista_ht/pages/python_en.html
>> Bye
>> Stefano
>>
>>
>> >----Messaggio originale----
>> >Da: jh@joachimheintz.de
>> >Data: 17/04/2010 14.28
>> >A: 
>> >Ogg: [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"
>> >
>> >
>>
>>
>>
>>
>> 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"
>
>




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"