Csound Csound-dev Csound-tekno Search About

[Csnd] scanned synthesis tutorial

Date2012-11-12 21:46
FromJim Aikin
Subject[Csnd] scanned synthesis tutorial
Today I thought I'd have a look at scanned synthesis. Even after reading the
online tutorials, I still can't make heads or tails of it. Not to be a
whiner or anything, but has anybody written a good, thorough tutorial?

The document Steven wrote in 2003 (available on csounds.com) uses example
code that contains both errors (ga1 is undefined) and mysteries (the values
in the p-fields, as no scores are included).

This is not the only thing that leaves me scratching my head. Consider these
sentences, in the definition of the init parameter: "If this is a negative
number, then the absolute [value] of init signifies the table to use as a
hammer shape. If init > 0, the length of it should be the same as the number
of masses (128), otherwise it can be anything." Otherwise? That would have
to mean, if init == 0, right? Because that's the only other possibility. So
how can a value of 0 "be anything"? And how can a parameter (which is simply
a numerical value) have a length?

I tried running the example in the manual while replacing a couple of the
fixed k-value inputs with modestly varying data coming from a linseg, and
could detect no changes at all in the sound. Clearly, I don't know where to
start. Hence my desire for a tutorial....

Thanks in advance for any leads!



--
View this message in context: http://csound.1045644.n5.nabble.com/scanned-synthesis-tutorial-tp5717836.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-13 05:49
FromTarmo Johannes
SubjectRe: [Csnd] scanned synthesis tutorial
Attachmentsscanned-sandbox.csd  
To do the least,

here is a commented sample csd about scanned synthesis.   It is mot useful in 
CsoundQt where one can tweak different parameters via the live event sheets.

It does not replace a proper tutorial but can provide some practical help.

I would say the tutorials by Richard Boulanger and Steven Yi on csounds.com 
were pretty clear and most helpful for me, no problem. But another good 
tutorial would not hurt, naturally.

greetings,
tarmo

On Monday 12 November 2012 13:46:58 Jim Aikin wrote:
> Today I thought I'd have a look at scanned synthesis. Even after reading the
> online tutorials, I still can't make heads or tails of it. Not to be a
> whiner or anything, but has anybody written a good, thorough tutorial?
> 
> The document Steven wrote in 2003 (available on csounds.com) uses example
> code that contains both errors (ga1 is undefined) and mysteries (the values
> in the p-fields, as no scores are included).
> 
> This is not the only thing that leaves me scratching my head. Consider these
> sentences, in the definition of the init parameter: "If this is a negative
> number, then the absolute [value] of init signifies the table to use as a
> hammer shape. If init > 0, the length of it should be the same as the
> number of masses (128), otherwise it can be anything." Otherwise? That
> would have to mean, if init == 0, right? Because that's the only other
> possibility. So how can a value of 0 "be anything"? And how can a parameter
> (which is simply a numerical value) have a length?
> 
> I tried running the example in the manual while replacing a couple of the
> fixed k-value inputs with modestly varying data coming from a linseg, and
> could detect no changes at all in the sound. Clearly, I don't know where to
> start. Hence my desire for a tutorial....
> 
> Thanks in advance for any leads!
> 
> 
> 
> --
> View this message in context:
> http://csound.1045644.n5.nabble.com/scanned-synthesis-tutorial-tp5717836.ht
> ml Sent from the Csound - General mailing list archive at Nabble.com.
> 
> 
> 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"

Date2012-11-13 14:41
FromJim Aikin
Subject[Csnd] Re: scanned synthesis tutorial
Thanks, Tarmo. The comments in your .csd are helpful. Personally, I didn't
find Dr. B's tutorial all that enlightening. It articulates the underlying
theory nicely, but gives almost no guidance about useful ranges of the
parameters -- and parameter ranges are what one needs to know, in order to
make music.

--JA



--
View this message in context: http://csound.1045644.n5.nabble.com/scanned-synthesis-tutorial-tp5717836p5717869.html
Sent from the Csound - General mailing list archive at Nabble.com.

Date2012-11-21 08:48
Fromjoachim heintz
SubjectRe: [Csnd] Re: scanned synthesis tutorial
hi jim -

there is a new chapter of the csound floss manual by christopher 
saunders about scanned synthesis. it is on the "write" section of the 
manual:
http://booki.flossmanuals.net/csound/_edit/

i think it may need still some editing, but it looks very informative 
right now. perhaps you want to have a look, or contact christopher directly.

best -

	joachim


