|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
sine generated wav gets cutHi 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@... https://lists.sourceforge.net/lists/listinfo/ecasound-list |
|
|
Re: sine generated wav gets cutHello.
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@...> 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 > costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox > _______________________________________________ > Ecasound-list mailing list > Ecasound-list@... > https://lists.sourceforge.net/lists/listinfo/ecasound-list > ------------------------------------------------------------------------------ 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@... https://lists.sourceforge.net/lists/listinfo/ecasound-list |
|
|
Re: sine generated wav gets cutHi 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@... https://lists.sourceforge.net/lists/listinfo/ecasound-list |
|
|
Re: sine generated wav gets cutHello 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 =-=-=-=-=-=-=-=-=-=-=-=- 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) ------------------------------------------------------------------------------ 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@... https://lists.sourceforge.net/lists/listinfo/ecasound-list |
|
|
Re: sine generated wav gets cutThanks 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@... https://lists.sourceforge.net/lists/listinfo/ecasound-list |
|
|
Re: sine generated wav gets cutHello 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 ====== 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) ------------------------------------------------------------------------------ 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@... https://lists.sourceforge.net/lists/listinfo/ecasound-list |
| Free embeddable forum powered by Nabble | Forum Help |