Jakob Flierl | 4 Jan 2012 16:47
Picon
Gravatar

sine generated wav gets cut

Hi ecasound-list, running eca v2.8.1-2 on Ubuntu 11.10 amd64:

$ ecasound -f:16,2,96000 -i:tone,sine,50 -o:sndfile,sine-50.wav -t:0.02

should get me a sine wav, where t = 1 / 50 == 0.02sec, ie.: a wav file
with one full period of a sine curve,

however all ecasound generates is a cut wav file, where t < 0.02, see here:

* http://db.koppi.me/ubuntu/11.10/ecasound/sine.png

Any hints, what's wrong with this? Kind regards & thanks in advance,
Jakob

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Artur | 5 Jan 2012 13:35
Picon
Favicon

Re: sine generated wav gets cut

Hello.

It is somehow related to buffering.
Add -b:2 to command line (which theoretically sets buffer size to 2 samples). Experiment with other
values. It probably still won't be ideal, but better than without this parameter.

--
Artur

Poniższą wiadomość napisał(a) Jakob Flierl <jakob.flierl <at> gmail.com> w dniu 04.01.2012 16:47:

> Hi ecasound-list, running eca v2.8.1-2 on Ubuntu 11.10 amd64:
>
> $ ecasound -f:16,2,96000 -i:tone,sine,50 -o:sndfile,sine-50.wav -t:0.02
>
> should get me a sine wav, where t = 1 / 50 == 0.02sec, ie.: a wav file
> with one full period of a sine curve,
>
> however all ecasound generates is a cut wav file, where t<  0.02, see here:
>
> * http://db.koppi.me/ubuntu/11.10/ecasound/sine.png
>
> Any hints, what's wrong with this? Kind regards&  thanks in advance,
> Jakob
>
> ------------------------------------------------------------------------------
> Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
> infrastructure or vast IT resources to deliver seamless, secure access to
> virtual desktops. With this all-in-one solution, easily deploy virtual
> desktops for less than the cost of PCs and save 60% on VDI infrastructure
(Continue reading)

Jakob Flierl | 5 Jan 2012 17:16
Picon
Gravatar

Re: sine generated wav gets cut

Hi Artur,

thanks for the hint. Changing the buffer size using -b:2 fixed this.

Kind regards,
Jakob

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Julien Claassen | 5 Jan 2012 17:39
Picon

Re: sine generated wav gets cut

Hello Jakob!
   Another possibility would be to use a LADSPA plugin for the sine wave. 
There's the sin_cos plugin from the swh LADSPA plugins. It generates a sine 
wave at your desired pitch. It outputs a sine wave of that frequency in the 
left channel and a cosine wave in the right channel.
   I seem to remember, that there was another plugin in the cmt suite (the 
basic plugins released by Richard E. Furse.
   You could also use csound, if you still don't get precise results. In csound 
you might have something like:
sine.orc
sr = 96000
kr = 9600
ksmps = 10
nchnls = 1

instr 1
   a1 oscil 32767, 50, 1
   out a1
endin

sine.sco
f1 0 32768 10 1
i1 0 0.02
e

   the same result can be achieved with any other synthesizer language of your 
choice.
   I hope this helps, although not very Ecasound-ish.
   Kind regards
           Julien
(Continue reading)

Jakob Flierl | 7 Jan 2012 22:49
Picon
Gravatar

Re: sine generated wav gets cut

Thanks Julien,

so for me the next logical step after successfully generating a sine
with ecasound is: How to generate an ascending shepard tone (using
only ecasound): http://en.wikipedia.org/wiki/Shepard_tone ? -- any
help is greatly appreciated.

Kind regards,
Jakob

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

Julien Claassen | 8 Jan 2012 13:24
Picon

Re: sine generated wav gets cut

Hello Jakob!
   As far as I remmber - not having looked at the article - you need two 
oscillators per note to get the Shepard scale. You could generage one octave 
with ecasound, starting like this:
ecasound -a:1 -i tone,sine,440,0.2 -ea:100 -a:2 -i 
playat,0.2,tone,sine,461,0.2 -ea:91 -a:3 -i playat,0.4,tone,sine,494,0.2 
-ea:82 ... -a:all -o shepared.wav
   You get the picture. Set the notes right and the volumes. Then when you have 
that, you could easily loop it:
ecasound -i audioloop,shepard.wav -o out.wav -t:260
   Or you can output to a device and stop, when ever you like.
   If I'm mistaken and the Shepard scale was one of the non-discrete scales, 
then you can use controllers, but you might havge to use a ladspa sinewave 
generator:
ecasound -i null -o shepard.wav -eli:1881,440,0 -klg:1,440,880,2,0,0,20,1 
-ea:100 -klg:2,0,100,2,0,1,20,0
   this should generate a sine wave from 440 to 880 Hz in the space of 20 
seconds and in volume ramping from 100 to 0%. You can use any other 
controller, that might suite you better. You can use the -kos sine oscillator 
for controlling the pitch and volume of the waveform. Again you can produce to 
chains at once, that have both oscillators.
   I hope, that this is of some help.
   Warmly yours
           Julien

=-=-=-=-=-=-=-=-=-=-=-=-
Such Is Life: Very Intensely Adorable;
Free And Jubilating Amazement Revels, Dancing On - FLOWERS!

======      Find my music at      ======
(Continue reading)

Kai Vehmanen | 25 Jan 2012 21:38

the sloooow devel cycle! (Re: Ecasound LV2 support ready)

Hello Jeremy and the list,

On Thu, 22 Dec 2011, Jeremy Salwen wrote:

> I've included your changes and commited code cleanup as well.

my apologies for not getting this merged. It'll be in the next release,
I promise, but it seems the release cycle is getting longer and longer.

For those wondering (not sure if there are any :), but especially as there 
are occasional patches coming in, I think it's only fair to send this to 
the list as well), I have no intent on stopping to work on Ecasound, but I 
must admit especially the last few years have been _really_ silent. But 
despite that, I have no plans to fade out completely, and especially if 
more urgent issues (severe bugs, or interesting new stuff like LV2, comes 
up), I'll reactivate for sure. And who knows, I might be able to increase 
my hobby project timeslots again, after the long decline. It's still fun 
to work on this...!

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Ecasound-list mailing list
Ecasound-list <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ecasound-list