Am 13.11.2012 15:41, schrieb Jim Aikin:
> Thanks, Tarmo. The comments in your .csd are helpful. Personally, I didn't
> find Dr. B's tutorial all that enlightening. It articulates the underlying
> theory nicely, but gives almost no guidance about useful ranges of the
> parameters -- and parameter ranges are what one needs to know, in order to
> make music.
>
> --JA
>
>
>
> --
> View this message in context: http://csound.1045644.n5.nabble.com/scanned-synthesis-tutorial-tp5717836p5717869.html
> Sent from the Csound - General mailing list archive at Nabble.com.
>
>
> 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"
>
>

Date2012-11-21 11:16
From"Jacques Leplat"
Subject[Csnd] --ogg on Android
Hello,

I have been unable to generate an ogg file using csound on Android, in an 
app I'm writing. The
version I am using (on Android) is 5.1.18.03

When I run the csd it saves wav and aiff files ok, but trying to generate an 
ogg gives an error in the log:
 sfinit: cannot open /sdcard/Download/out.ogg

On my mac (CSound 5.1.18.03), I tried changing the -o csoption to a suitable 
path, leaving all else unchanged, then ran the csd: an ogg is generated OK, 
I checked the file contents to make sure it's an ogg and not a wav.

Is there anything special that needs to be done on the Android platform to 
generate ogg files?

All the best,

Jacques 


Date2012-11-21 11:44
FromSteven Yi
SubjectRe: [Csnd] --ogg on Android

Hi Jacques,

I don't think we compiled libsndfile with Ogg support. If you could file an issue at sourceforge I can take a look at it this weekend when I have some free time. Would you need FLAC as well? The only concern I have at the moment is he compiled size of the library but hopefully it won't add much.

Thanks!
Steven

On Nov 21, 2012 11:17 AM, "Jacques Leplat" <jleplat@j3ltd.com> wrote:
Hello,

I have been unable to generate an ogg file using csound on Android, in an app I'm writing. The
version I am using (on Android) is 5.1.18.03

When I run the csd it saves wav and aiff files ok, but trying to generate an ogg gives an error in the log:
sfinit: cannot open /sdcard/Download/out.ogg

On my mac (CSound 5.1.18.03), I tried changing the -o csoption to a suitable path, leaving all else unchanged, then ran the csd: an ogg is generated OK, I checked the file contents to make sure it's an ogg and not a wav.

Is there anything special that needs to be done on the Android platform to generate ogg files?

All the best,

Jacques


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"


Date2012-11-21 12:12
From"Jacques Leplat"
SubjectRe: [Csnd] --ogg on Android
Hello Steven,
 
Thanks for the reply, I'll take a look at filing issues on sourceforge.
 
No need for FLAC.
 
WAV AIFF and OGG is more than enough for my needs (Ogg is really attractive on mobiles, due to the compressed file size).
 
Best regards,
 
Jacques
----- Original Message -----
From: Steven Yi
Sent: Wednesday, November 21, 2012 11:44 AM
Subject: Re: [Csnd] --ogg on Android

Hi Jacques,

I don't think we compiled libsndfile with Ogg support. If you could file an issue at sourceforge I can take a look at it this weekend when I have some free time. Would you need FLAC as well? The only concern I have at the moment is he compiled size of the library but hopefully it won't add much.

Thanks!
Steven

On Nov 21, 2012 11:17 AM, "Jacques Leplat" <jleplat@j3ltd.com> wrote:
Hello,

I have been unable to generate an ogg file using csound on Android, in an app I'm writing. The
version I am using (on Android) is 5.1.18.03

When I run the csd it saves wav and aiff files ok, but trying to generate an ogg gives an error in the log:
sfinit: cannot open /sdcard/Download/out.ogg

On my mac (CSound 5.1.18.03), I tried changing the -o csoption to a suitable path, leaving all else unchanged, then ran the csd: an ogg is generated OK, I checked the file contents to make sure it's an ogg and not a wav.

Is there anything special that needs to be done on the Android platform to generate ogg files?

All the best,

Jacques


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"


Date2012-12-13 20:54
FromSteven Yi
SubjectRe: [Csnd] --ogg on Android
Hi All,

Just following up on this thread.  Apologies for taking a while, but I
managed to get libsndfile built with ogg and vorbis, and ifdef'd out
the need for FLAC.  I have updated the libsndfile-android.zip on
Sourceforge in the file releases for Android.  I'll test this tomorrow
and if all goes well, I will do a new release of csound-android that
will have this feature pre-built.

Thanks!
steven


