Csound Csound-dev Csound-tekno Search About

[Csnd-dev] Setting A4 base

Date2016-09-01 11:35
Fromjpff
Subject[Csnd-dev] Setting A4 base
I have just committed code tat introduces a new r-variable named A4
which can be used in the header section to set the frequency of A4,
defaulting to 440Hz.  Only weakly tested; please try

Date2016-09-01 13:33
FromTarmo Johannes
SubjectRe: [Csnd-dev] Setting A4 base
Thanks, John,

seems good extention.

Do I understand correctly that it works something like:

; in orchestra
sr = 44100 
0dbfs = 1 
; etc

A4= 999.999 ; for and extremely divine tuning  ;)

----

and then all opcodes converting MIDI notes (and oct-style like 8.01?) take 
that into account?

Or which opcodes are affected?

Thanks,
tarmo

On Thursday 01 September 2016 11:35:24 you wrote:
> I have just committed code tat introduces a new r-variable named A4
> which can be used in the header section to set the frequency of A4,
> defaulting to 440Hz.  Only weakly tested; please try

Date2016-09-01 14:14
FromJohn
SubjectRe: [Csnd-dev] Setting A4 base

Basically yes.  All opcodes that convert to Hertz like cpspch.  440 is almost removed from the code

Sent from TypeApp

On 1 Sep 2016, at 13:34, Tarmo Johannes <trmjhnns@GMAIL.COM> wrote:
Thanks, John,

seems good extention.

Do I understand correctly that it works something like:

; in orchestra
sr = 44100
0dbfs = 1
; etc

A4= 999.999 ; for and extremely divine tuning ;)

----

and then all opcodes converting MIDI notes (and oct-style like 8.01?) take
that into account?

Or which opcodes are affected?

Thanks,
tarmo

On Thursday 01 September 2016 11:35:24 you wrote:
I have just committed code tat introduces a new r-variable named A4
which can be used in the header section to set the frequency of A4,
defaulting to 440Hz. Only weakly tested; please try
==John ffitch

Date2016-09-01 14:39
FromTarmo Johannes
SubjectRe: [Csnd-dev] Setting A4 base
AttachmentsA4-test.csd  
Hi,

I pulled from git develop branch and made a quick test:
---


-odac -d



sr = 44100
nchnls = 2
0dbfs = 1
ksmps = 32

A4 = 999.999

instr 1
        out poscil(0.1,p4)
endin

instr 2
 out poscil(0.1, cpspch(p4) )
endin



i1 0 1 440
i 2 2 1 8.09



----

Unfortunately both imstruments sound the same although they should not...

I attach also the csd.

Thanks!
tarmo

On Thursday 01 September 2016 14:14:38 John wrote:
> Basically yes.  All opcodes that convert to Hertz like cpspch.  440 is
> almost removed from the code
> 
> Sent from TypeApp
> 
> On 1 Sep 2016 13:34, at 13:34, Tarmo Johannes  wrote:
> >Thanks, John,
> >
> >seems good extention.
> >
> >Do I understand correctly that it works something like:
> >
> >; in orchestra
> >sr = 44100
> >0dbfs = 1
> >; etc
> >
> >A4= 999.999 ; for and extremely divine tuning  ;)
> >
> >----
> >
> >and then all opcodes converting MIDI notes (and oct-style like 8.01?)
> >take
> >that into account?
> >
> >Or which opcodes are affected?
> >
> >Thanks,
> >tarmo
> >
> >On Thursday 01 September 2016 11:35:24 you wrote:
> >> I have just committed code tat introduces a new r-variable named A4
> >> which can be used in the header section to set the frequency of A4,
> >> defaulting to 440Hz.  Only weakly tested; please try
> >> ==John ffitch

Date2016-09-01 15:52
Fromjpff
SubjectRe: [Csnd-dev] Setting A4 base
hum..Seemed to work in my test. Time to debug

Date2016-09-01 17:59
Fromjpff
SubjectRe: [Csnd-dev] Setting A4 base
mY FALT -- i MISED A CASE.  Will fix asap. A4 variable works anywy.
May take a while...

On Thu, 1 Sep 2016, jpff wrote:

> hum..Seemed to work in my test. Time to debug
> ==John ff