(Continue reading)

Kai Vehmanen | 25 Jan 2012 22:01

bug in RIFF WAVE files from

Hi,

talking about good reasons to activate on the list (despite the initial 
reaction of going deeper into lurking mode), I just got a patch for 
another fairly embarrassing bug (committed to git and will be in 2.8.2):

--cut--
commit d07b91237b753b1c7401c12ebf8ea8eb1449963f
Author: Slack
Date:   Wed Jan 25 22:12:48 2012 +0200

     audioio-wave: RIFF header chunk size too small

     When creating RIFF WAVE files, the chunk size of the very
     first RIFF block was calculated incorrectly, and was off by
     4 bytes.
--cut--

Now the size of the actual data block is correct, so AFAIK this should not 
have much practical impact, but in theory some tool could interpret wav 
files created by ecasound to have 4 bytes less than they actually do. The 
bytes do get written, but the size field of the very first chunk ("RIFF"), 
is off by 4.

Arto (cc'ed), sorry, the bug you reported 11 years ago, well, the fix was 
not quite correct:
http://www.eca.cx/ecasound-list/2000/06/0193.html

PS The bad commit from 2000 is 38af5741701261d99f66fcfcca52d9500fdb208e.

(Continue reading)

Julien Claassen | 26 Jan 2012 17:23
Picon

Bypassing effects

Hello Kai!
   I have been wondering, would the Ecasound architecture allow to bypass 
effects, while the engine is running? Or could you envision a way to make this 
possible? It would be very helpful in A/B comparisons of edited tracks. The 
best way would be to have a command to pass by just one specific operator and 
perhaps - if others here are interested, who just use Ecasound itself - a 
command to pass by all operators of a chain?
   Oh and thanks for the continuing work on 2.8.2. I'm happily awaitng it. I 
tested the LV2 support and it did work,butI haven't done much, since the 
bloody effects take such a long time to fnd and type. :-) But I'm sure I will 
find a quicker way to find the absolute URLs needed to pass them to Ecasound 
in a while.
   Warmly yours
            Julien

=-=-=-=-=-=-=-=-=-=-=-=-
Such Is Life: Very Intensely Adorable;
Free And Jubilating Amazement Revels, Dancing On - FLOWERS!

======      Find my music at      ======
http://juliencoder.de/nama/music.html
.....................................
"If you live to be 100, I hope I live to be 100 minus 1 day,
so I never have to live without you." (Winnie the Pooh)

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
(Continue reading)

Kai Vehmanen | 30 Jan 2012 18:17

Re: Bypassing effects

Hi,

On Thu, 26 Jan 2012, Julien Claassen wrote:

>   I have been wondering, would the Ecasound architecture allow to bypass
> effects, while the engine is running? Or could you envision a way to make this
> possible? It would be very helpful in A/B comparisons of edited tracks. The

parts already exist: 'c-bypass'. That disables effects for the selected 
chains and is real-time safe.

> best way would be to have a command to pass by just one specific operator and
> perhaps - if others here are interested, who just use Ecasound itself - a
> command to pass by all operators of a chain?

Yes indeed, I've had 'cop-bypass' on my drawing table for long (proposed 
by Ashley J Gittins on this list a few years ago), but never got to 
implement this. But I agree this would be useful.

> tested the LV2 support and it did work,butI haven't done much, since the
> bloody effects take such a long time to fnd and type. :-) But I'm sure I will
> find a quicker way to find the absolute URLs needed to pass them to Ecasound

My thoughts as well, some work flow rethinking is needed to figure out how 
to deal with the long ids.

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
(Continue reading)


Gmane