Csound Csound-dev Csound-tekno Search About

[Csnd] Wave table from a single WAV

Date2018-10-24 20:05
FromPeter Burgess
Subject[Csnd] Wave table from a single WAV
Hi there. I have a series of wave files, each of which contain a "wave table". So they're essentially a continuous oscillation that progresses along what would be a wavetable stored in a single wave file. What would be the best way to use this as a wave table within Csound? I'm willing to process it into raw format or something if need be, but would be handy to be able to have each one stored as a single ftable if possible
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

Date2018-10-24 20:15
FromVictor Lazzarini
SubjectRe: [Csnd] Wave table from a single WAV
You can split them into several wavetables. GEN 1 allows you to offset the start of the reading, and the length of the table gives you how much to read in.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 24 Oct 2018, at 20:06, Peter Burgess <pete.soundtechnician@GMAIL.COM> wrote:

Hi there. I have a series of wave files, each of which contain a "wave table". So they're essentially a continuous oscillation that progresses along what would be a wavetable stored in a single wave file. What would be the best way to use this as a wave table within Csound? I'm willing to process it into raw format or something if need be, but would be handy to be able to have each one stored as a single ftable if possible
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

Date2018-10-24 20:16
FromRichard
SubjectRe: [Csnd] Wave table from a single WAV

I do not understand. Are these wave files generated by a wave table? Do they change in time? Are they just one period or more?
Reduce them to one period and use GEN1 to create a table, I would say.


Richard


On 24/10/18 21:05, Peter Burgess wrote:
Hi there. I have a series of wave files, each of which contain a "wave table". So they're essentially a continuous oscillation that progresses along what would be a wavetable stored in a single wave file. What would be the best way to use this as a wave table within Csound? I'm willing to process it into raw format or something if need be, but would be handy to be able to have each one stored as a single ftable if possible
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


Date2018-10-24 20:20
FromPeter Burgess
SubjectRe: [Csnd] Wave table from a single WAV
They are change in time, averaging 20 cycles long. Would be good if I could have a way of sliding the position up and down the table instead of generate 20 static waves to morph between... Is there currently a way of doing that?

On Wed, 24 Oct 2018, 20:16 Richard, <zappfinger@gmail.com> wrote:

I do not understand. Are these wave files generated by a wave table? Do they change in time? Are they just one period or more?
Reduce them to one period and use GEN1 to create a table, I would say.


Richard


On 24/10/18 21:05, Peter Burgess wrote:
Hi there. I have a series of wave files, each of which contain a "wave table". So they're essentially a continuous oscillation that progresses along what would be a wavetable stored in a single wave file. What would be the best way to use this as a wave table within Csound? I'm willing to process it into raw format or something if need be, but would be handy to be able to have each one stored as a single ftable if possible
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

Date2018-10-24 20:21
FromMichael Gogins
SubjectRe: [Csnd] Wave table from a single WAV
Your description is quite unclear. Do you have one wave file, or several?

If one, should it be split into several ftables?

If several, should they be combined?

Or should there simply be one ftable for each wave file? You can do
that with GEN01:

f#  time  size  1  "filename.wav"  skiptime  format  channel


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

On Wed, Oct 24, 2018 at 3:05 PM Peter Burgess
 wrote:
>
> Hi there. I have a series of wave files, each of which contain a "wave table". So they're essentially a continuous oscillation that progresses along what would be a wavetable stored in a single wave file. What would be the best way to use this as a wave table within Csound? I'm willing to process it into raw format or something if need be, but would be handy to be able to have each one stored as a single ftable if possible
> 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

Date2018-10-24 20:25
FromPeter Burgess
SubjectRe: [Csnd] Wave table from a single WAV
Yes appologies, when I said wavetable I was meaning a collection of single cycle waveforms. So it's multiple waveforms concatenated into one wave file which I wish to use in a way that plays one cycle, but I can dynamically alter which slice of it is being used as the one cycle

