Csound Csound-dev Csound-tekno Search About

[Csnd-dev] printf warnings in voice

Date2019-10-22 23:09
FromHlöðver Sigurðsson
Subject[Csnd-dev] printf warnings in voice
Just a question, do we want csound to be printin warning about the selected formant in the voice opcode. There is number to formant list in the manual documented, I wonder if that's enough, "plus audio sr" and "opening" which looks like a dev printf to me.

output of voice.csd from the manual
```
SECTION 1:
ftable 1:
WARNING: impuls20.aiff sr = 22050, orch sr = 44100.0
audio sr = 22050, monaural
opening AIFF infile impuls20.aiff
ftable 1: 256 points, scalemax 1.000
_





 .                                                             .


    _                                                       _
_______.__.___________________________________________.__.______
   . _. -. -. '. '.''.''-''--'-- --'--''-''.''.' .' .- .- ._ .

  '                                                           '
ftable 2:
ftable 2: 256 points, scalemax 1.000
                _
            _-'' ''-_
          .'         '.
        _-             -_
       .                 .
      -                   -
     -                     -
    '                       '
   '                         '
  '                           '
_'_____________________________'________________________________
                                 _                             _
                                  _                           _
                                   _                         _
                                    _                       _
                                     .                     .
                                      .                   .
                                       -                 -
                                        '.             .'
                                          -_         _-
                                            '._____.'
new alloc for instr 1:
Found Formant: eee (number 0)
WARNING: Setting Phoneme: 1 0.488000

Found Formant: ihh (number 1)
B  0.000 ..  2.000 T  2.000 TT  2.000 M:  0.31200  0.31200
Found Formant: ihh (number 1)
WARNING: Setting Phoneme: 2 0.488000

Found Formant: ehh (number 2)
B  2.000 ..  4.000 T  4.000 TT  4.000 M:  0.39439  0.39439
Found Formant: ehh (number 2)
WARNING: Setting Phoneme: 3 0.488000

Found Formant: aaa (number 3)
B  4.000 ..  6.000 T  6.000 TT  6.000 M:  0.30044  0.30044
Found Formant: aaa (number 3)
WARNING: Setting Phoneme: 4 0.488000

Found Formant: ahh (number 4)
B  6.000 ..  8.000 T  8.000 TT  8.000 M:  0.25619  0.25619
Found Formant: ahh (number 4)
WARNING: Setting Phoneme: 5 0.488000

Found Formant: aww (number 5)
B  8.000 .. 10.000 T 10.000 TT 10.000 M:  0.35304  0.35304
Found Formant: aww (number 5)
WARNING: Setting Phoneme: 6 0.488000

Found Formant: ohh (number 6)
B 10.000 .. 12.000 T 12.000 TT 12.000 M:  0.37347  0.37347
Found Formant: ohh (number 6)
WARNING: Setting Phoneme: 7 0.488000

Found Formant: uhh (number 7)
B 12.000 .. 14.000 T 14.000 TT 14.000 M:  0.37219  0.37219
Found Formant: uhh (number 7)
WARNING: Setting Phoneme: 8 0.488000

Found Formant: uuu (number 8)
B 14.000 .. 16.000 T 16.000 TT 16.000 M:  0.17511  0.17511
Found Formant: uuu (number 8)
WARNING: Setting Phoneme: 9 0.488000

Found Formant: ooo (number 9)
B 16.000 .. 18.000 T 18.000 TT 18.000 M:  0.22532  0.22532
Found Formant: ooo (number 9)
WARNING: Setting Phoneme: 10 0.488000

Found Formant: rrr (number 10)
B 18.000 .. 20.000 T 20.000 TT 20.000 M:  0.17463  0.17463
Found Formant: rrr (number 10)
WARNING: Setting Phoneme: 11 0.488000

Found Formant: lll (number 11)
B 20.000 .. 22.000 T 22.000 TT 22.000 M:  0.01181  0.01181
Found Formant: lll (number 11)
WARNING: Setting Phoneme: 12 0.488000

Found Formant: mmm (number 12)
B 22.000 .. 24.000 T 24.000 TT 24.000 M:  0.27723  0.27723
Found Formant: mmm (number 12)
WARNING: Setting Phoneme: 13 0.488000

Found Formant: nnn (number 13)
B 24.000 .. 26.000 T 26.000 TT 26.000 M:  0.25610  0.25610
Found Formant: nnn (number 13)
WARNING: Setting Phoneme: 14 0.488000

Found Formant: nng (number 14)
B 26.000 .. 28.000 T 28.000 TT 28.000 M:  0.23534  0.23534
Found Formant: nng (number 14)
WARNING: Setting Phoneme: 15 0.488000

Found Formant: ngg (number 15)
B 28.000 .. 30.000 T 30.000 TT 30.000 M:  0.23130  0.23130
Found Formant: ngg (number 15)
WARNING: Setting Phoneme: 16 0.488000

Found Formant: fff (number 16)
```

Date2019-10-23 11:52
FromJohn ff
SubjectRe: [Csnd-dev] printf warnings in voice
I seem to remember that those messages were inserted as the opcode was not working.  So no they're not needed but ensuring that the opcode works is a good idea!


⁣Sent from TypeApp ​