On Wed, Nov 21, 2012 at 12:12 PM, Jacques Leplat  wrote:
> Hello Steven,
>
> Thanks for the reply, I'll take a look at filing issues on sourceforge.
>
> No need for FLAC.
>
> WAV AIFF and OGG is more than enough for my needs (Ogg is really attractive
> on mobiles, due to the compressed file size).
>
> Best regards,
>
> Jacques
>
> ----- Original Message -----
> From: Steven Yi
> To: csound@lists.bath.ac.uk
> Sent: Wednesday, November 21, 2012 11:44 AM
> Subject: Re: [Csnd] --ogg on Android
>
> Hi Jacques,
>
> I don't think we compiled libsndfile with Ogg support. If you could file an
> issue at sourceforge I can take a look at it this weekend when I have some
> free time. Would you need FLAC as well? The only concern I have at the
> moment is he compiled size of the library but hopefully it won't add much.
>
> Thanks!
> Steven
>
> On Nov 21, 2012 11:17 AM, "Jacques Leplat"  wrote:
>>
>> Hello,
>>
>> I have been unable to generate an ogg file using csound on Android, in an
>> app I'm writing. The
>> version I am using (on Android) is 5.1.18.03
>>
>> When I run the csd it saves wav and aiff files ok, but trying to generate
>> an ogg gives an error in the log:
>> sfinit: cannot open /sdcard/Download/out.ogg
>>
>> On my mac (CSound 5.1.18.03), I tried changing the -o csoption to a
>> suitable path, leaving all else unchanged, then ran the csd: an ogg is
>> generated OK, I checked the file contents to make sure it's an ogg and not a
>> wav.
>>
>> Is there anything special that needs to be done on the Android platform to
>> generate ogg files?
>>
>> All the best,
>>
>> Jacques
>>
>>
>> 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"
>>
>

Date2012-12-14 13:40
From"Jacques Leplat"
SubjectRe: [Csnd] --ogg on Android
I really look forward to trying that build out. Thanks a lot.

Jacques

----- Original Message ----- 
From: "Steven Yi" 
To: "Csound" 
Sent: Thursday, December 13, 2012 8:54 PM
Subject: Re: [Csnd] --ogg on Android


> Hi All,
> 
> Just following up on this thread.  Apologies for taking a while, but I
> managed to get libsndfile built with ogg and vorbis, and ifdef'd out
> the need for FLAC.  I have updated the libsndfile-android.zip on
> Sourceforge in the file releases for Android.  I'll test this tomorrow
> and if all goes well, I will do a new release of csound-android that
> will have this feature pre-built.
> 
> Thanks!
> steven
> 
> 


Date2012-12-14 18:18
FromSteven Yi
SubjectRe: [Csnd] --ogg on Android
Hi Jacques,

I did a quick test and looks like it generated an ogg file just fine,
played back on my Nexus 7 alright.  I've uploaded to
csound-android-5.18.03-ogg.zip to:

https://sourceforge.net/projects/csound/files/csound5/Android/

If you could also test and verify that'd be great.  Otherwise, this
will be a part of Android releases moving on into the future.

Thanks!
steven

On Fri, Dec 14, 2012 at 1:40 PM, Jacques Leplat  wrote:
> I really look forward to trying that build out. Thanks a lot.
>
> Jacques
>
> ----- Original Message ----- From: "Steven Yi" 
> To: "Csound" 
> Sent: Thursday, December 13, 2012 8:54 PM
>
> Subject: Re: [Csnd] --ogg on Android
>
>
>> Hi All,
>>
>> Just following up on this thread.  Apologies for taking a while, but I
>> managed to get libsndfile built with ogg and vorbis, and ifdef'd out
>> the need for FLAC.  I have updated the libsndfile-android.zip on
>> Sourceforge in the file releases for Android.  I'll test this tomorrow
>> and if all goes well, I will do a new release of csound-android that
>> will have this feature pre-built.
>>
>> Thanks!
>> steven
>>
>>
>
>
>
> 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"
>

Date2012-12-14 20:04
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] --ogg on Android
Hopefully this will be folded into Csound for iOS as well?

Sent from my iPhone.

On Dec 14, 2012, at 8:40 AM, "Jacques Leplat"  wrote:

> I really look forward to trying that build out. Thanks a lot.
> 
> Jacques
> 
> ----- Original Message ----- From: "Steven Yi" 
> To: "Csound" 
> Sent: Thursday, December 13, 2012 8:54 PM
> Subject: Re: [Csnd] --ogg on Android
> 
> 
>> Hi All,
>> Just following up on this thread.  Apologies for taking a while, but I
>> managed to get libsndfile built with ogg and vorbis, and ifdef'd out
>> the need for FLAC.  I have updated the libsndfile-android.zip on
>> Sourceforge in the file releases for Android.  I'll test this tomorrow
>> and if all goes well, I will do a new release of csound-android that
>> will have this feature pre-built.
>> Thanks!
>> steven
> 
> 
> 
> 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"
> 


Date2012-12-14 21:07
FromSteven Yi
SubjectRe: [Csnd] --ogg on Android

Hi Dr. B,

If you or someone could file a request in the sourceforge tracker and assign it to me(kunstmusik), I'll take a look at putting it into the build for iOS.

Thanks!
Steven

