Csound Csound-dev Csound-tekno Search About

Creating an accessible Tuner.

Date2017-01-05 17:46
FromGabriele Battaglia <0000013f12e4daf0-dmarc-request@LISTSERV.HEANET.IE>
SubjectCreating an accessible Tuner.
Hi all.
As I told while I introduced myself, some time ago, I’m totally blind and I use computer throughout screen reader and braille display.
I’m looking for a good and fine tuner, as I’m a beginner student of music. All the tuner I found have graphical output and therefor they are not accessible to my assistive technologies.
The only one I’ve found is called talking tuner and it runs under iOS.

By the way I think it could be pretty easy to program a simple tuner using CSound.
I need a script that listen to the microphone and, each 10… 20 seconds or so, prints out to the console or prompt, the closer note detected, the + or - correction to that note, the octave which that note belongs and the detected frequency in HZ.

Do you think it would be difficult to reach?
Do you know if something like this already exist somewhere?

Many thanks.
Gabriel.
Namasté!
Sent from my iMac27. (Libero)


Date2017-01-05 17:53
FromRory Walsh
SubjectRe: Creating an accessible Tuner.
I think this would be quite possible with Csound. Do you need it run on a mobile device too, or is the desktop PC enough?

On 5 January 2017 at 17:46, Gabriele Battaglia <0000013f12e4daf0-dmarc-request@listserv.heanet.ie> wrote:
Hi all.
As I told while I introduced myself, some time ago, I’m totally blind and I use computer throughout screen reader and braille display.
I’m looking for a good and fine tuner, as I’m a beginner student of music. All the tuner I found have graphical output and therefor they are not accessible to my assistive technologies.
The only one I’ve found is called talking tuner and it runs under iOS.

By the way I think it could be pretty easy to program a simple tuner using CSound.
I need a script that listen to the microphone and, each 10… 20 seconds or so, prints out to the console or prompt, the closer note detected, the + or - correction to that note, the octave which that note belongs and the detected frequency in HZ.

Do you think it would be difficult to reach?
Do you know if something like this already exist somewhere?

Many thanks.
Gabriel.
Namasté!
Sent from my iMac27. (Libero)

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-01-05 18:01
FromGabriele Battaglia <0000013f12e4daf0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: Creating an accessible Tuner.
> Il giorno 05 gen 2017, alle ore 18:53, Rory Walsh  ha scritto:
> 
> I think this would be quite possible with Csound. Do you need it run on a mobile device too, or is the desktop PC enough?
No, It would be useful to have it running under windows and MacOS, where I have the finest microphones.
The script should have the most simple output possible: no graphics at all, just one line of characters like:

Detected: A4, +13, 453HZ

Each line should be delayed on time by several seconds, in order to give the user, time to read it in braille or using voiceover output.
Gabriel.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-01-05 18:02
Fromjpff
SubjectRe: Creating an accessible Tuner.
Sounds fairly straight forward; we ad a pitch detector in the blues band 
program that worked OK wit guitar input via microphone


On Thu, 5 Jan 2017, Rory Walsh wrote:

> I think this would be quite possible with Csound. Do you need it run on a
> mobile device too, or is the desktop PC enough?
> 
> On 5 January 2017 at 17:46, Gabriele Battaglia
> <0000013f12e4daf0-dmarc-request@listserv.heanet.ie> wrote:
>       Hi all.As I told while I introduced myself, some time ago, I’m
>       totally blind and I use computer throughout screen reader and
>       braille display.
> I’m looking for a good and fine tuner, as I’m a beginner student of
> music. All the tuner I found have graphical output and therefor they are
> not accessible to my assistive technologies.
> The only one I’ve found is called talking tuner and it runs under iOS.
> 
> By the way I think it could be pretty easy to program a simple tuner
> using CSound.
> I need a script that listen to the microphone and, each 10… 20 seconds
> or so, prints out to the console or prompt, the closer note detected,
> the + or - correction to that note, the octave which that note belongs
> and the detected frequency in HZ.
> 
> Do you think it would be difficult to reach?
> Do you know if something like this already exist somewhere?
> 
> Many thanks.
> Gabriel.
> —Namasté!
> Sent from my iMac27. (Libero)
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features
> can be posted here
> 
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-01-05 18:02
FromRory Walsh
SubjectRe: Creating an accessible Tuner.
I guess you should try some of the pitch tracking opcodes and see which give you the best results. you can print any strings from Csound using the print opcodes, and you can set up a metro to time the printing. 

On 5 January 2017 at 18:01, Gabriele Battaglia <0000013f12e4daf0-dmarc-request@listserv.heanet.ie> wrote:
> Il giorno 05 gen 2017, alle ore 18:53, Rory Walsh <rorywalsh@EAR.IE> ha scritto:
>
> I think this would be quite possible with Csound. Do you need it run on a mobile device too, or is the desktop PC enough?
No, It would be useful to have it running under windows and MacOS, where I have the finest microphones.
The script should have the most simple output possible: no graphics at all, just one line of characters like:

Detected: A4, +13, 453HZ

Each line should be delayed on time by several seconds, in order to give the user, time to read it in braille or using voiceover output.
Gabriel.
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-01-05 19:03
FromGabriele Battaglia <0000013f12e4daf0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: Creating an accessible Tuner.

Il giorno 05 gen 2017, alle ore 19:02, jpff <jpff@CODEMIST.CO.UK> ha scritto:

we ad a pitch detector in the blues band program that worked OK wit guitar input via microphone
Hello.
What is the Blues band program, you’ve mentioned?
Gabriel.
Namasté!
Sent from my iMac27. (Libero)


Date2017-01-05 19:06
FromGabriele Battaglia <0000013f12e4daf0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: Creating an accessible Tuner.

Il giorno 05 gen 2017, alle ore 19:02, Rory Walsh <rorywalsh@EAR.IE> ha scritto:

I guess you should try some of the pitch tracking opcodes and see which give you the best results. you can print any strings from Csound using the print opcodes, and you can set up a metro to time the printing. 

Ok.
I’m an absolute beginner with CSound.
Can you give me an example of the opcodes to track the pitch, and how to set a metro in order to execute a timed command?
Thanks.
Gabriel.
Namasté!
Sent from my iMac27. (Libero)


Date2017-01-05 19:18
FromIain McCurdy
SubjectRe: Creating an accessible Tuner.
AttachmentsTuner.csd  

Here is an example. I haven't tried it out with live audio yet as I am in a library at the moment. There are two global variables near the top of the orchestra: one that defines the time gap between printings and one that defines an amplitude threshold. When the input signal is below this threshold printing will be skipped. You might like to adjust these values.

Let me know how you get on with it.

Regards,

Iain




From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Gabriele Battaglia <0000013f12e4daf0-dmarc-request@LISTSERV.HEANET.IE>
Sent: 05 January 2017 19:06
To: CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] Creating an accessible Tuner.
 

Il giorno 05 gen 2017, alle ore 19:02, Rory Walsh <rorywalsh@EAR.IE> ha scritto:

I guess you should try some of the pitch tracking opcodes and see which give you the best results. you can print any strings from Csound using the print opcodes, and you can set up a metro to time the printing. 

Ok.
I’m an absolute beginner with CSound.
Can you give me an example of the opcodes to track the pitch, and how to set a metro in order to execute a timed command?
Thanks.
Gabriel.
Namasté!
Sent from my iMac27. (Libero)

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-01-05 19:24
FromRory Walsh
SubjectRe: Creating an accessible Tuner.
This is amazing Iain, you're actually in a library?!

On 5 January 2017 at 19:18, Iain McCurdy <i_mccurdy@hotmail.com> wrote:

Here is an example. I haven't tried it out with live audio yet as I am in a library at the moment. There are two global variables near the top of the orchestra: one that defines the time gap between printings and one that defines an amplitude threshold. When the input signal is below this threshold printing will be skipped. You might like to adjust these values.

Let me know how you get on with it.

Regards,

Iain




From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Gabriele Battaglia <0000013f12e4daf0-dmarc-request@LISTSERV.HEANET.IE>
Sent: 05 January 2017 19:06
To: CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] Creating an accessible Tuner.
 

Il giorno 05 gen 2017, alle ore 19:02, Rory Walsh <rorywalsh@EAR.IE> ha scritto:

I guess you should try some of the pitch tracking opcodes and see which give you the best results. you can print any strings from Csound using the print opcodes, and you can set up a metro to time the printing. 

Ok.
I’m an absolute beginner with CSound.
Can you give me an example of the opcodes to track the pitch, and how to set a metro in order to execute a timed command?
Thanks.
Gabriel.
Namasté!
Sent from my iMac27. (Libero)

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-01-05 19:31
Fromjpff
SubjectRe: Creating an accessible Tuner.
Sorry -- should have included reference



