| Most audio file formats are interleaved, (you get the data as a buffer
of l,r,l,r,l,r...), so I'm thinking the possible optimization with
reduced channel count would be less memory cache pressure. I wouldn't
expect a big improvement in app performance there, but it would be an
interesting experiment.
On Thu, Jun 25, 2020 at 11:00 AM Jeanette C. wrote:
>
> Jun 25 2020, Victor Lazzarini has written:
>
> > Diskin with an array output should do it?
> >
> > aSig[] diskin ...
> >
> > out(asig[0])
> Thanks Victor.
>
> I am sorry, I must have expressed myself badly. I know the channel
> count, the question was, can I input channels selectively, to not have
> too much processing and data flying around? I guess it wouldn't make any
> difference to disk access, since the file will have to be read from
> start to finish anyway.
>
> Best wishes,
>
> Jeanette
> >
> > Prof. Victor Lazzarini
> > Maynooth University
> > Ireland
> >
> >> On 25 Jun 2020, at 18:32, Jeanette C. wrote:
> >>
> >> *Warning*
> >>
> >> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> >>
> >> Hey hey,
> >> is there any way to only read a certain audio channel from a file, apart from
> >> using gen01 with its channel parameter? I looked at diskin(2) and soundin and
> >> couldn't figure out a way to do it. Also fin doesn't seem to support that
> >> scenario.
> >>
> >> I will use gen01 if it is the only solution, but in the orchestra in mind a
> >> direct read would be more elegant. :)
> >>
> >> Best wishes,
> >>
> >> Jeanette
> >>
> >> --
> >> * Website: https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fjuliencoder.de%2F&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C00c2eeb21d8e4224c5b008d8192dc657%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637287031677871916&sdata=jQwfVIw3wxJeogkG9yWdOA3ji6Nbh1MiGLXlDXDpLPE%3D&reserved=0 - for summer is a state of sound
> >> * Youtube: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fchannel%2FUCMS4rfGrTwz8W7jhC1Jnv7g&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C00c2eeb21d8e4224c5b008d8192dc657%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637287031677881911&sdata=ei4LIbiHI%2F8bKfk9cIZ3CISwelP47UO80vhjK3R8G6I%3D&reserved=0
> >> * SoundCloud: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsoundcloud.com%2Fjeanette_c&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C00c2eeb21d8e4224c5b008d8192dc657%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637287031677881911&sdata=1umRfU3V2hQ5im8S3m%2BJ7T0vCfUiuRqjxzaeCE4ZZv0%3D&reserved=0
> >> * Twitter: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Fjeanette_c_s&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C00c2eeb21d8e4224c5b008d8192dc657%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637287031677881911&sdata=6goxQVBJy5wlyaJbCOl5l2vvtRtUXi0r9u5z0ufP3YI%3D&reserved=0
> >> * Audiobombs: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.audiobombs.com%2Fusers%2Fjeanette_c&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C00c2eeb21d8e4224c5b008d8192dc657%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637287031677881911&sdata=QFpFr4BuIyp5nVshxv8JD2Q8cmo7xZEHtkpyXfcA%2FtM%3D&reserved=0
> >> * GitHub: https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjeanette-c&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C00c2eeb21d8e4224c5b008d8192dc657%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637287031677881911&sdata=q8f9v6l%2BdtRP8pD4nz3JmbSKZxoFI5i6teWBzkGnyj4%3D&reserved=0
> >>
> >> Don't worry, you're gonna be alright,
> >> But Cinderella's got to go <3
> >> (Britney Spears)
> >>
> >> Csound mailing list
> >> Csound@listserv.heanet.ie
> >> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C00c2eeb21d8e4224c5b008d8192dc657%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637287031677881911&sdata=Te%2Fm8Mx4%2FEOV5hhoPAJTicRQnCVkSXuUJeLUaD4qHGg%3D&reserved=0
> >> Send bugs reports to
> >> https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=02%7C01%7CVictor.Lazzarini%40mu.ie%7C00c2eeb21d8e4224c5b008d8192dc657%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C0%7C637287031677881911&sdata=%2FoP4HKtootHDN5YZDsmT0l2DDmR3hWbtUBwZBEU0Yq0%3D&reserved=0
> >> 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
> >
>
> --
> * Website: http://juliencoder.de - for summer is a state of sound
> * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
> * SoundCloud: https://soundcloud.com/jeanette_c
> * Twitter: https://twitter.com/jeanette_c_s
> * Audiobombs: https://www.audiobombs.com/users/jeanette_c
> * GitHub: https://github.com/jeanette-c
>
> Don't worry, you're gonna be alright,
> But Cinderella's got to go <3
> (Britney Spears)
>
> 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 |