On Dec 14, 2012 8:10 PM, "Dr. Richard Boulanger" <rboulanger@berklee.edu> wrote:
Hopefully this will be folded into Csound for iOS as well?

Sent from my iPhone.

On Dec 14, 2012, at 8:40 AM, "Jacques Leplat" <jleplat@j3ltd.com> wrote:

> I really look forward to trying that build out. Thanks a lot.
>
> Jacques
>
> ----- Original Message ----- From: "Steven Yi" <stevenyi@gmail.com>
> To: "Csound" <csound@lists.bath.ac.uk>
> Sent: Thursday, December 13, 2012 8:54 PM
> Subject: Re: [Csnd] --ogg on Android
>
>
>> Hi All,
>> Just following up on this thread.  Apologies for taking a while, but I
>> managed to get libsndfile built with ogg and vorbis, and ifdef'd out
>> the need for FLAC.  I have updated the libsndfile-android.zip on
>> Sourceforge in the file releases for Android.  I'll test this tomorrow
>> and if all goes well, I will do a new release of csound-android that
>> will have this feature pre-built.
>> Thanks!
>> steven
>
>
>
> 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"


Date2012-12-14 21:45
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] --ogg on Android
Will do.

It is my hope that all the IOS packages, examples, and documentation will stay in sync.

Sent from my iPhone.

On Dec 14, 2012, at 4:07 PM, Steven Yi <stevenyi@gmail.com> wrote:

Hi Dr. B,

If you or someone could file a request in the sourceforge tracker and assign it to me(kunstmusik), I'll take a look at putting it into the build for iOS.

Thanks!
Steven

On Dec 14, 2012 8:10 PM, "Dr. Richard Boulanger" <rboulanger@berklee.edu> wrote:
Hopefully this will be folded into Csound for iOS as well?

Sent from my iPhone.

On Dec 14, 2012, at 8:40 AM, "Jacques Leplat" <jleplat@j3ltd.com> wrote:

> I really look forward to trying that build out. Thanks a lot.
>
> Jacques
>
> ----- Original Message ----- From: "Steven Yi" <stevenyi@gmail.com>
> To: "Csound" <csound@lists.bath.ac.uk>
> Sent: Thursday, December 13, 2012 8:54 PM
> Subject: Re: [Csnd] --ogg on Android
>
>
>> Hi All,
>> Just following up on this thread.  Apologies for taking a while, but I
>> managed to get libsndfile built with ogg and vorbis, and ifdef'd out
>> the need for FLAC.  I have updated the libsndfile-android.zip on
>> Sourceforge in the file releases for Android.  I'll test this tomorrow
>> and if all goes well, I will do a new release of csound-android that
>> will have this feature pre-built.
>> Thanks!
>> steven
>
>
>
> 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"


Date2012-12-14 21:59
FromSteven Yi
SubjectRe: [Csnd] --ogg on Android
Thanks!

Yes, I definitely agree that having Android and iOS in sync (where
possible) is very much a benefit to both, as it will only increase the
cross-platform offering we have with Csound.

All best!
steven

On Fri, Dec 14, 2012 at 9:45 PM, Dr. Richard Boulanger
 wrote:
> Will do.
>
> It is my hope that all the IOS packages, examples, and documentation will
> stay in sync.
>
> Sent from my iPhone.
>
> On Dec 14, 2012, at 4:07 PM, Steven Yi  wrote:
>
> Hi Dr. B,
>
> If you or someone could file a request in the sourceforge tracker and assign
> it to me(kunstmusik), I'll take a look at putting it into the build for iOS.
>
> Thanks!
> Steven
>
> On Dec 14, 2012 8:10 PM, "Dr. Richard Boulanger" 
> wrote:
>>
>> Hopefully this will be folded into Csound for iOS as well?
>>
>> Sent from my iPhone.
>>
>> On Dec 14, 2012, at 8:40 AM, "Jacques Leplat"  wrote:
>>
>> > I really look forward to trying that build out. Thanks a lot.
>> >
>> > Jacques
>> >
>> > ----- Original Message ----- From: "Steven Yi" 
>> > To: "Csound" 
>> > Sent: Thursday, December 13, 2012 8:54 PM
>> > Subject: Re: [Csnd] --ogg on Android
>> >
>> >
>> >> Hi All,
>> >> Just following up on this thread.  Apologies for taking a while, but I
>> >> managed to get libsndfile built with ogg and vorbis, and ifdef'd out
>> >> the need for FLAC.  I have updated the libsndfile-android.zip on
>> >> Sourceforge in the file releases for Android.  I'll test this tomorrow
>> >> and if all goes well, I will do a new release of csound-android that
>> >> will have this feature pre-built.
>> >> Thanks!
>> >> steven
>> >
>> >
>> >
>> > 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"
>>
>