Csound Csound-dev Csound-tekno Search About

Help writing C++ Hello CSound World required

Date2016-10-23 10:46
FromSymon
SubjectHelp writing C++ Hello CSound World required
I want to create a simply wav-file with mixed together 2 sinusoids of
different frequencies.
For example 200 Hz and 250 Hz mixed together in 1 sec, 44100 Hz, 16 bit
wav-file.



--
View this message in context: http://csound.1045644.n5.nabble.com/Help-writing-C-Hello-CSound-World-required-tp5752256.html
Sent from the Csound - General mailing list archive at Nabble.com.

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

Date2016-10-23 11:33
FromTarmo Johannes
SubjectRe: Help writing C++ Hello CSound World required

Hi,

 

Have a look at

http://www.csounds.com/manual/html/SiggenBasic.html

http://www.csounds.com/manual/html/oscil.html

 

 

And for getting started:

http://write.flossmanuals.net/csound/a-make-csound-run/

 

If you use CsoundQt, look into examples: Examples -> Getting Started -> Basics -> Hello World (makes a beep).

 

 

tarmo

 

 

On Sunday, October 23, 2016 02:46:01 AM you wrote:

> I want to create a simply wav-file with mixed together 2 sinusoids of

> different frequencies.

> For example 200 Hz and 250 Hz mixed together in 1 sec, 44100 Hz, 16 bit

> wav-file.

>

>

>

> --

> View this message in context:

> http://csound.1045644.n5.nabble.com/Help-writing-C-Hello-CSound-World-requi

> red-tp5752256.html Sent from the Csound - General mailing list archive at

> Nabble.com.

>

> 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

 


Date2016-10-23 11:40
FromRory Walsh
SubjectRe: Help writing C++ Hello CSound World required
If you're looking at getting starting with the Csound host API, check out the following links:


You can use Csound to generate the wave files for you, but you call Csound from your host app. If you get a basic host application built the rest should fall into place easily enough. Btw, what OS are you using? I would really remcommend Linux for learning to use the API. It's the easiest platform to get setup and running on. 


On 23 October 2016 at 11:33, Tarmo Johannes <tarmo.johannes@otsakool.edu.ee> wrote:

Hi,

 

Have a look at

http://www.csounds.com/manual/html/SiggenBasic.html

http://www.csounds.com/manual/html/oscil.html

 

 

And for getting started:

http://write.flossmanuals.net/csound/a-make-csound-run/

 

If you use CsoundQt, look into examples: Examples -> Getting Started -> Basics -> Hello World (makes a beep).

 

 

tarmo

 

 

On Sunday, October 23, 2016 02:46:01 AM you wrote:

> I want to create a simply wav-file with mixed together 2 sinusoids of

> different frequencies.

> For example 200 Hz and 250 Hz mixed together in 1 sec, 44100 Hz, 16 bit

> wav-file.

>

>

>

> --

> View this message in context:

> http://csound.1045644.n5.nabble.com/Help-writing-C-Hello-CSound-World-requi

> red-tp5752256.html Sent from the Csound - General mailing list archive at

> Nabble.com.

>

> 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

Date2016-10-23 12:08
Fromjpff
SubjectRe: Help writing C++ Hello CSound World required
I thought the question was about C++ in which case use libsndfile to 
create the wav file and calls to sin() to create the data

But if you ask such basic stuff I would suggest csound is a better route.

On Sun, 23 Oct 2016, Rory Walsh wrote:

> If you're looking at getting starting with the Csound host API, check out
> the following links:
> http://csound.github.io/create.html#desktop_apps
> 
> You can use Csound to generate the wave files for you, but you call Csound
> from your host app. If you get a basic host application built the rest
> should fall into place easily enough. Btw, what OS are you using? I would
> really remcommend Linux for learning to use the API. It's the easiest
> platform to get setup and running on. 
> 
> 
> On 23 October 2016 at 11:33, Tarmo Johannes 
> wrote:
>
>       Hi,
>
>        
>
>       Have a look at
>
>       http://www.csounds.com/manual/html/SiggenBasic.html
>
>       http://www.csounds.com/manual/html/oscil.html
>
>        
>
>        
>
>       And for getting started:
>
>       http://write.flossmanuals.net/csound/a-make-csound-run/
>
>        
>
>       If you use CsoundQt, look into examples: Examples -> Getting
>       Started -> Basics -> Hello World (makes a beep).
>
>        
>
>        
>
>       tarmo
>
>        
>
>        
>
>       On Sunday, October 23, 2016 02:46:01 AM you wrote:
>
>       > I want to create a simply wav-file with mixed together 2
>       sinusoids of
>
>       > different frequencies.
>
>       > For example 200 Hz and 250 Hz mixed together in 1 sec, 44100
>       Hz, 16 bit
>
>       > wav-file.
>
>       >
>
>       >
>
>       >
>
>       > --
>
>       > View this message in context:
>
>       >http://csound.1045644.n5.nabble.com/Help-writing-C-Hello-CSound-World-requi
>
>       > red-tp5752256.html Sent from the Csound - General mailing list
>       archive at
>
>       > Nabble.com.
>
>       >
>
>       > 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