On Oct 22, 2019, 23:10, at 23:10, "Hlöðver Sigurðsson"  wrote:
>Just a question, do we want csound to be printin warning about the
>selected
>formant in the voice opcode. There is number to formant list in the
>manual
>documented, I wonder if that's enough, "plus audio sr" and "opening"
>which
>looks like a dev printf to me.
>
>output of voice.csd from the manual
>```
>SECTION 1:
>ftable 1:
>WARNING: impuls20.aiff sr = 22050, orch sr = 44100.0
>audio sr = 22050, monaural
>opening AIFF infile impuls20.aiff
>ftable 1: 256 points, scalemax 1.000
>_
>
>
>
>
>
> .                                                             .
>
>
>    _                                                       _
>_______.__.___________________________________________.__.______
>   . _. -. -. '. '.''.''-''--'-- --'--''-''.''.' .' .- .- ._ .
>
>  '                                                           '
>ftable 2:
>ftable 2: 256 points, scalemax 1.000
>                _
>            _-'' ''-_
>          .'         '.
>        _-             -_
>       .                 .
>      -                   -
>     -                     -
>    '                       '
>   '                         '
>  '                           '
>_'_____________________________'________________________________
>                                 _                             _
>                                  _                           _
>                                   _                         _
>                                    _                       _
>                                     .                     .
>                                      .                   .
>                                       -                 -
>                                        '.             .'
>                                          -_         _-
>                                            '._____.'
>new alloc for instr 1:
>Found Formant: eee (number 0)
>WARNING: Setting Phoneme: 1 0.488000
>
>Found Formant: ihh (number 1)
>B  0.000 ..  2.000 T  2.000 TT  2.000 M:  0.31200  0.31200
>Found Formant: ihh (number 1)
>WARNING: Setting Phoneme: 2 0.488000
>
>Found Formant: ehh (number 2)
>B  2.000 ..  4.000 T  4.000 TT  4.000 M:  0.39439  0.39439
>Found Formant: ehh (number 2)
>WARNING: Setting Phoneme: 3 0.488000
>
>Found Formant: aaa (number 3)
>B  4.000 ..  6.000 T  6.000 TT  6.000 M:  0.30044  0.30044
>Found Formant: aaa (number 3)
>WARNING: Setting Phoneme: 4 0.488000
>
>Found Formant: ahh (number 4)
>B  6.000 ..  8.000 T  8.000 TT  8.000 M:  0.25619  0.25619
>Found Formant: ahh (number 4)
>WARNING: Setting Phoneme: 5 0.488000
>
>Found Formant: aww (number 5)
>B  8.000 .. 10.000 T 10.000 TT 10.000 M:  0.35304  0.35304
>Found Formant: aww (number 5)
>WARNING: Setting Phoneme: 6 0.488000
>
>Found Formant: ohh (number 6)
>B 10.000 .. 12.000 T 12.000 TT 12.000 M:  0.37347  0.37347
>Found Formant: ohh (number 6)
>WARNING: Setting Phoneme: 7 0.488000
>
>Found Formant: uhh (number 7)
>B 12.000 .. 14.000 T 14.000 TT 14.000 M:  0.37219  0.37219
>Found Formant: uhh (number 7)
>WARNING: Setting Phoneme: 8 0.488000
>
>Found Formant: uuu (number 8)
>B 14.000 .. 16.000 T 16.000 TT 16.000 M:  0.17511  0.17511
>Found Formant: uuu (number 8)
>WARNING: Setting Phoneme: 9 0.488000
>
>Found Formant: ooo (number 9)
>B 16.000 .. 18.000 T 18.000 TT 18.000 M:  0.22532  0.22532
>Found Formant: ooo (number 9)
>WARNING: Setting Phoneme: 10 0.488000
>
>Found Formant: rrr (number 10)
>B 18.000 .. 20.000 T 20.000 TT 20.000 M:  0.17463  0.17463
>Found Formant: rrr (number 10)
>WARNING: Setting Phoneme: 11 0.488000
>
>Found Formant: lll (number 11)
>B 20.000 .. 22.000 T 22.000 TT 22.000 M:  0.01181  0.01181
>Found Formant: lll (number 11)
>WARNING: Setting Phoneme: 12 0.488000
>
>Found Formant: mmm (number 12)
>B 22.000 .. 24.000 T 24.000 TT 24.000 M:  0.27723  0.27723
>Found Formant: mmm (number 12)
>WARNING: Setting Phoneme: 13 0.488000
>
>Found Formant: nnn (number 13)
>B 24.000 .. 26.000 T 26.000 TT 26.000 M:  0.25610  0.25610
>Found Formant: nnn (number 13)
>WARNING: Setting Phoneme: 14 0.488000
>
>Found Formant: nng (number 14)
>B 26.000 .. 28.000 T 28.000 TT 28.000 M:  0.23534  0.23534
>Found Formant: nng (number 14)
>WARNING: Setting Phoneme: 15 0.488000
>
>Found Formant: ngg (number 15)
>B 28.000 .. 30.000 T 30.000 TT 30.000 M:  0.23130  0.23130
>Found Formant: ngg (number 15)
>WARNING: Setting Phoneme: 16 0.488000
>
>Found Formant: fff (number 16)
>```