On Wed, 24 Oct 2018, 20:21 Michael Gogins, <michael.gogins@gmail.com> wrote:
Your description is quite unclear. Do you have one wave file, or several?

If one, should it be split into several ftables?

If several, should they be combined?

Or should there simply be one ftable for each wave file? You can do
that with GEN01:

f#  time  size  1  "filename.wav"  skiptime  format  channel


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

On Wed, Oct 24, 2018 at 3:05 PM Peter Burgess
<pete.soundtechnician@gmail.com> wrote:
>
> Hi there. I have a series of wave files, each of which contain a "wave table". So they're essentially a continuous oscillation that progresses along what would be a wavetable stored in a single wave file. What would be the best way to use this as a wave table within Csound? I'm willing to process it into raw format or something if need be, but would be handy to be able to have each one stored as a single ftable if possible
> 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

Date2018-10-24 20:26
FromPeter Burgess
SubjectRe: [Csnd] Wave table from a single WAV
I'm wondering if I could use phaser to achieve this maybe...?

On Wed, 24 Oct 2018, 20:25 Peter Burgess, <pete.soundtechnician@gmail.com> wrote:
Yes appologies, when I said wavetable I was meaning a collection of single cycle waveforms. So it's multiple waveforms concatenated into one wave file which I wish to use in a way that plays one cycle, but I can dynamically alter which slice of it is being used as the one cycle

On Wed, 24 Oct 2018, 20:21 Michael Gogins, <michael.gogins@gmail.com> wrote:
Your description is quite unclear. Do you have one wave file, or several?

If one, should it be split into several ftables?

If several, should they be combined?

Or should there simply be one ftable for each wave file? You can do
that with GEN01:

f#  time  size  1  "filename.wav"  skiptime  format  channel


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

On Wed, Oct 24, 2018 at 3:05 PM Peter Burgess
<pete.soundtechnician@gmail.com> wrote:
>
> Hi there. I have a series of wave files, each of which contain a "wave table". So they're essentially a continuous oscillation that progresses along what would be a wavetable stored in a single wave file. What would be the best way to use this as a wave table within Csound? I'm willing to process it into raw format or something if need be, but would be handy to be able to have each one stored as a single ftable if possible
> 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

Date2018-10-24 20:33
FromOeyvind Brandtsegg
SubjectRe: [Csnd] Wave table from a single WAV
Yes, I think so,
maybe something like:

phasor (to generate a 0 to 1 phase)
multiply phasor with size (N) of each single cycle segment
offset with N*wavenumber
use this value to index the concatenated wavetable



Den ons. 24. okt. 2018 kl. 21:26 skrev Peter Burgess <pete.soundtechnician@gmail.com>:
I'm wondering if I could use phaser to achieve this maybe...?

On Wed, 24 Oct 2018, 20:25 Peter Burgess, <pete.soundtechnician@gmail.com> wrote:
Yes appologies, when I said wavetable I was meaning a collection of single cycle waveforms. So it's multiple waveforms concatenated into one wave file which I wish to use in a way that plays one cycle, but I can dynamically alter which slice of it is being used as the one cycle

On Wed, 24 Oct 2018, 20:21 Michael Gogins, <michael.gogins@gmail.com> wrote:
Your description is quite unclear. Do you have one wave file, or several?

If one, should it be split into several ftables?

If several, should they be combined?

Or should there simply be one ftable for each wave file? You can do
that with GEN01:

f#  time  size  1  "filename.wav"  skiptime  format  channel


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

On Wed, Oct 24, 2018 at 3:05 PM Peter Burgess
<pete.soundtechnician@gmail.com> wrote:
>
> Hi there. I have a series of wave files, each of which contain a "wave table". So they're essentially a continuous oscillation that progresses along what would be a wavetable stored in a single wave file. What would be the best way to use this as a wave table within Csound? I'm willing to process it into raw format or something if need be, but would be handy to be able to have each one stored as a single ftable if possible
> 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