@InProceedings{JPF94,
   author =       {Andrew Brothwell and John ffitch},
   title =        {{An Automatic Blues Band}},
   booktitle =    {6th International Linux Audio Conference},
   pages =        {12--17},
   year =         {2008},
   editor =       {Frank Barknecht and Martin Rumori},
   address =      {Kunsthochscule f\"ur Medien K\"oln},
   month =        {March},
   organization = {LAC2008},
   publisher =    {Tribun EU, Gorkeho 41, Bruno 602 00},
   note =         {ISBN 978-80-7399-362-7},
   annote =       {\url{http://lac.linuxaudio.org/2008/download/papers/13.pdf}},
   pure =         {yes}
}

i can provide text and/or csd program if it helps


On Thu, 5 Jan 2017, Gabriele Battaglia wrote:

>
>       Il giorno 05 gen 2017, alle ore 19:02, jpff 
>       ha scritto:
> 
> we ad a pitch detector in the blues band program that worked OK wit
> guitar input via microphone
> 
> Hello.What is the Blues band program, you’ve mentioned?
> Gabriel.
> —Namasté!
> Sent from my iMac27. (Libero)
> 
> Csound mailing list Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features can
> be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-01-05 19:38
FromIain McCurdy
SubjectRe: Creating an accessible Tuner.

I was tempted to test it out properly but was worried about the strange looks I might get from fellow library patrons as I started humming into my laptop... 




From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Rory Walsh <rorywalsh@EAR.IE>
Sent: 05 January 2017 19:24
To: CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] Creating an accessible Tuner.
 
This is amazing Iain, you're actually in a library?!

On 5 January 2017 at 19:18, Iain McCurdy <i_mccurdy@hotmail.com> wrote:

Here is an example. I haven't tried it out with live audio yet as I am in a library at the moment. There are two global variables near the top of the orchestra: one that defines the time gap between printings and one that defines an amplitude threshold. When the input signal is below this threshold printing will be skipped. You might like to adjust these values.

Let me know how you get on with it.

Regards,

Iain




From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Gabriele Battaglia <0000013f12e4daf0-dmarc-request@LISTSERV.HEANET.IE>
Sent: 05 January 2017 19:06
To: CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] Creating an accessible Tuner.
 

Il giorno 05 gen 2017, alle ore 19:02, Rory Walsh <rorywalsh@EAR.IE> ha scritto:

I guess you should try some of the pitch tracking opcodes and see which give you the best results. you can print any strings from Csound using the print opcodes, and you can set up a metro to time the printing. 

Ok.
I’m an absolute beginner with CSound.
Can you give me an example of the opcodes to track the pitch, and how to set a metro in order to execute a timed command?
Thanks.
Gabriel.
Namasté!
Sent from my iMac27. (Libero)

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-01-05 19:49
FromRory Walsh
SubjectRe: Creating an accessible Tuner.
Be honest Iain, it's not like it would be the first time people have eyeballed you whilst you sing gleefully into your laptop!?  

On 5 January 2017 at 19:38, Iain McCurdy <i_mccurdy@hotmail.com> wrote:

I was tempted to test it out properly but was worried about the strange looks I might get from fellow library patrons as I started humming into my laptop... 




From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Rory Walsh <rorywalsh@EAR.IE>
Sent: 05 January 2017 19:24

To: CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] Creating an accessible Tuner.
 
This is amazing Iain, you're actually in a library?!

On 5 January 2017 at 19:18, Iain McCurdy <i_mccurdy@hotmail.com> wrote:

Here is an example. I haven't tried it out with live audio yet as I am in a library at the moment. There are two global variables near the top of the orchestra: one that defines the time gap between printings and one that defines an amplitude threshold. When the input signal is below this threshold printing will be skipped. You might like to adjust these values.

Let me know how you get on with it.

Regards,

Iain




From: A discussion list for users of Csound <CSOUND@LISTSERV.HEANET.IE> on behalf of Gabriele Battaglia <0000013f12e4daf0-dmarc-request@LISTSERV.HEANET.IE>
Sent: 05 January 2017 19:06
To: CSOUND@LISTSERV.HEANET.IE
Subject: Re: [Csnd] Creating an accessible Tuner.
 

Il giorno 05 gen 2017, alle ore 19:02, Rory Walsh <rorywalsh@EAR.IE> ha scritto:

I guess you should try some of the pitch tracking opcodes and see which give you the best results. you can print any strings from Csound using the print opcodes, and you can set up a metro to time the printing. 

Ok.
I’m an absolute beginner with CSound.
Can you give me an example of the opcodes to track the pitch, and how to set a metro in order to execute a timed command?
Thanks.
Gabriel.
Namasté!
Sent from my iMac27. (Libero)

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-01-07 20:50
FromGabriele Battaglia <0000013f12e4daf0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: Creating an accessible Tuner.

Il giorno 05 gen 2017, alle ore 20:18, Iain McCurdy <i_mccurdy@HOTMAIL.COM> ha scritto:

Here is an example. I haven't tried it out with live audio yet as I am in a 

Thank you so much Iain.
I’ll try it within the next days and I let you know.
I really appreciated your help.
Gabriel.

Date2017-01-07 20:53
FromGabriele Battaglia <0000013f12e4daf0-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: Creating an accessible Tuner.

Il giorno 05 gen 2017, alle ore 20:31, jpff <jpff@CODEMIST.CO.UK> ha scritto:

i can provide text and/or csd program if it helps

Hi and many many thanks.
If it’s ok for you, could you send them to me via iz4apu@libero.it

Sincerely.
Gabriel.