Date2018-10-24 20:41
FromPeter Burgess
SubjectRe: [Csnd] Wave table from a single WAV
Can gen1 not read raw wave files?

On Wed, 24 Oct 2018, 20:33 Oeyvind Brandtsegg, <oyvind.brandtsegg@ntnu.no> wrote:
Yes, I think so,
maybe something like:

phasor (to generate a 0 to 1 phase)
multiply phasor with size (N) of each single cycle segment
offset with N*wavenumber
use this value to index the concatenated wavetable



Den ons. 24. okt. 2018 kl. 21:26 skrev Peter Burgess <pete.soundtechnician@gmail.com>:
I'm wondering if I could use phaser to achieve this maybe...?

On Wed, 24 Oct 2018, 20:25 Peter Burgess, <pete.soundtechnician@gmail.com> wrote:
Yes appologies, when I said wavetable I was meaning a collection of single cycle waveforms. So it's multiple waveforms concatenated into one wave file which I wish to use in a way that plays one cycle, but I can dynamically alter which slice of it is being used as the one cycle

On Wed, 24 Oct 2018, 20:21 Michael Gogins, <michael.gogins@gmail.com> wrote:
Your description is quite unclear. Do you have one wave file, or several?

If one, should it be split into several ftables?

If several, should they be combined?

Or should there simply be one ftable for each wave file? You can do
that with GEN01:

f#  time  size  1  "filename.wav"  skiptime  format  channel


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

On Wed, Oct 24, 2018 at 3:05 PM Peter Burgess
<pete.soundtechnician@gmail.com> wrote:
>
> Hi there. I have a series of wave files, each of which contain a "wave table". So they're essentially a continuous oscillation that progresses along what would be a wavetable stored in a single wave file. What would be the best way to use this as a wave table within Csound? I'm willing to process it into raw format or something if need be, but would be handy to be able to have each one stored as a single ftable if possible
> 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

Date2018-10-24 20:42
FromPeter Burgess
SubjectRe: [Csnd] Wave table from a single WAV
That sounds about right, thanks!

On Wed, 24 Oct 2018, 20:33 Oeyvind Brandtsegg, <oyvind.brandtsegg@ntnu.no> wrote:
Yes, I think so,
maybe something like:

phasor (to generate a 0 to 1 phase)
multiply phasor with size (N) of each single cycle segment
offset with N*wavenumber
use this value to index the concatenated wavetable



Den ons. 24. okt. 2018 kl. 21:26 skrev Peter Burgess <pete.soundtechnician@gmail.com>:
I'm wondering if I could use phaser to achieve this maybe...?

On Wed, 24 Oct 2018, 20:25 Peter Burgess, <pete.soundtechnician@gmail.com> wrote:
Yes appologies, when I said wavetable I was meaning a collection of single cycle waveforms. So it's multiple waveforms concatenated into one wave file which I wish to use in a way that plays one cycle, but I can dynamically alter which slice of it is being used as the one cycle

On Wed, 24 Oct 2018, 20:21 Michael Gogins, <michael.gogins@gmail.com> wrote:
Your description is quite unclear. Do you have one wave file, or several?

If one, should it be split into several ftables?

If several, should they be combined?

Or should there simply be one ftable for each wave file? You can do
that with GEN01:

f#  time  size  1  "filename.wav"  skiptime  format  channel


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

On Wed, Oct 24, 2018 at 3:05 PM Peter Burgess
<pete.soundtechnician@gmail.com> wrote:
>
> Hi there. I have a series of wave files, each of which contain a "wave table". So they're essentially a continuous oscillation that progresses along what would be a wavetable stored in a single wave file. What would be the best way to use this as a wave table within Csound? I'm willing to process it into raw format or something if need be, but would be handy to be able to have each one stored as a single ftable if possible
> 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